Skip to content

Commit a8ddfed

Browse files
committed
Fix premake (exclude lua.c & luac.c)
1 parent 0fb0d0f commit a8ddfed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

premake5.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local EXLUCED_FILES = { "src/lua.c", "src/luac.c" }
2+
13
project "Lua_Server"
24
language "C++"
35
targetname "lua5.1"
@@ -7,12 +9,14 @@ project "Lua_Server"
79
["Sources"] = "**.c",
810
["*"] = "premake5.lua"
911
}
12+
excludes(EXLUCED_FILES)
1013

1114
files {
1215
"premake5.lua",
1316
"src/**.c",
1417
"src/**.h",
1518
}
19+
excludes(EXLUCED_FILES)
1620

1721
defines { "LUA_BUILD_AS_DLL" }
1822

@@ -39,12 +43,14 @@ if os.target() == "windows" then
3943
["Sources"] = "**.c",
4044
["*"] = "premake5.lua"
4145
}
46+
excludes(EXLUCED_FILES)
4247

4348
files {
4449
"premake5.lua",
4550
"src/**.c",
4651
"src/**.h",
4752
}
53+
excludes(EXLUCED_FILES)
4854

4955
defines {
5056
"LUA_USE_APICHECK",

0 commit comments

Comments
 (0)