aboutsummaryrefslogtreecommitdiff
path: root/src/zenmaster/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-08-26 13:45:54 +0200
committerStefan Boberg <[email protected]>2025-08-26 13:45:54 +0200
commitf4c029e6accbf8df3496e28ba9e07eed4cbde851 (patch)
treeee3329f981e3c0b9609c90cfef4b610ffd2c4223 /src/zenmaster/xmake.lua
parentMerge pull request #139 from ue-foundation/de/zen-service-command (diff)
downloadzen-f4c029e6accbf8df3496e28ba9e07eed4cbde851.tar.xz
zen-f4c029e6accbf8df3496e28ba9e07eed4cbde851.zip
zenmaster + zenmaster-test skeletons
Diffstat (limited to 'src/zenmaster/xmake.lua')
-rw-r--r--src/zenmaster/xmake.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/zenmaster/xmake.lua b/src/zenmaster/xmake.lua
new file mode 100644
index 000000000..52385a490
--- /dev/null
+++ b/src/zenmaster/xmake.lua
@@ -0,0 +1,31 @@
+-- Copyright Epic Games, Inc. All Rights Reserved.
+
+target("zenmaster")
+ set_kind("binary")
+ add_headerfiles("**.h")
+ add_files("**.cpp")
+ add_files("zenmaster.cpp", {unity_ignored = true })
+ add_deps("zencore", "zenhttp", "zenstore", "zenutil")
+ add_includedirs(".")
+ set_symbols("debug")
+
+ if is_mode("release") then
+ set_optimize("fastest")
+ end
+
+ if is_plat("windows") then
+ add_files("zenmaster.rc")
+ add_ldflags("/subsystem:console,5.02")
+ add_ldflags("/LTCG")
+ add_links("crypt32", "wldap32", "Ws2_32", "Shlwapi")
+ add_links("dbghelp", "winhttp", "version") -- for Sentry
+ end
+
+ if is_plat("macosx") then
+ add_ldflags("-framework CoreFoundation")
+ add_ldflags("-framework Foundation")
+ add_ldflags("-framework Security")
+ add_ldflags("-framework SystemConfiguration")
+ end
+
+ add_packages("vcpkg::cpr", "vcpkg::cxxopts", "vcpkg::mimalloc", "vcpkg::fmt")