mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
1.ImGUI display success; 2.To do: fix x264 encode green screen
This commit is contained in:
18
xmake.lua
18
xmake.lua
@@ -6,7 +6,7 @@ add_rules("mode.release", "mode.debug")
|
||||
set_languages("c++17")
|
||||
|
||||
add_requires("spdlog 1.11.0", {system = false})
|
||||
add_requires("imgui 1.89.9", {system = false}, {configs = {sdl2 = true}})
|
||||
add_requires("imgui 1.89.9", {configs = {sdl2 = true, sdl2_renderer = true, glfw = true}})
|
||||
add_defines("UNICODE")
|
||||
|
||||
add_requires("sdl2", {system = false})
|
||||
@@ -52,8 +52,8 @@ target("screen_capture")
|
||||
target("remote_desk")
|
||||
set_kind("binary")
|
||||
add_deps("projectx", "screen_capture")
|
||||
add_packages("log", "imgui", "sdl2", "ffmpeg")
|
||||
add_files("remote_desk_gui/*.cpp")
|
||||
add_packages("log", "sdl2", "imgui", "ffmpeg")
|
||||
add_files("remote_desk_gui/main.cpp")
|
||||
add_includedirs("../../src/interface")
|
||||
if is_os("windows") then
|
||||
add_links("SDL2-static", "SDL2main", "gdi32", "winmm",
|
||||
@@ -66,4 +66,14 @@ target("remote_desk")
|
||||
"-lswscale", "-lavutil", "-lswresample", "-lpostproc",
|
||||
"-lasound", "-lxcb-shape", "-lxcb-xfixes", "-lsndio", "-lxcb",
|
||||
"-lxcb-shm", "-lXext", "-lX11", "-lXv", "-ldl", "-lpthread", {force = true})
|
||||
end
|
||||
end
|
||||
|
||||
target("linux_capture")
|
||||
set_kind("binary")
|
||||
add_packages("sdl2", "imgui", "ffmpeg", "glfw", "glad")
|
||||
add_files("remote_desk_gui/linux_capture.cpp")
|
||||
add_links("SDL2")
|
||||
add_ldflags("-lavformat", "-lavdevice", "-lavfilter", "-lavcodec",
|
||||
"-lswscale", "-lavutil", "-lswresample", "-lpostproc",
|
||||
"-lasound", "-lxcb-shape", "-lxcb-xfixes", "-lsndio", "-lxcb",
|
||||
"-lxcb-shm", "-lXext", "-lX11", "-lXv", "-lpthread", "-lx264", "-ldl", "-lSDL2" ,{force = true})
|
||||
Reference in New Issue
Block a user