Skip to content

Commit f4f58b0

Browse files
committed
Removed Gen-Meta PostBuildCommand for Linux
Minor Fixes
1 parent 7c1581e commit f4f58b0

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

Source/Base/Base/Types.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#pragma once
21
#include "Types.h"
32

43
#include "Memory/Bytebuffer.h"

Source/Gen-Meta/Gen-Meta.lua

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ local currentProject = Solution.Projects.Current
33
local dependencies = { }
44
Solution.Util.CreateProject("Gen-Meta", "Utility", currentProject.BinDir, dependencies)
55
dependson { "Meta", "TypeGenerator", "TypeParser" }
6-
if os.target() == "windows" then
7-
fastuptodate "Off"
8-
end
96

107
local metaGenDir = currentProject.RootDir .. "/Source/Meta/Meta"
118
local typeGenFolder = ""
@@ -16,18 +13,11 @@ else
1613
end
1714

1815
if os.target() == "windows" then
19-
postbuildcommands
20-
{
21-
"if exist \"" .. metaGenDir .. "/Generated\" rmdir /S /Q \"" .. metaGenDir .. "/Generated\"",
16+
fastuptodate "Off"
2217

23-
"\"" .. typeGenFolder .. "\" " ..
24-
"\"" .. metaGenDir .. "/Source\" " ..
25-
"\"" .. metaGenDir .. "/Generated\" "
26-
}
27-
elseif os.target() == "linux" then
2818
postbuildcommands
2919
{
30-
"rm -rf \"" .. metaGenDir .. "/Generated\"",
20+
"if exist \"" .. metaGenDir .. "/Generated\" rmdir /S /Q \"" .. metaGenDir .. "/Generated\"",
3121

3222
"\"" .. typeGenFolder .. "\" " ..
3323
"\"" .. metaGenDir .. "/Source\" " ..

Source/TypeGenerator/TypeGenerator/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ bool GenerateEnum(const TypeParser::ParsedType& parsedType, std::string& fileCon
16521652

16531653
{
16541654
WriteContent(fileContent, "template <>\n", indent);
1655-
WriteContent(fileContent, "struct ::EnumTraits<", indent);
1655+
WriteContent(fileContent, "struct EnumTraits<", indent);
16561656
WriteContent(fileContent, enumName);
16571657
WriteContent(fileContent, ">\n");
16581658
WriteContent(fileContent, "{\n", indent);
@@ -1996,7 +1996,7 @@ bool GeneratePacketEnum(std::string& fileContent, const PacketList& packetList,
19961996

19971997
{
19981998
WriteContent(fileContent, "template <>\n", indent);
1999-
WriteContent(fileContent, "struct ::EnumTraits<", indent);
1999+
WriteContent(fileContent, "struct EnumTraits<", indent);
20002000
WriteContent(fileContent, enumName);
20012001
WriteContent(fileContent, ">\n");
20022002
WriteContent(fileContent, "{\n", indent);

0 commit comments

Comments
 (0)