mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Provide build option 'server_only'
This commit is contained in:
14
xmake.lua
14
xmake.lua
@@ -5,7 +5,10 @@ set_license("LGPL-3.0")
|
||||
add_rules("mode.release", "mode.debug")
|
||||
set_languages("c++17")
|
||||
|
||||
add_rules("mode.release", "mode.debug")
|
||||
|
||||
option("server_only")
|
||||
set_showmenu(true)
|
||||
option_end()
|
||||
|
||||
add_defines("ASIO_STANDALONE", "ASIO_HAS_STD_TYPE_TRAITS", "ASIO_HAS_STD_SHARED_PTR",
|
||||
"ASIO_HAS_STD_ADDRESSOF", "ASIO_HAS_STD_ATOMIC", "ASIO_HAS_STD_CHRONO",
|
||||
@@ -24,7 +27,12 @@ elseif is_os("macosx") then
|
||||
end
|
||||
|
||||
add_requires("asio 1.24.0", "nlohmann_json", "spdlog 1.11.0")
|
||||
add_packages("spdlog")
|
||||
includes("thirdparty")
|
||||
|
||||
if has_config("server_only") then
|
||||
includes("application/signal_server")
|
||||
else
|
||||
if is_os("windows") then
|
||||
add_requires("vcpkg::ffmpeg 5.1.2", {configs = {shared = false}})
|
||||
add_requires("vcpkg::libnice 0.1.21")
|
||||
@@ -42,9 +50,6 @@ elseif is_os("macosx") then
|
||||
add_requires("openh264 2.1.1", {configs = {shared = false}})
|
||||
end
|
||||
|
||||
add_packages("spdlog")
|
||||
|
||||
includes("thirdparty")
|
||||
includes("application/remote_desk")
|
||||
includes("application/signal_server")
|
||||
|
||||
@@ -237,3 +242,4 @@ target("nicetest")
|
||||
"pcre2-8", "pcre2-16", "pcre2-32", "pcre2-posix",
|
||||
"zlib", "ffi", "libcrypto", "libssl", "intl", "iconv", "charset", "bz2",
|
||||
"Shell32", "Advapi32", "Dnsapi", "Shlwapi", "Iphlpapi")
|
||||
end
|
||||
Reference in New Issue
Block a user