@@ -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" ,
@@ -69,6 +76,7 @@ rtc_shared_library("libwebrtc") {
6976 " include/base/scoped_ref_ptr.h" ,
7077 " include/libwebrtc.h" ,
7178 " include/rtc_audio_device.h" ,
79+ " include/rtc_audio_frame.h" ,
7280 " include/rtc_audio_source.h" ,
7381 " include/rtc_audio_track.h" ,
7482 " include/rtc_data_channel.h" ,
@@ -88,21 +96,18 @@ rtc_shared_library("libwebrtc") {
8896 " include/rtc_rtp_transceiver.h" ,
8997 " include/rtc_session_description.h" ,
9098 " include/rtc_types.h" ,
91- " include/rtc_video_device.h" ,
9299 " include/rtc_video_frame.h" ,
93100 " include/rtc_video_renderer.h" ,
94101 " include/rtc_video_source.h" ,
95102 " include/rtc_video_track.h" ,
96103 " include/helper.h" ,
97104 " src/helper.cc" ,
98105 " 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" ,
103106 " src/libwebrtc.cc" ,
104107 " src/rtc_audio_device_impl.cc" ,
105108 " src/rtc_audio_device_impl.h" ,
109+ " src/rtc_audio_frame_impl.cc" ,
110+ " src/rtc_audio_frame_impl.h" ,
106111 " src/rtc_audio_source_impl.cc" ,
107112 " src/rtc_audio_source_impl.h" ,
108113 " src/rtc_audio_track_impl.cc" ,
@@ -137,8 +142,6 @@ rtc_shared_library("libwebrtc") {
137142 " src/rtc_rtp_transceiver_impl.h" ,
138143 " src/rtc_session_description_impl.cc" ,
139144 " src/rtc_session_description_impl.h" ,
140- " src/rtc_video_device_impl.cc" ,
141- " src/rtc_video_device_impl.h" ,
142145 " src/rtc_video_frame_impl.cc" ,
143146 " src/rtc_video_frame_impl.h" ,
144147 " src/rtc_video_sink_adapter.cc" ,
@@ -149,6 +152,28 @@ rtc_shared_library("libwebrtc") {
149152 " src/rtc_video_track_impl.h" ,
150153 ]
151154
155+ if (libwebrtc_dummy_audio_device ) {
156+ sources += [
157+ " src/audio_device_dummy.cc" ,
158+ " src/audio_device_dummy.h" ,
159+ ]
160+ }
161+
162+
163+ # video capture device
164+ if (libwebrtc_video_capture ) {
165+ defines += [ " RTC_VIDEO_CAPTURE_DEVICE" ]
166+ sources += [
167+ " include/rtc_video_capturer.h" ,
168+ " src/internal/video_capturer.h" ,
169+ " src/internal/video_capturer.cc" ,
170+ " src/internal/vcm_capturer.cc" ,
171+ " src/internal/vcm_capturer.h" ,
172+ " src/rtc_video_device_impl.cc" ,
173+ " src/rtc_video_device_impl.h" ,
174+ ]
175+ }
176+
152177 # intel media sdk
153178 if (is_win && libwebrtc_intel_media_sdk ) {
154179 sources += [
@@ -235,7 +260,7 @@ rtc_shared_library("libwebrtc") {
235260
236261 # screen capture device
237262 if (libwebrtc_desktop_capture ) {
238- defines += [ " RTC_DESKTOP_DEVICE " ]
263+ defines += [ " RTC_DESKTOP_CAPTURE_DEVICE " ]
239264 sources += [
240265 " include/rtc_desktop_capturer.h" ,
241266 " include/rtc_desktop_device.h" ,
0 commit comments