-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
82 lines (68 loc) · 1.9 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
-- Building
-- MsBuild XPlayer.sln /p:configuration=Release
workspace "Color Picker"
architecture "x64"
configurations { "Debug", "Release", "Dist" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
includeDirs={}
includeDirs["glfw"]="packages/glfw/include"
includeDirs["SpdLog"]="packages/spdlog/include"
includeDirs["ImGui"]="packages/imgui"
includeDirs["Mini"]="packages/mINI/src/mini"
includeDirs["LunaSVG"]="packages/lunasvg/include"
-- /MP -- Multithreaded build
-- /MT -- Static Linking. Defines _MT
-- /MD -- Dynamic Linking. Defines _MT and _DLL
include "packages/glfw"
include "packages/imgui"
include "packages/lunasvg"
project "color_picker"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "bin"
objdir "bin/obj"
pchheader "pch.h"
pchsource "src/pch.cpp"
links {
"glfw","ImGui","LunaSVG","opengl32"
}
includedirs{
"src",
"%{includeDirs.glfw}",
"%{includeDirs.ImGui}",
"%{includeDirs.Mini}",
"%{includeDirs.LunaSVG}",
"%{includeDirs.SpdLog}"
}
files {
"src/**.cpp"
}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
runtime "Debug"
symbols "On"
staticruntime "On"
optimize "Off"
buildoptions { "/MP","/DEBUG:FULL" }
defines {"GL_DEBUG"}
filter {"configurations:Release"}
runtime "Release"
optimize "On"
symbols "Off"
characterset ("MBCS")
staticruntime "On"
buildoptions { "/MP","/utf-8" }
defines {"GL_DEBUG","_CRT_SECURE_NO_WARNINGS"}
filter "configurations:Dist"
kind "WindowedApp"
runtime "Release"
optimize "On"
symbols "Off"
characterset ("MBCS")
staticruntime "On"
buildoptions { "/MP","/utf-8"}
linkoptions {"/ENTRY:mainCRTStartup"}
files { 'setup.rc', '**.ico' }
vpaths { ['./*'] = { '*.rc', '**.ico' }}