-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathxmake.lua
60 lines (53 loc) · 1.65 KB
/
xmake.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
set_languages("cxx17")
set_xmakever("2.5.1")
-- direct dependencies version pinning
add_requires(
"tiltedcore v0.2.7",
"catch2 2.13.9",
"directxtk 21.11.0",
"cef 100.0.24",
"hopscotch-map v2.3.1"
)
-- dependencies' dependencies version pinning
add_requireconfs("*.mimalloc", { version = "2.1.7", override = true })
add_requireconfs("*.cmake", { version = "3.30.2", override = true })
add_rules("mode.debug","mode.releasedbg", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
if is_mode("release") then
add_ldflags("/LTCG", "/OPT:REF")
add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")
add_defines("NDEBUG")
set_optimize("fastest")
end
target("TiltedUi")
set_kind("static")
set_group("Libraries")
add_files("Code/ui/src/*.cpp")
add_includedirs("Code/ui/include/", {public = true})
add_headerfiles("Code/ui/include/*.hpp", {prefixdir = "TiltedUi"})
add_syslinks("dxguid", "d3d11")
add_packages(
"tiltedcore",
"cef",
"directxtk",
"mimalloc",
"hopscotch-map")
add_defines("NOMINMAX")
target("UiProcess")
set_kind("static")
set_group("Libraries")
add_files("Code/ui_process/src/*.cpp")
add_headerfiles("Code/ui_process/include/*.hpp", {prefixdir = "UiProcess"})
add_includedirs("Code/ui_process/include/", {public = true})
add_packages(
"tiltedcore",
"cef",
"mimalloc",
"hopscotch-map")
add_defines("NOMINMAX")
--target("TiltedUi_Tests")
-- set_kind("binary")
-- set_group("Tests")
-- add_files("Code/tests/src/*.cpp")
-- add_deps("TiltedUi")
-- add_packages("tiltedcore", "catch2", "hopscotch-map")