-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathpremake4.lua
59 lines (47 loc) · 1.18 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
solution "GMad"
newoption {
trigger = "outdir",
value = "bin/",
description = "Output directory"
}
newoption {
trigger = "bootil_lib",
value = "lib/",
description = "The folder containing the bootil lib"
}
newoption {
trigger = "bootil_inc",
value = "include/",
description = "The folder containing the bootil h"
}
language "C++"
flags { "Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE" }
targetdir ( _OPTIONS.outdir )
includedirs { "include/", _OPTIONS.bootil_inc }
libdirs { _OPTIONS.bootil_lib }
if os.is( "linux" ) or os.is( "macosx" ) then
buildoptions { "-fPIC" }
linkoptions { "-fPIC" }
end
if os.is( "linux" ) then
links { "pthread" }
end
configurations
{
"Release"
}
configuration "Release"
defines { "NDEBUG" }
flags{ "OptimizeSpeed", "FloatFast" }
project "GMad"
uuid ( "AB8E7B19-A70C-4737-88DE-F02160737C2E" )
files { "src/**.*", "include/**.*" }
kind "ConsoleApp"
targetname( "gmad" )
if os.is( "linux" ) then
targetname( "gmad_linux" )
end
if os.is( "macosx" ) then
targetname( "gmad_osx" )
end
links( { "bootil_static" } )