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", "vcpkg::uwebsockets", "vcpkg::usockets", "vcpkg::libuv") 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 if is_os("windows") then add_defines("_CRT_SECURE_NO_WARNINGS") end add_defines("USE_SENTRY=1") option("vfs") set_showmenu(true) set_description("Enable VFS functionality") add_defines("ZEN_WITH_VFS") option_end() option("httpsys") set_default(true) set_showmenu(true) set_description("Enable http.sys server") add_defines("ZEN_WITH_HTTPSYS") option_end() add_defines("UNICODE", "_CONSOLE") set_warnings("allextra", "error") set_languages("cxx20") -- always generate debug information set_symbols("debug") includes("zencore", "zencore-test") includes("zenhttp") includes("zenstore", "zenutil") includes("zenserver", "zenserver-test") includes("zen")