Skip to content

Commit 68dbfa4

Browse files
committed
feat: enable H.264 support for Linux and Windows builds #155 #168 #169
1 parent d1f1035 commit 68dbfa4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webrtc-jni/src/main/cpp/dependencies/webrtc/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ elseif(LINUX)
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)
175+
target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_LINUX WEBRTC_POSIX WEBRTC_USE_H264)
176176
target_link_libraries(${PROJECT_NAME} X11 Xfixes Xrandr Xcomposite dbus-1)
177177
elseif(WIN32)
178-
target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_WIN NOMINMAX WIN32_LEAN_AND_MEAN NDEBUG)
178+
target_compile_definitions(${PROJECT_NAME} PUBLIC WEBRTC_WIN WEBRTC_USE_H264 NOMINMAX WIN32_LEAN_AND_MEAN NDEBUG)
179179
target_link_libraries(${PROJECT_NAME} D3D11 DXGI user32 gdi32 iphlpapi dmoguids msdmo secur32 strmiids winmm wmcodecdspuuid ws2_32)
180180
endif()
181181

@@ -264,6 +264,7 @@ rtc_build_examples=false \
264264
rtc_include_tests=false \
265265
use_rtti=true \
266266
rtc_use_h264=true \
267+
ffmpeg_branding=\"Chrome\" \
267268
symbol_level=0")
268269

269270
if(APPLE)

0 commit comments

Comments
 (0)