mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[feat] audio capture supported on Linux
This commit is contained in:
@@ -20,6 +20,9 @@ add_requires("spdlog 1.14.1", {system = false})
|
||||
add_requires("imgui v1.91.5-docking", {configs = {sdl2 = true, sdl2_renderer = true}})
|
||||
add_requires("openssl3 3.3.2", {system = false})
|
||||
|
||||
add_requires("libsdl2", {configs = {pulseaudio = true}})
|
||||
add_packages("libsdl2")
|
||||
|
||||
if is_os("windows") then
|
||||
add_requires("libyuv", "miniaudio 0.11.21")
|
||||
add_links("Shell32", "windowsapp", "dwmapi", "User32", "kernel32",
|
||||
@@ -27,10 +30,11 @@ if is_os("windows") then
|
||||
"Imm32", "iphlpapi")
|
||||
add_cxflags("/WX")
|
||||
elseif is_os("linux") then
|
||||
add_requires("libpulse")
|
||||
add_links("pulse-simple", "pulse")
|
||||
add_requires("libyuv")
|
||||
add_syslinks("pthread", "dl")
|
||||
add_linkdirs("thirdparty/minirtc/thirdparty/nvcodec/lib/x64")
|
||||
add_links("SDL2", "cuda", "nvidia-encode", "nvcuvid", "X11", "Xtst", "Xrandr")
|
||||
add_links("SDL2", "cuda", "nvidia-encode", "nvcuvid", "asound", "X11", "Xtst", "Xrandr")
|
||||
add_cxflags("-Wno-unused-variable")
|
||||
elseif is_os("macosx") then
|
||||
add_links("SDL2", "SDL2main")
|
||||
|
||||
Reference in New Issue
Block a user