diff options
| author | Stefan Boberg <[email protected]> | 2023-05-02 10:01:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-02 10:01:47 +0200 |
| commit | 075d17f8ada47e990fe94606c3d21df409223465 (patch) | |
| tree | e50549b766a2f3c354798a54ff73404217b4c9af /src/zenserver/xmake.lua | |
| parent | fix: bundle shouldn't append content zip to zen (diff) | |
| download | zen-075d17f8ada47e990fe94606c3d21df409223465.tar.xz zen-075d17f8ada47e990fe94606c3d21df409223465.zip | |
moved source directories into `/src` (#264)
* moved source directories into `/src`
* updated bundle.lua for new `src` path
* moved some docs, icon
* removed old test trees
Diffstat (limited to 'src/zenserver/xmake.lua')
| -rw-r--r-- | src/zenserver/xmake.lua | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/zenserver/xmake.lua b/src/zenserver/xmake.lua new file mode 100644 index 000000000..23bfb9535 --- /dev/null +++ b/src/zenserver/xmake.lua @@ -0,0 +1,60 @@ +-- Copyright Epic Games, Inc. All Rights Reserved. + +target("zenserver") + set_kind("binary") + add_deps("zencore", "zenhttp", "zenstore", "zenutil") + add_headerfiles("**.h") + add_files("**.cpp") + add_files("zenserver.cpp", {unity_ignored = true }) + add_includedirs(".") + set_symbols("debug") + + if is_mode("release") then + set_optimize("fastest") + end + + if is_plat("windows") then + add_ldflags("/subsystem:console,5.02") + add_ldflags("/MANIFEST:EMBED") + add_ldflags("/LTCG") + add_files("zenserver.rc") + add_cxxflags("/bigobj") + else + remove_files("windows/**") + end + + if is_plat("macosx") then + add_ldflags("-framework CoreFoundation") + add_ldflags("-framework CoreGraphics") + add_ldflags("-framework CoreText") + add_ldflags("-framework Foundation") + add_ldflags("-framework Security") + add_ldflags("-framework SystemConfiguration") + add_syslinks("bsm") + end + + add_options("compute") + add_options("exec") + + add_packages( + "vcpkg::asio", + "vcpkg::cxxopts", + "vcpkg::http-parser", + "vcpkg::json11", + "vcpkg::lua", + "vcpkg::mimalloc", + "vcpkg::rocksdb", + "vcpkg::sentry-native", + "vcpkg::sol2" + ) + + -- Only applicable to later versions of sentry-native + --[[ + if is_plat("linux") then + -- As sentry_native uses symbols from breakpad_client, the latter must + -- be specified after the former with GCC-like toolchains. xmake however + -- is unaware of this and simply globs files from vcpkg's output. The + -- line below forces breakpad_client to be to the right of sentry_native + add_syslinks("breakpad_client") + end + ]]-- |