File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ elseif(LINUX)
110110 set (CXX_LIBS "-static-libgcc" )
111111 endif ()
112112
113- target_link_libraries (${PROJECT_NAME} ${CXX_LIBS} pulse udev )
113+ target_link_libraries (${PROJECT_NAME} ${CXX_LIBS} pulse udev X11 Xfixes Xrandr Xcomposite Xdamage Xtst Xext Xrender )
114114elseif (WIN32 )
115115 target_link_libraries (${PROJECT_NAME} dwmapi.lib mf.lib mfreadwrite.lib mfplat.lib mfuuid.lib shcore.lib )
116116endif ()
Original file line number Diff line number Diff line change @@ -164,15 +164,15 @@ if(APPLE)
164164 ${TARGET_INC_DIR} /sdk/objc
165165 ${TARGET_INC_DIR} /sdk/objc/base
166166 )
167- target_compile_definitions (${PROJECT_NAME} PUBLIC WEBRTC_MAC WEBRTC_POSIX WEBRTC_USE_H264 )
167+ target_compile_definitions (${PROJECT_NAME} PUBLIC WEBRTC_MAC WEBRTC_POSIX WEBRTC_USE_H264 WEBRTC_USE_X11 )
168168 target_link_libraries (${PROJECT_NAME} "-framework Foundation" "-framework AVFoundation" "-framework CoreGraphics" "-framework CoreAudio" "-framework CoreVideo" "-framework ScreenCaptureKit" "-framework AudioToolbox" "-framework IOSurface" "-framework ApplicationServices" "-framework AppKit" )
169169elseif (LINUX )
170170 # Find DBus
171171 find_package (PkgConfig QUIET REQUIRED ) # Include functions provided by PkgConfig module.
172172 pkg_check_modules (DBUS REQUIRED dbus-1 )
173173
174174 target_include_directories (${PROJECT_NAME} PUBLIC ${DBUS_INCLUDE_DIRS} )
175- target_compile_definitions (${PROJECT_NAME} PUBLIC WEBRTC_LINUX WEBRTC_POSIX WEBRTC_USE_H264 )
175+ target_compile_definitions (${PROJECT_NAME} PUBLIC WEBRTC_LINUX WEBRTC_POSIX WEBRTC_USE_H264 WEBRTC_USE_X11 )
176176 target_link_libraries (${PROJECT_NAME} X11 Xfixes Xrandr Xcomposite dbus-1 )
177177elseif (WIN32 )
178178 target_compile_definitions (${PROJECT_NAME} PUBLIC WEBRTC_WIN WEBRTC_USE_H264 NOMINMAX WIN32_LEAN_AND_MEAN NDEBUG )
You can’t perform that action at this time.
0 commit comments