Do not use rc file on MacOS

This commit is contained in:
dijunkun
2024-07-18 16:06:35 +08:00
parent 3111b3a641
commit ff6f295fac
3 changed files with 6 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
#include "log.h" #include "rd_log.h"
MouseController::MouseController() {} MouseController::MouseController() {}

View File

@@ -2,7 +2,7 @@
#include <iostream> #include <iostream>
#include "log.h" #include "rd_log.h"
#define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2 #define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2
unsigned char nv12_buffer_[NV12_BUFFER_SIZE]; unsigned char nv12_buffer_[NV12_BUFFER_SIZE];

View File

@@ -128,12 +128,14 @@ target("single_window")
target("remote_desk") target("remote_desk")
set_kind("binary") set_kind("binary")
add_deps("rd_log", "common", "single_window") add_deps("rd_log", "common", "single_window")
if is_os("macosx") then if is_os("windows") then
add_files("icon/app_icon.ico")
elseif is_os("macosx") then
add_packages("ffmpeg") add_packages("ffmpeg")
elseif is_os("linux") then elseif is_os("linux") then
add_packages("ffmpeg") add_packages("ffmpeg")
end end
add_files("src/gui/main.cpp", "icon/app.rc") add_files("src/gui/main.cpp")
-- target("screen_capturer") -- target("screen_capturer")
-- set_kind("binary") -- set_kind("binary")