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

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: Move libudev include and remove redundant winmm.lib entry Created 4 years, 10 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',
kjellander_webrtc 2016/02/15 16:45:45 Should we split out simulcast.cc and friends into
kjellander_webrtc 2016/02/29 09:18:59 I'll do this, but in a separate CL.
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',
93 'engine/webrtcvideocapturerfactory.h', 90 'engine/webrtcvideocapturerfactory.h',
94 'engine/webrtcvideocapturerfactory.cc', 91 'engine/webrtcvideocapturerfactory.cc',
95 'engine/webrtcvideodecoderfactory.h', 92 'engine/webrtcvideodecoderfactory.h',
(...skipping 21 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 15 matching lines...) Expand all
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"', {
162 'sources': [
163 'devices/libudevsymboltable.cc',
164 'devices/libudevsymboltable.h',
165 'devices/linuxdeviceinfo.cc',
166 'devices/linuxdevicemanager.cc',
167 'devices/linuxdevicemanager.h',
168 'devices/v4llookup.cc',
169 'devices/v4llookup.h',
170 ],
171 'conditions': [ 170 'conditions': [
171 ['include_internal_device_management==1', {
172 'sources': [
173 'devices/libudevsymboltable.cc',
174 'devices/libudevsymboltable.h',
175 'devices/linuxdeviceinfo.cc',
176 'devices/linuxdevicemanager.cc',
177 'devices/linuxdevicemanager.h',
178 'devices/v4llookup.cc',
179 'devices/v4llookup.h',
180 ],
181 'include_dirs': [
182 'third_party/libudev'
183 ],
184 }],
172 ['use_gtk==1', { 185 ['use_gtk==1', {
173 'sources': [ 186 'sources': [
174 'devices/gtkvideorenderer.cc', 187 'devices/gtkvideorenderer.cc',
175 'devices/gtkvideorenderer.h', 188 'devices/gtkvideorenderer.h',
176 ], 189 ],
177 'cflags': [ 190 'cflags': [
178 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)', 191 '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)',
179 ], 192 ],
180 }], 193 }],
181 ], 194 ],
182 'include_dirs': [
183 'third_party/libudev'
184 ],
185 'libraries': [ 195 'libraries': [
kjellander_webrtc 2016/02/15 16:38:40 It seems this is not needed since compilation or r
kjellander_webrtc 2016/02/29 09:18:59 Anyone know the answer to this?
tommi 2016/02/29 13:18:51 I don't. Could we try removing it in a separate C
186 '-lrt', 196 '-lrt',
187 ], 197 ],
188 }], 198 }],
189 ['OS=="win"', { 199 ['OS=="win"', {
190 'sources': [ 200 'sources': [
191 'devices/gdivideorenderer.cc', 201 'devices/gdivideorenderer.cc',
192 'devices/gdivideorenderer.h', 202 'devices/gdivideorenderer.h',
193 'devices/win32deviceinfo.cc',
194 'devices/win32devicemanager.cc',
195 'devices/win32devicemanager.h',
196 ], 203 ],
197 'msvs_settings': { 204 'msvs_settings': {
198 'VCLibrarianTool': { 205 'VCLibrarianTool': {
199 'AdditionalDependencies': [ 206 'AdditionalDependencies': [
200 'd3d9.lib', 207 'd3d9.lib',
kjellander_webrtc 2016/02/15 16:38:40 Same goes with these, rtc_media_unittests compiles
tommi 2016/02/29 13:18:51 Could be that there are other binaries that depend
201 'gdi32.lib', 208 'gdi32.lib',
202 'strmiids.lib', 209 'strmiids.lib',
203 'winmm.lib', 210 'winmm.lib',
204 ], 211 ],
205 }, 212 },
206 }, 213 },
214 'conditions': [
215 ['include_internal_device_management==1', {
216 'sources': [
217 'devices/win32deviceinfo.cc',
218 'devices/win32devicemanager.cc',
219 'devices/win32devicemanager.h',
220 ],
221 }],
222 ],
207 }], 223 }],
208 ['OS=="mac"', { 224 ['OS=="mac"', {
209 'sources': [
210 'devices/macdeviceinfo.cc',
211 'devices/macdevicemanager.cc',
212 'devices/macdevicemanager.h',
213 'devices/macdevicemanagermm.mm',
214 ],
215 'conditions': [ 225 'conditions': [
226 ['include_internal_device_management==1', {
227 'sources': [
228 'devices/macdeviceinfo.cc',
229 'devices/macdevicemanager.cc',
230 'devices/macdevicemanager.h',
231 'devices/macdevicemanagermm.mm',
232 ],
233 'xcode_settings': {
234 'WARNING_CFLAGS': [
235 # TODO(perkj): Update macdevicemanager.cc to stop using
236 # deprecated functions and remove this flag.
237 '-Wno-deprecated-declarations',
238 ],
239 # Disable partial availability warning to prevent errors
240 # in macdevicemanagermm.mm using AVFoundation.
241 # https://code.google.com/p/webrtc/issues/detail?id=4695
242 'WARNING_CFLAGS!': ['-Wpartial-availability'],
243 },
244 'link_settings': {
245 'xcode_settings': {
246 'OTHER_LDFLAGS': [
247 '-weak_framework AVFoundation',
248 '-framework Cocoa',
249 '-framework CoreAudio',
250 '-framework CoreVideo',
251 '-framework OpenGL',
252 '-framework QTKit',
253 ],
254 },
255 },
256 }],
216 ['target_arch=="ia32"', { 257 ['target_arch=="ia32"', {
217 'sources': [ 258 'sources': [
218 'devices/carbonvideorenderer.cc', 259 'devices/carbonvideorenderer.cc',
219 'devices/carbonvideorenderer.h', 260 'devices/carbonvideorenderer.h',
220 ], 261 ],
221 'link_settings': { 262 'link_settings': {
222 'xcode_settings': { 263 'xcode_settings': {
223 'OTHER_LDFLAGS': [ 264 'OTHER_LDFLAGS': [
224 '-framework Carbon', 265 '-framework Carbon',
225 ], 266 ],
226 }, 267 },
227 }, 268 },
228 }], 269 }],
229 ], 270 ],
230 'xcode_settings': {
231 'WARNING_CFLAGS': [
232 # TODO(ronghuawu): Update macdevicemanager.cc to stop using
233 # deprecated functions and remove this flag.
234 '-Wno-deprecated-declarations',
235 ],
236 # Disable partial availability warning to prevent errors
237 # in macdevicemanagermm.mm using AVFoundation.
238 # https://code.google.com/p/webrtc/issues/detail?id=4695
239 'WARNING_CFLAGS!': ['-Wpartial-availability'],
240 },
241 'link_settings': {
242 'xcode_settings': {
243 'OTHER_LDFLAGS': [
244 '-weak_framework AVFoundation',
245 '-framework Cocoa',
246 '-framework CoreAudio',
247 '-framework CoreVideo',
248 '-framework OpenGL',
249 '-framework QTKit',
250 ],
251 },
252 },
253 }], 271 }],
254 ['OS=="ios"', { 272 ['OS=="ios"', {
255 'sources': [ 273 'sources': [
256 'devices/mobiledevicemanager.cc', 274 'devices/mobiledevicemanager.cc',
257 ], 275 ],
258 'include_dirs': [ 276 'include_dirs': [
259 # TODO(sjlee) Remove when vp8 is building for iOS. vp8 pulls in 277 # TODO(sjlee) Remove when vp8 is building for iOS. vp8 pulls in
260 # libjpeg which pulls in libyuv which currently disabled. 278 # libjpeg which pulls in libyuv which currently disabled.
261 '../../third_party/libyuv/include', 279 '../../third_party/libyuv/include',
262 ], 280 ],
(...skipping 15 matching lines...) Expand all
278 }], 296 }],
279 ['OS=="android"', { 297 ['OS=="android"', {
280 'sources': [ 298 'sources': [
281 'devices/mobiledevicemanager.cc', 299 'devices/mobiledevicemanager.cc',
282 ], 300 ],
283 }], 301 }],
284 ], 302 ],
285 }, # target rtc_media 303 }, # target rtc_media
286 ], # targets. 304 ], # targets.
287 } 305 }
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