-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
82 lines (69 loc) · 2.12 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
workspace "FileTransfer"
architecture "x64"
configurations { "Debug", "Release", "Dist" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
includeDirs={}
includeDirs["ImGui"]="packages/imgui"
includeDirs["LunaSVG"]="packages/lunasvg/include"
includeDirs["SpdLog"]="packages/spdlog/include"
includeDirs["libcpr"]="packages/cpr/include"
includeDirs["glfw"]="packages/glfw/include"
includeDirs["clipboardxx"]="packages/clipboardxx"
includeDirs["mini"]="packages/mini"
include "packages/imgui"
include "packages/lunasvg"
project "file_transfer"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "bin"
objdir "bin/obj"
pchheader "pch.h"
pchsource "src/pch.cpp"
links {
"glfw3","ImGui","LunaSVG","opengl32","cpr","libcurl","zlib","user32","shell32","gdi32",
"Normaliz","Ws2_32","Wldap32","Crypt32","advapi32","kernel32","winspool","ole32","oleaut32","uuid","comdlg32",
"winmm","imm32","setupapi","version","libcmt"
}
files {
"src/**.cpp"
}
includedirs{
"src",
"%{includeDirs.ImGui}",
"%{includeDirs.LunaSVG}",
"%{includeDirs.SpdLog}",
"%{includeDirs.libcpr}",
"%{includeDirs.clipboardxx}",
"%{includeDirs.mini}",
"%{includeDirs.glfw}"
}
libdirs{"packages/cpr/lib","packages/glfw/lib"}
filter "system:windows"
systemversion "latest"
files { 'setup.rc', '**.ico' }
vpaths { ['./*'] = { '*.rc', '**.ico' }}
filter "configurations:Debug"
runtime "Debug"
symbols "On"
staticruntime "On"
optimize "Off"
characterset ("MBCS")
buildoptions { "/MP","/utf-8" }
filter {"configurations:Release"}
runtime "Release"
optimize "On"
symbols "Off"
characterset ("MBCS")
staticruntime "On"
buildoptions { "/MP","/utf-8" }
defines {"FT_DEBUG","_CRT_SECURE_NO_WARNINGS"}
filter "configurations:Dist"
kind "WindowedApp"
runtime "Release"
optimize "speed"
symbols "Off"
characterset ("MBCS")
staticruntime "On"
buildoptions { "/MP","/utf-8"}
linkoptions {"/ENTRY:mainCRTStartup"}