forked from Nelarius/imnodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
85 lines (72 loc) · 2.77 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
77
78
79
80
81
82
83
84
85
workspace "imnodes"
local project_location = ""
if _ACTION then
project_location = "build/" .. _ACTION
end
configurations { "Debug", "Release" }
architecture "x86_64"
defines { "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" }
filter "configurations:Debug"
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "action:vs*"
defines { "_CRT_SECURE_NO_WARNINGS" }
warnings "Extra"
startproject "example"
project "gl3w"
location(project_location)
kind "StaticLib"
language "C"
targetdir "lib/%{cfg.buildcfg}"
files { "gl3w/src/gl3w.c" }
includedirs { "gl3w/include" }
project "imgui"
location(project_location)
kind "StaticLib"
language "C++"
targetdir "lib/%{cfg.buildcfg}"
files { "imgui/**.h", "imgui/**.cpp" }
includedirs { "imgui", "gl3w/include" }
filter "system:macosx"
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
project "example"
location(project_location)
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
files {"example/main.cpp", "example/simple.cpp", "imnodes.cpp" }
includedirs { ".", "imgui", "gl3w/include" }
links { "gl3w", "imgui" }
filter { "action:gmake" }
buildoptions { "-std=c++11" }
filter "system:macosx"
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
linkoptions { "-F/Library/Frameworks -framework SDL2 -framework CoreFoundation" }
project "saveload"
location(project_location)
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
files {"example/main.cpp", "example/save_load.cpp", "imnodes.cpp" }
includedirs { ".", "imgui", "gl3w/include" }
links { "gl3w", "imgui" }
filter { "action:gmake" }
buildoptions { "-std=c++11" }
filter "system:macosx"
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
linkoptions { "-F/Library/Frameworks -framework SDL2 -framework CoreFoundation" }
project "colornode"
location(project_location)
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
files {"example/main.cpp", "example/color_node_editor.cpp", "imnodes.cpp" }
includedirs { ".", "imgui", "gl3w/include" }
links { "gl3w", "imgui" }
filter { "action:gmake" }
buildoptions { "-std=c++11" }
filter "system:macosx"
includedirs { "/Library/Frameworks/SDL2.framework/Headers" }
linkoptions { "-F/Library/Frameworks -framework SDL2 -framework CoreFoundation" }