mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Remote desk client supports MacOS
This commit is contained in:
@@ -8,6 +8,8 @@ set_languages("c++17")
|
||||
add_requires("spdlog 1.11.0", {system = false})
|
||||
add_defines("UNICODE")
|
||||
|
||||
add_requires("sdl2", {system = false})
|
||||
|
||||
if is_os("windows") then
|
||||
add_ldflags("/SUBSYSTEM:CONSOLE")
|
||||
add_links("Shell32", "windowsapp", "dwmapi", "User32", "kernel32")
|
||||
@@ -17,6 +19,9 @@ elseif is_os("linux") then
|
||||
add_requires("ffmpeg 5.1.2", {system = false})
|
||||
add_links("pthread")
|
||||
set_config("cxxflags", "-fPIC")
|
||||
elseif is_os("macosx") then
|
||||
add_requires("ffmpeg 5.1.2", {system = false})
|
||||
-- add_requires("vcpkg::sdl2 2.28.3", {system = false})
|
||||
end
|
||||
|
||||
add_packages("spdlog")
|
||||
@@ -53,13 +58,22 @@ target("remote_desk_client")
|
||||
set_kind("binary")
|
||||
add_deps("projectx")
|
||||
add_packages("log")
|
||||
add_packages("vcpkg::sdl2")
|
||||
if is_os("windows") then
|
||||
add_packages("vcpkg::sdl2")
|
||||
elseif is_os("macosx") then
|
||||
-- add_packages("vcpkg::sdl2")
|
||||
add_packages("sdl2")
|
||||
add_packages("ffmpeg")
|
||||
end
|
||||
add_files("remote_desk_client/*.cpp")
|
||||
add_includedirs("../../src/interface")
|
||||
if is_os("windows") then
|
||||
add_links("SDL2-static", "SDL2main", "gdi32", "winmm",
|
||||
"setupapi", "version", "Imm32", "iphlpapi")
|
||||
elseif is_os("macosx") then
|
||||
add_links("SDL2")
|
||||
end
|
||||
|
||||
|
||||
-- target("remote_desk")
|
||||
-- set_kind("binary")
|
||||
|
||||
Reference in New Issue
Block a user