-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
77 lines (55 loc) · 2.08 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
75
76
workspace "rf"
configurations { "Debug", "Release", "ReleaseDbg" }
platforms { "Windows", "Unix" }
language "C++"
cppdialect "C++11"
architecture "x86_64"
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
optimize "On"
filter "configurations:ReleaseDbg"
optimize "On"
buildoptions { "-fno-omit-frame-pointer" }
filter "platforms:Windows"
system "windows"
filter "platforms:Unix"
system "linux"
filter {}
project "glfw3"
kind "StaticLib"
includedirs { "ext/glfw/include" }
targetdir "lib/"
filter "configurations:Debug"
targetname "glfw3_d"
filter "configurations:ReleaseDbg"
targetname "glfw3_p"
filter "configurations:Release"
targetname "glfw3"
filter {}
files { "ext/glfw/src/osmesa_context.*", "ext/glfw/src/vulkan.c", "ext/glfw/src/egl_context.*",
"ext/glfw/src/internal.h", "ext/glfw/src/context.c", "ext/glfw/src/init.c", "ext/glfw/src/input.c",
"ext/glfw/src/monitor.c", "ext/glfw/src/window.c" }
filter { "platforms:Windows" }
defines { "_GLFW_WIN32", "_CRT_SECURE_NO_WARNINGS" }
files { "ext/glfw/src/wgl_context.*", "ext/glfw/src/win32_**", "ext/glfw/src/egl_context.*" }
filter { "platforms:Unix" }
defines { "_GLFW_X11" }
files { "ext/glfw/src/x11_**", "ext/glfw/src/glx**", "ext/glfw/src/linux_joystick.c", "ext/glfw/src/posix*",
"ext/glfw/src/xkb_unicode.c" }
filter {}
project "rf"
kind "StaticLib"
targetdir "lib/"
filter "configurations:Debug"
targetname "rf_d"
filter "configurations:ReleaseDbg"
targetname "rf_p"
filter "configurations:Release"
targetname "rf"
filter {}
includedirs { "include/rf", "ext", "ext/glew/include", "ext/cjson", "ext/glfw/include" }
files { "src/**.cpp", "ext/glew/src/glew.c", "ext/stb.cpp", "ext/cjson/cJSON.c", "include/rf/**.h" }
defines { "GLEW_STATIC", "_CRT_SECURE_NO_WARNINGS" }
links { "glfw3" }