add_requires( "vcpkg::doctest", "vcpkg::spdlog", "vcpkg::gsl-lite", "vcpkg::asio", "vcpkg::cpr", "vcpkg::xxhash", "vcpkg::robin-map", "vcpkg::lz4", "vcpkg::fmt", "vcpkg::cxxopts", "vcpkg::mimalloc", "vcpkg::sol2", "vcpkg::sentry-native", "vcpkg::json11", "vcpkg::lua", "vcpkg::curl", "vcpkg::zlib", "vcpkg::zstd", "vcpkg::http-parser") add_rules("mode.debug", "mode.release") if is_mode("release") then set_optimize("smallest") if is_plat("windows") then add_ldflags("/LTCG") end end if is_mode("debug") then add_defines("DEBUG") end add_defines("UNICODE", "_CONSOLE") set_warnings("allextra", "error") set_languages("cxx20") set_symbols("debug") add_packages( "vcpkg::cxxopts", "vcpkg::mimalloc") includes("zencore/xmake.lua") includes("zencore-test/xmake.lua") includes("zenstore/xmake.lua") includes("zenutil/xmake.lua") includes("zenserver/xmake.lua") includes("zenserver-test/xmake.lua") includes("zen/xmake.lua")