-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
48 lines (36 loc) · 1.55 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
local action = _ACTION or ""
solution "famous"
configurations { "debug", "release", "profile" }
project "famous"
kind "StaticLib"
language "C++"
files { "core/**.h", "core/**.cpp" }
includedirs { "core/" }
includedirs { "core/objects/" }
includedirs { "core/services/" }
includedirs { "core/devices/" }
includedirs { "/usr/include/" }
includedirs { "/usr/local/include/bullet" }
includedirs { "/usr/local/include" }
libdirs { os.findlib("glut"), os.findlib("GL"), os.findlib("GLU"), os.findlib("gsl"), os.findlib("BulletDynamics")}
links { "gsl", "glut", "GL", "GLU", "BulletCollision", "BulletDynamics", "LinearMath", "gslcblas"}
configuration "release"
defines { "NDEBUG" }
flags { "OptimizeSpeed", "EnableSSE", "EnableSSE2", "FloatFast", "NoExceptions", "NoFramePointer"}
postbuildcommands ( "find ./core/ -name *.h -exec cp -u {} include/ \\;" )
postbuildcommands ( "mv *.a lib/" )
configuration "debug"
defines { "DEBUG" }
flags { "Symbols" }
postbuildcommands ( "find ./core/ -name *.h -exec cp -u {} include/ \\;" )
postbuildcommands ( "mv *.a lib/" )
configuration "profile"
defines { "PROFILE" }
flags { "Symbols" }
buildoptions { "-pg" }
postbuildcommands ( "find ./core/ -name *.h -exec cp -u {} include/ \\;" )
postbuildcommands ( "mv *.a lib/" )
if action == "clean" then
os.execute ("rm -f ./include/*.h")
os.execute ("rm -f ./lib/*.a")
end