-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuildconf.lua
107 lines (97 loc) · 3.13 KB
/
buildconf.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
function sample ( params )
project ( params.name )
kind "ConsoleApp"
language "C++"
vpaths {
["Headers"] = { "**.h", "**.inl" },
["Source"] = { "**.cpp", "**.c" }
}
files ( params.src )
includedirs {
"SDK",
"SDK/include",
"SDK/framework",
"SDK/VG",
"SDK/utils",
"SDK/framework/SOIL",
"SDK/External",
"SDK/External/FreeType/include",
}
libdirs { "SDK/lib" }
configuration "windows"
defines { "WIN32" }
links { "glu32", "opengl32", "gdi32", "winmm", "user32" }
configuration "Debug"
links {
"scintilla_d",
"utils_d",
"physfs_d",
"framework_d",
"sdl2_d",
"sdl2main_d",
"vg_d",
"freetype_d",
"zlib_d",
"avcodec",
"avformat",
"avutil",
"openal32"
}
defines { "DEBUG" }
objdir ( "temp/Infinity/samples/"..params.name.."/debug" )
targetdir "debug"
flags { "EnableSSE2", "Symbols", "ExtraWarnings"}
configuration "Release"
links {
"scintilla",
"utils",
"physfs",
"framework",
"sdl2",
"sdl2main",
"vg",
"freetype",
"zlib",
"avcodec",
"avformat",
"avutil",
"openal32"
}
defines { "NDEBUG" }
objdir ( "temp/Infinity/samples/"..params.name.."/release" )
targetdir "release"
flags { "EnableSSE2", "OptimizeSize", "Symbols", "ExtraWarnings"}
end
function library ( params )
project ( params.name )
kind "StaticLib"
language "C++"
vpaths {
["Headers"] = {"**.h", "**.inl"},
["Source"] = {"**.cpp", "**.c"}
}
files ( params.src )
includedirs {
"SDK",
"SDK/include",
"SDK/framework",
"SDK/VG",
"SDK/utils",
"SDK/framework/SOIL",
"SDK/External",
"SDK/External/FreeType/include",
}
configuration "windows"
defines { "WIN32" }
configuration "Debug"
defines { "DEBUG" }
objdir ( "temp/Infinity/libs/"..params.name.."/debug" )
targetsuffix ( "_d" )
targetdir ( "SDK/lib" )
flags { "EnableSSE2", "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
objdir ( "temp/Infinity/libs/"..params.name.."/release" )
targetdir ( "SDK/lib" )
flags { "EnableSSE2", "OptimizeSize", "Symbols", "ExtraWarnings"}
end