-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake4.lua
70 lines (58 loc) · 1.79 KB
/
premake4.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
63
64
65
66
67
68
69
70
solution "enceladus"
configurations { "Debug", "Release" }
location ("build/"..os.get())
targetdir "bin"
configuration "Debug"
flags "Symbols"
targetsuffix "-dbg"
configuration "Release"
flags "Optimize"
configuration "linux"
defines { "LUA_USE_LINUX" }
linkoptions { "-rdynamic" }
links { "dl" }
configuration "macosx"
defines { "LUA_USE_MACOSX" }
configuration "windows"
defines { "_WIN32", "LUA_WIN" }
-- if we're using Make, we're probably using gcc or compatible
-- these do not default to C99 mode
configuration "gmake"
buildoptions { "-std=c99" }
project "Lua-5.1"
kind "StaticLib"
targetdir ("lib/"..os.get())
language "C"
files "src/lua/*.c"
includedirs "src/lua"
if os.get() == "windows" then
project "Lua-5.1-dll"
kind "SharedLib"
language "C"
files "src/lua/*.c"
includedirs "src/lua"
targetprefix ""
targetname "lua5.1"
targetextension ".dll"
implibdir ("lib/"..os.get())
implibextension ".lib"
end
project "enceladus-lib"
kind "StaticLib"
targetdir ("lib/"..os.get())
language "C"
files "src/*.c"
includedirs { "src", "src/lua" }
project "enceladus"
kind "ConsoleApp"
language "C"
links { "enceladus-lib", "m", "Lua-5.1" }
configuration "windows"
targetname "enceladus-static"
if os.get() == "windows" then
project "enceladus-dll"
kind "ConsoleApp"
language "C"
links { "enceladus-lib", "m", "Lua-5.1-dll" }
targetname "enceladus"
end