Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: webrtc/media/media.gyp

Issue 1693803002: Make it possible to exclude device management code from rtc_media target. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Flattended conditions hierarchy, added Android and iOS and updated comment Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 { 9 {
10 'includes': [ '../build/common.gypi', ], 10 'includes': [ '../build/common.gypi', ],
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 'base/videocommon.cc', 70 'base/videocommon.cc',
71 'base/videocommon.h', 71 'base/videocommon.h',
72 'base/videoframe.cc', 72 'base/videoframe.cc',
73 'base/videoframe.h', 73 'base/videoframe.h',
74 'base/videoframefactory.cc', 74 'base/videoframefactory.cc',
75 'base/videoframefactory.h', 75 'base/videoframefactory.h',
76 'base/videorenderer.h', 76 'base/videorenderer.h',
77 'base/yuvframegenerator.cc', 77 'base/yuvframegenerator.cc',
78 'base/yuvframegenerator.h', 78 'base/yuvframegenerator.h',
79 'devices/deviceinfo.h', 79 'devices/deviceinfo.h',
80 'devices/devicemanager.cc',
81 'devices/devicemanager.h',
82 'devices/dummydevicemanager.h',
83 'devices/videorendererfactory.h', 80 'devices/videorendererfactory.h',
84 'engine/nullwebrtcvideoengine.h', 81 'engine/nullwebrtcvideoengine.h',
85 'engine/simulcast.cc', 82 'engine/simulcast.cc',
86 'engine/simulcast.h', 83 'engine/simulcast.h',
87 'engine/webrtccommon.h', 84 'engine/webrtccommon.h',
88 'engine/webrtcmediaengine.cc', 85 'engine/webrtcmediaengine.cc',
89 'engine/webrtcmediaengine.h', 86 'engine/webrtcmediaengine.h',
90 'engine/webrtcmediaengine.cc', 87 'engine/webrtcmediaengine.cc',
91 'engine/webrtcvideocapturer.cc', 88 'engine/webrtcvideocapturer.cc',
92 'engine/webrtcvideocapturer.h', 89 'engine/webrtcvideocapturer.h',
(...skipping 24 matching lines...) Expand all
117 'cflags_cc!': [ 114 'cflags_cc!': [
118 '-Wnon-virtual-dtor', 115 '-Wnon-virtual-dtor',
119 '-Woverloaded-virtual', 116 '-Woverloaded-virtual',
120 ], 117 ],
121 'msvs_disabled_warnings': [ 118 'msvs_disabled_warnings': [
122 4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch. 119 4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch.
123 4267, # conversion from 'size_t' to 'int', possible loss of data. 120 4267, # conversion from 'size_t' to 'int', possible loss of data.
124 4389, # signed/unsigned mismatch. 121 4389, # signed/unsigned mismatch.
125 ], 122 ],
126 'conditions': [ 123 'conditions': [
124 ['include_internal_device_management==1', {
125 'sources': [
126 'devices/devicemanager.cc',
127 'devices/devicemanager.h',
128 ],
129 }, {
130 'sources': [
131 'devices/dummydevicemanager.cc',
132 'devices/dummydevicemanager.h',
133 ],
134 }],
127 ['build_libyuv==1', { 135 ['build_libyuv==1', {
128 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',], 136 'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
129 }], 137 }],
130 ['build_usrsctp==1', { 138 ['build_usrsctp==1', {
131 'include_dirs': [ 139 'include_dirs': [
132 # TODO(jiayl): move this into the direct_dependent_settings of 140 # TODO(jiayl): move this into the direct_dependent_settings of
133 # usrsctp.gyp. 141 # usrsctp.gyp.
134 '<(DEPTH)/third_party/usrsctp/usrsctplib', 142 '<(DEPTH)/third_party/usrsctp/usrsctplib',
135 ], 143 ],
136 'dependencies': [ 144 'dependencies': [
(...skipping 14 matching lines...) Expand all
151 'defines': [ 159 'defines': [
152 'HAVE_WEBRTC_VIDEO', 160 'HAVE_WEBRTC_VIDEO',
153 'HAVE_WEBRTC_VOICE', 161 'HAVE_WEBRTC_VOICE',
154 ], 162 ],
155 }, 163 },
156 'dependencies': [ 164 'dependencies': [
157 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_im pl', 165 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_im pl',
158 '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_imp l', 166 '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_imp l',
159 ], 167 ],
160 }], 168 }],
161 ['OS=="linux"', { 169 ['OS=="linux" and include_internal_device_management==1', {
162 'sources': [ 170 'sources': [
163 'devices/libudevsymboltable.cc', 171 'devices/libudevsymboltable.cc',
164 'devices/libudevsymboltable.h', 172 'devices/libudevsymboltable.h',
165 'devices/linuxdeviceinfo.cc', 173 'devices/linuxdeviceinfo.cc',
166 'devices/linuxdevicemanager.cc', 174 'devices/linuxdevicemanager.cc',
167 'devices/linuxdevicemanager.h', 175 'devices/linuxdevicemanager.h',
168 'devices/v4llookup.cc', 176 'devices/v4llookup.cc',
169 'devices/v4llookup.h', 177 'devices/v4llookup.h',
170 ], 178 ],
171 'conditions': [
172 ['use_gtk==1', {
173 'sources': [
174 'devices/gtkvideorenderer.cc',
175 'devices/gtkvideorenderer.h',
176 ],
177 'cflags': [
178 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)',
179 ],
180 }],
181 ],
182 'include_dirs': [ 179 'include_dirs': [
183 'third_party/libudev' 180 'third_party/libudev'
184 ], 181 ],
185 'libraries': [ 182 'libraries': [
186 '-lrt', 183 '-lrt',
187 ], 184 ],
188 }], 185 }],
186 ['OS=="linux" and use_gtk==1', {
187 'sources': [
188 'devices/gtkvideorenderer.cc',
189 'devices/gtkvideorenderer.h',
190 ],
191 'cflags': [
192 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)',
193 ],
194 }],
189 ['OS=="win"', { 195 ['OS=="win"', {
190 'sources': [ 196 'sources': [
191 'devices/gdivideorenderer.cc', 197 'devices/gdivideorenderer.cc',
192 'devices/gdivideorenderer.h', 198 'devices/gdivideorenderer.h',
193 'devices/win32deviceinfo.cc',
194 'devices/win32devicemanager.cc',
195 'devices/win32devicemanager.h',
196 ], 199 ],
197 'msvs_settings': { 200 'msvs_settings': {
198 'VCLibrarianTool': { 201 'VCLibrarianTool': {
199 'AdditionalDependencies': [ 202 'AdditionalDependencies': [
200 'd3d9.lib', 203 'd3d9.lib',
201 'gdi32.lib', 204 'gdi32.lib',
202 'strmiids.lib', 205 'strmiids.lib',
206 ],
207 },
208 },
209 }],
210 ['OS=="win" and include_internal_device_management==1', {
211 'sources': [
212 'devices/win32deviceinfo.cc',
213 'devices/win32devicemanager.cc',
214 'devices/win32devicemanager.h',
215 ],
216 'msvs_settings': {
217 'VCLibrarianTool': {
218 'AdditionalDependencies': [
203 'winmm.lib', 219 'winmm.lib',
204 ], 220 ],
205 }, 221 },
206 }, 222 },
207 }], 223 }],
208 ['OS=="mac"', { 224 ['OS=="mac" and include_internal_device_management==1', {
209 'sources': [ 225 'sources': [
210 'devices/macdeviceinfo.cc', 226 'devices/macdeviceinfo.cc',
211 'devices/macdevicemanager.cc', 227 'devices/macdevicemanager.cc',
212 'devices/macdevicemanager.h', 228 'devices/macdevicemanager.h',
213 'devices/macdevicemanagermm.mm', 229 'devices/macdevicemanagermm.mm',
214 ], 230 ],
215 'conditions': [
216 ['target_arch=="ia32"', {
217 'sources': [
218 'devices/carbonvideorenderer.cc',
219 'devices/carbonvideorenderer.h',
220 ],
221 'link_settings': {
222 'xcode_settings': {
223 'OTHER_LDFLAGS': [
224 '-framework Carbon',
225 ],
226 },
227 },
228 }],
229 ],
230 'xcode_settings': { 231 'xcode_settings': {
231 'WARNING_CFLAGS': [ 232 'WARNING_CFLAGS': [
232 # TODO(ronghuawu): Update macdevicemanager.cc to stop using 233 # TODO(perkj): Update macdevicemanager.cc to stop using
233 # deprecated functions and remove this flag. 234 # deprecated functions and remove this flag.
234 '-Wno-deprecated-declarations', 235 '-Wno-deprecated-declarations',
235 ], 236 ],
236 # Disable partial availability warning to prevent errors 237 # Disable partial availability warning to prevent errors
237 # in macdevicemanagermm.mm using AVFoundation. 238 # in macdevicemanagermm.mm using AVFoundation.
238 # https://code.google.com/p/webrtc/issues/detail?id=4695 239 # https://code.google.com/p/webrtc/issues/detail?id=4695
239 'WARNING_CFLAGS!': ['-Wpartial-availability'], 240 'WARNING_CFLAGS!': ['-Wpartial-availability'],
240 }, 241 },
241 'link_settings': { 242 'link_settings': {
242 'xcode_settings': { 243 'xcode_settings': {
243 'OTHER_LDFLAGS': [ 244 'OTHER_LDFLAGS': [
244 '-weak_framework AVFoundation', 245 '-weak_framework AVFoundation',
245 '-framework Cocoa', 246 '-framework Cocoa',
246 '-framework CoreAudio', 247 '-framework CoreAudio',
247 '-framework CoreVideo', 248 '-framework CoreVideo',
248 '-framework OpenGL', 249 '-framework OpenGL',
249 '-framework QTKit', 250 '-framework QTKit',
250 ], 251 ],
251 }, 252 },
252 }, 253 },
253 }], 254 }],
254 ['OS=="ios"', { 255 ['OS=="mac" and target_arch=="ia32"', {
256 'sources': [
257 'devices/carbonvideorenderer.cc',
258 'devices/carbonvideorenderer.h',
259 ],
260 'link_settings': {
261 'xcode_settings': {
262 'OTHER_LDFLAGS': [
263 '-framework Carbon',
264 ],
265 },
266 },
267 }],
268 ['OS=="ios" and include_internal_device_management==1', {
255 'sources': [ 269 'sources': [
256 'devices/mobiledevicemanager.cc', 270 'devices/mobiledevicemanager.cc',
257 ], 271 ],
258 'include_dirs': [ 272 'include_dirs': [
259 # TODO(sjlee) Remove when vp8 is building for iOS. vp8 pulls in 273 # TODO(sjlee) Remove when vp8 is building for iOS. vp8 pulls in
260 # libjpeg which pulls in libyuv which currently disabled. 274 # libjpeg which pulls in libyuv which currently disabled.
261 '../../third_party/libyuv/include', 275 '../../third_party/libyuv/include',
262 ], 276 ],
263 # TODO(kjellander): Make the code compile without disabling these. 277 # TODO(kjellander): Make the code compile without disabling these.
264 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307 278 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
265 'cflags': [ 279 'cflags': [
266 '-Wno-unused-const-variable', 280 '-Wno-unused-const-variable',
267 ], 281 ],
268 'xcode_settings': { 282 'xcode_settings': {
269 'WARNING_CFLAGS': [ 283 'WARNING_CFLAGS': [
270 '-Wno-unused-const-variable', 284 '-Wno-unused-const-variable',
271 ], 285 ],
272 }, 286 },
273 }], 287 }],
274 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { 288 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
275 'defines': [ 289 'defines': [
276 'CARBON_DEPRECATED=YES', 290 'CARBON_DEPRECATED=YES',
277 ], 291 ],
278 }], 292 }],
279 ['OS=="android"', { 293 ['OS=="android" and include_internal_device_management==1', {
280 'sources': [ 294 'sources': [
281 'devices/mobiledevicemanager.cc', 295 'devices/mobiledevicemanager.cc',
282 ], 296 ],
283 }], 297 }],
284 ], 298 ],
285 }, # target rtc_media 299 }, # target rtc_media
286 ], # targets. 300 ], # targets.
287 } 301 }
OLDNEW
« no previous file with comments | « webrtc/build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698