-- Copyright Epic Games, Inc. All Rights Reserved. target("zenserver") set_kind("binary") add_headerfiles("**.h") add_files("**.cpp") 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_ldflags("/subsystem:console,5.02") add_ldflags("/MANIFEST:EMBED") add_ldflags("/LTCG") 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("vfs") 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" )