-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
62 lines (49 loc) · 1.05 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
local EXLUCED_FILES = { "src/lua.c", "src/luac.c" }
project "Lua_Server"
language "C++"
targetname "lua5.1"
vpaths {
["Headers"] = "**.h",
["Sources"] = "**.c",
["*"] = "premake5.lua"
}
excludes(EXLUCED_FILES)
files {
"premake5.lua",
"src/**.c",
"src/**.h",
}
excludes(EXLUCED_FILES)
defines { "LUA_BUILD_AS_DLL" }
filter "system:windows"
kind "SharedLib"
targetdir(buildpath("server/mods/deathmatch"))
filter "system:not windows"
kind "StaticLib"
filter {"system:windows", "platforms:x64"}
targetdir(buildpath("server/x64"))
if os.target() == "windows" then
project "Lua_Client"
language "C++"
kind "SharedLib"
targetname "lua5.1c"
targetdir(buildpath("mods/deathmatch"))
vpaths {
["Headers"] = "**.h",
["Sources"] = "**.c",
["*"] = "premake5.lua"
}
excludes(EXLUCED_FILES)
files {
"premake5.lua",
"src/**.c",
"src/**.h",
}
excludes(EXLUCED_FILES)
defines {
"LUA_USE_APICHECK",
"LUA_BUILD_AS_DLL"
}
filter "platforms:x64"
flags { "ExcludeFromBuild" }
end