@@ -2,7 +2,9 @@ import("../webrtc.gni")
22
33declare_args () {
44 libwebrtc_intel_media_sdk = false
5- libwebrtc_desktop_capture = true
5+ libwebrtc_desktop_capture = false
6+ libwebrtc_video_capture = false
7+ libwebrtc_dummy_audio_device = true
68}
79
810if (is_android ) {
@@ -41,9 +43,14 @@ rtc_shared_library("libwebrtc") {
4143
4244 defines = [
4345 " USE_LIBYUV" ,
44- " WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ,
4546 ]
4647
48+ if (libwebrtc_dummy_audio_device ) {
49+ defines += [ " LIB_WEBRTC_USE_DUMMY_AUDIO_DEVICE" ]
50+ } else {
51+ defines += [ " WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ]
52+ }
53+
4754 if (is_win ) {
4855 defines += [
4956 " LIB_WEBRTC_API_EXPORTS" ,
@@ -88,18 +95,13 @@ rtc_shared_library("libwebrtc") {
8895 " include/rtc_rtp_transceiver.h" ,
8996 " include/rtc_session_description.h" ,
9097 " include/rtc_types.h" ,
91- " include/rtc_video_device.h" ,
9298 " include/rtc_video_frame.h" ,
9399 " include/rtc_video_renderer.h" ,
94100 " include/rtc_video_source.h" ,
95101 " include/rtc_video_track.h" ,
96102 " include/helper.h" ,
97103 " src/helper.cc" ,
98104 " src/base/portable.cc" ,
99- " src/internal/vcm_capturer.cc" ,
100- " src/internal/vcm_capturer.h" ,
101- " src/internal/video_capturer.cc" ,
102- " src/internal/video_capturer.h" ,
103105 " src/libwebrtc.cc" ,
104106 " src/rtc_audio_device_impl.cc" ,
105107 " src/rtc_audio_device_impl.h" ,
@@ -137,8 +139,6 @@ rtc_shared_library("libwebrtc") {
137139 " src/rtc_rtp_transceiver_impl.h" ,
138140 " src/rtc_session_description_impl.cc" ,
139141 " src/rtc_session_description_impl.h" ,
140- " src/rtc_video_device_impl.cc" ,
141- " src/rtc_video_device_impl.h" ,
142142 " src/rtc_video_frame_impl.cc" ,
143143 " src/rtc_video_frame_impl.h" ,
144144 " src/rtc_video_sink_adapter.cc" ,
@@ -149,6 +149,28 @@ rtc_shared_library("libwebrtc") {
149149 " src/rtc_video_track_impl.h" ,
150150 ]
151151
152+ if (libwebrtc_dummy_audio_device ) {
153+ sources += [
154+ " src/audio_device_dummy.cc" ,
155+ " src/audio_device_dummy.h" ,
156+ ]
157+ }
158+
159+
160+ # video capture device
161+ if (libwebrtc_video_capture ) {
162+ defines += [ " RTC_VIDEO_CAPTURE_DEVICE" ]
163+ sources += [
164+ " include/rtc_video_capturer.h" ,
165+ " src/internal/video_capturer.h" ,
166+ " src/internal/video_capturer.cc" ,
167+ " src/internal/vcm_capturer.cc" ,
168+ " src/internal/vcm_capturer.h" ,
169+ " src/rtc_video_device_impl.cc" ,
170+ " src/rtc_video_device_impl.h" ,
171+ ]
172+ }
173+
152174 # intel media sdk
153175 if (is_win && libwebrtc_intel_media_sdk ) {
154176 sources += [
@@ -235,7 +257,7 @@ rtc_shared_library("libwebrtc") {
235257
236258 # screen capture device
237259 if (libwebrtc_desktop_capture ) {
238- defines += [ " RTC_DESKTOP_DEVICE " ]
260+ defines += [ " RTC_DESKTOP_CAPTURE_DEVICE " ]
239261 sources += [
240262 " include/rtc_desktop_capturer.h" ,
241263 " include/rtc_desktop_device.h" ,
0 commit comments