mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Fix openh264 compile error on MacOS
This commit is contained in:
@@ -708,7 +708,7 @@ int main() {
|
|||||||
SDL_UpdateTexture(sdlTexture, NULL, dst_buffer, pixel_w);
|
SDL_UpdateTexture(sdlTexture, NULL, dst_buffer, pixel_w);
|
||||||
} else {
|
} else {
|
||||||
if (joined) {
|
if (joined) {
|
||||||
// ProcessMouseKeyEven(event);
|
ProcessMouseKeyEven(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
int CommonDummy()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
int CommonDummy();
|
||||||
|
|
||||||
constexpr size_t HASH_STRING_PIECE(const char *string_piece) {
|
constexpr size_t HASH_STRING_PIECE(const char *string_piece) {
|
||||||
std::size_t result = 0;
|
std::size_t result = 0;
|
||||||
while (*string_piece) {
|
while (*string_piece) {
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "log.h"
|
||||||
|
|
||||||
|
int LogDummy()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -31,6 +31,8 @@ constexpr auto LOGGER_NAME = "siganl";
|
|||||||
constexpr auto LOGGER_NAME = "rtc";
|
constexpr auto LOGGER_NAME = "rtc";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int LogDummy();
|
||||||
|
|
||||||
#define LOG_INFO(...) \
|
#define LOG_INFO(...) \
|
||||||
if (nullptr == spdlog::get(LOGGER_NAME)) { \
|
if (nullptr == spdlog::get(LOGGER_NAME)) { \
|
||||||
auto now = std::chrono::system_clock::now() + std::chrono::hours(8); \
|
auto now = std::chrono::system_clock::now() + std::chrono::hours(8); \
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "ringbuffer.h"
|
||||||
|
|
||||||
|
int RingBufferDummy()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
int RingBufferDummy();
|
||||||
|
|
||||||
class Data {
|
class Data {
|
||||||
public:
|
public:
|
||||||
Data() = default;
|
Data() = default;
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ else
|
|||||||
elseif is_os("macosx") then
|
elseif is_os("macosx") then
|
||||||
add_requires("ffmpeg 5.1.2", {system = false})
|
add_requires("ffmpeg 5.1.2", {system = false})
|
||||||
add_requires("brew::libnice", "brew::glib")
|
add_requires("brew::libnice", "brew::glib")
|
||||||
add_requires("openh264 2.1.1", {configs = {shared = false}})
|
add_requires("brew::openh264", {configs = {shared = false}})
|
||||||
end
|
end
|
||||||
|
|
||||||
includes("application/remote_desk")
|
includes("application/remote_desk")
|
||||||
|
|||||||
Reference in New Issue
Block a user