-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake4.lua
28 lines (25 loc) · 1.07 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
solution("E410")
configurations("Debug","Release")
project("E410")
kind("COnsoleApp")
language("C++")
files({"**.hpp","**.cpp"})
libdirs({os.findlib("gl","glew","lua5.2")})
includedirs({"/usr/include/bullet/","/usr/local/include/bullet/"})
if os.is("windows") == true then
defines({"WINDOWS"})
includedirs({"/usr/x86_64-w64-mingw32/include/bullet/","/usr/i686-w64-mingw32/include/bullet/"})
links({"sfml-system","sfml-window","sfml-graphics","sfml-audio","glew32","opengl32","lua52","enet","ws2_32","wsock32","winmm","BulletCollision","BulletDynamics","LinearMath"})
elseif os.is("linux") then
defines({"LINUX"})
buildoptions({"`pkg-config --cflags lua5.2`"})
linkoptions({"`pkg-config --libs lua5.2`","-Wl,-rpath=./libs "})
links({"sfml-system","sfml-window","sfml-graphics","sfml-audio","GL","GLEW","enet","BulletCollision","BulletDynamics","LinearMath"})
end
location("./build")
configuration("Debug")
defines({"DEBUG"})
flags({"Symbols"})
configuration("Release")
defines({"NDEBUG"})
flags({"Optimize"})