-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
74 lines (54 loc) · 1.83 KB
/
premake5.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
-- Copy ext/rf/premake5.lua script as rf.lua to be able to include it
os.copyfile("ext/rf/premake5.lua", "ext/rf/rf.lua")
require "ext/rf"
workspace "Radar"
language "C++"
cppdialect "C++11"
architecture "x86_64"
platforms { "Windows", "Unix" }
configurations { "Debug", "Release", "ReleaseDbg" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
optimize "On"
filter "configurations:ReleaseDbg"
optimize "Debug"
buildoptions { "-fno-omit-frame-pointer" }
filter "platforms:Windows"
buildoptions { "-W4" }
filter "platforms:Unix"
buildoptions { "-Wall" }
filter {}
externalproject "glfw3"
kind "StaticLib"
location "ext/rf"
targetdir "ext/rf/lib"
externalproject "rf"
kind "StaticLib"
location "ext/rf"
targetdir "ext/rf/lib"
includedirs { "ext/rf/ext/glfw/include" }
project "radar"
kind "ConsoleApp"
targetdir "bin/"
debugdir "bin/"
defines { "GLEW_STATIC" }
defines { "HAVE_SSE2=1" }
files { "src/**.cpp", "src/**.h" }
removefiles { "src/radar_unix.cpp", "src/radar_win32.cpp" }
includedirs { "src", "ext/rf/include", "ext/rf/ext/cjson", "ext/openal-soft/include",
"ext/rf/ext/glew/include", "ext/rf/ext/glfw/include" }
libdirs { "ext/rf/lib", "ext/openal-soft/build" }
filter "configurations:Debug"
links { "rf_d", "glfw3_d" }
filter "configurations:ReleaseDbg"
links { "rf_p", "glfw3_p" }
filter { "configurations:Release" }
links { "rf", "glfw3" }
filter "platforms:Windows"
libdirs{ "ext/openal-soft/build/Release" }
links { "openal32", "opengl32", "PowrProf" }
filter "platforms:Unix"
links { "openal", "GL", "X11", "dl", "pthread" }
filter {}