This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
75 lines (62 loc) · 1.98 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
-- premake5.lua
workspace "UI"
configurations {"Debug", "Release"}
location "workspace"
project "UILib"
kind "StaticLib"
language "C++"
targetdir "./build/lib/%{cfg.buildcfg}"
location "workspace/lib"
includedirs {"include", "src/lib", "src/lib/**"}
links { "OpenGL32", "glew", "glfw3" }
defines { "NANOVG_GLEW" }
debugdir "./bin"
files { "./src/lib/**.h", "./src/lib/**.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
libdirs { "./lib/nanovg/win_32/debug", "./lib/pugixml/win_32/debug" }
links { "nanovg", "pugixml" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
libdirs { "./lib/nanovg/win_32/release", "./lib/pugixml/win_32/release" }
links { "nanovg", "pugixml" }
project "DemoApp"
kind "ConsoleApp"
language "C++"
targetdir "./build/bin/%{cfg.buildcfg}"
location "workspace/DemoApp"
includedirs "include"
links { "OpenGL32", "glew", "glfw3" }
debugdir "./bin"
files { "./src/demo_app/*.h", "./src/demo_app/*.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
libdirs { "./lib/nanovg/win_32/debug", "./build/lib/debug" }
links { "nanovg" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
libdirs { "./lib/nanovg/win_32/release", "./build/lib/release" }
links { "nanovg" }
project "UIApp"
kind "ConsoleApp"
language "C++"
targetdir "./build/bin/%{cfg.buildcfg}"
location "workspace/DemoApp"
includedirs "include"
links { "OpenGL32", "glew", "glfw3" }
debugdir "./bin"
files { "./src/ui_app/*.h", "./src/ui_app/*.cpp" }
filter "configurations:Debug"
defines { "DEBUG" }
flags { "Symbols" }
libdirs { "./lib/nanovg/win_32/debug", "./build/lib/debug", "./lib/pugixml/win_32/debug" }
links { "nanovg", "pugixml", "UILib" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
libdirs { "./lib/nanovg/win_32/release", "./build/lib/release", "./lib/pugixml/win_32/release" }
links { "nanovg", "pugixml", "UILib" }