-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpremake5.lua
40 lines (34 loc) · 1 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
workspace "dll"
configurations { "Debug", "Release" }
architecture "universal"
location "dll"
project "imgui_gm"
kind "SharedLib"
language "C++"
cppdialect "C++14"
targetdir "extensions/ImGui_GM/"
defines { "GDKEXTENSION_EXPORTS", "__YYDEFINE_EXTENSION_FUNCTIONS__" }
architecture "universal"
files {"dll/*.h", "dll/*.cpp", "dll/imgui/*.h", "dll/imgui/*.cpp", "dll/gm/*.h", "dll/gm/*.cpp"}
vpaths {
["Header Files"] = "**.h",
["Source Files"] = {"**.c", "**.cpp"},
["Source Files/Wrappers"] = {"dll/gm/imgui_*_gm.cpp"}
}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
-- Windows
filter { "action:vs*" }
defines "OS_Windows"
-- Ubuntu
filter { "action:gmake*" }
if os.ishost("linux") then
defines "OS_Linux"
pic "on"
else
defines "OS_Mac"
end