-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
50 lines (48 loc) · 1.22 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
require "export-compile-commands"
workspace("cp-boii")
configurations({ "Debug", "Release" })
defines { "TTF_USE_HARFBUZZ", "LOG_BOII__COLORED_LOGS", "LOG_BOII__HIGHLIGHT_WARN_ERROR_FATAL_STRINGS" }
filter("configurations:Debug")
defines({ "DEBUG" })
symbols("On")
filter("configurations:Release")
defines({ "NDEBUG", "O3" })
optimize("On")
filter({})
targetdir("bin/%{cfg.buildcfg}/")
-- CP Boii
project("cp-boii")
kind("ConsoleApp")
language("C++")
includedirs({
"include",
"memsafe-boii",
"log-boii",
"SDL2/include",
"SDL2_ttf/include",
"tinyfiledialogs",
"C:/msys64/mingw64/include",
"C:/msys64/mingw32/include",
})
files({
"src/**.cpp",
"memsafe-boii/memsafe_boii.c",
"log-boii/log_boii.c",
"tinyfiledialogs/tinyfiledialogs.c",
})
removefiles { "src/main.cpp","src/file_content_viewer.cpp" }
-- removefiles { "src/main.cpp","src/text_editor.cpp" }
filter({ "system:windows" })
links({
"SDL2main",
"SDL2",
"SDL2_ttf",
"comdlg32",
"ole32",
"gdi32"
})
libdirs({ "SDL2/lib", "SDL2_ttf/lib" })
filter({ "system:linux" })
links({ "SDL2main", "SDL2", "SDL2_ttf" })
filter({ "system:macos" })
links({ "SDL2main", "SDL2", "SDL2_ttf" })