OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 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', ], |
11 'conditions': [ | 11 'conditions': [ |
12 ['os_posix==1 and OS!="mac" and OS!="ios"', { | 12 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
13 'conditions': [ | 13 'conditions': [ |
14 ['sysroot!=""', { | 14 ['sysroot!=""', { |
15 'variables': { | 15 'variables': { |
16 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)"
"<(target_arch)"', | 16 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)"
"<(target_arch)"', |
17 }, | 17 }, |
18 }, { | 18 }, { |
19 'variables': { | 19 'variables': { |
20 'pkg-config': 'pkg-config' | 20 'pkg-config': 'pkg-config' |
21 }, | 21 }, |
22 }], | 22 }], |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 'copyonwritebuffer.h', | 93 'copyonwritebuffer.h', |
94 'criticalsection.cc', | 94 'criticalsection.cc', |
95 'criticalsection.h', | 95 'criticalsection.h', |
96 'deprecation.h', | 96 'deprecation.h', |
97 'event.cc', | 97 'event.cc', |
98 'event.h', | 98 'event.h', |
99 'event_tracer.cc', | 99 'event_tracer.cc', |
100 'event_tracer.h', | 100 'event_tracer.h', |
101 'exp_filter.cc', | 101 'exp_filter.cc', |
102 'exp_filter.h', | 102 'exp_filter.h', |
| 103 'logging.cc', |
| 104 'logging.h', |
103 'md5.cc', | 105 'md5.cc', |
104 'md5.h', | 106 'md5.h', |
105 'md5digest.cc', | 107 'md5digest.cc', |
106 'md5digest.h', | 108 'md5digest.h', |
107 'mod_ops.h', | 109 'mod_ops.h', |
108 'optional.h', | 110 'optional.h', |
109 'platform_file.cc', | 111 'platform_file.cc', |
110 'platform_file.h', | 112 'platform_file.h', |
111 'platform_thread.cc', | 113 'platform_thread.cc', |
112 'platform_thread.h', | 114 'platform_thread.h', |
(...skipping 30 matching lines...) Expand all Loading... |
143 'dependencies': [ | 145 'dependencies': [ |
144 '<(DEPTH)/base/base.gyp:base', | 146 '<(DEPTH)/base/base.gyp:base', |
145 ], | 147 ], |
146 'include_dirs': [ | 148 'include_dirs': [ |
147 '../../webrtc_overrides', | 149 '../../webrtc_overrides', |
148 ], | 150 ], |
149 'sources': [ | 151 'sources': [ |
150 '../../webrtc_overrides/webrtc/base/logging.cc', | 152 '../../webrtc_overrides/webrtc/base/logging.cc', |
151 '../../webrtc_overrides/webrtc/base/logging.h', | 153 '../../webrtc_overrides/webrtc/base/logging.h', |
152 ], | 154 ], |
153 }, { | 155 'sources!': [ |
154 'sources': [ | |
155 'logging.cc', | 156 'logging.cc', |
156 'logging.h', | 157 'logging.h', |
157 ], | 158 ], |
158 }], | 159 }], |
159 ], | 160 ], |
160 }, | 161 }, |
161 { | 162 { |
162 'target_name': 'rtc_base', | 163 'target_name': 'rtc_base', |
163 'type': 'static_library', | 164 'type': 'static_library', |
164 'dependencies': [ | 165 'dependencies': [ |
(...skipping 21 matching lines...) Expand all Loading... |
186 'asyncresolverinterface.cc', | 187 'asyncresolverinterface.cc', |
187 'asyncresolverinterface.h', | 188 'asyncresolverinterface.h', |
188 'asyncsocket.cc', | 189 'asyncsocket.cc', |
189 'asyncsocket.h', | 190 'asyncsocket.h', |
190 'asynctcpsocket.cc', | 191 'asynctcpsocket.cc', |
191 'asynctcpsocket.h', | 192 'asynctcpsocket.h', |
192 'asyncudpsocket.cc', | 193 'asyncudpsocket.cc', |
193 'asyncudpsocket.h', | 194 'asyncudpsocket.h', |
194 'autodetectproxy.cc', | 195 'autodetectproxy.cc', |
195 'autodetectproxy.h', | 196 'autodetectproxy.h', |
| 197 'bandwidthsmoother.cc', |
| 198 'bandwidthsmoother.h', |
196 'base64.cc', | 199 'base64.cc', |
197 'base64.h', | 200 'base64.h', |
| 201 'bind.h', |
| 202 'callback.h', |
198 'common.cc', | 203 'common.cc', |
199 'common.h', | 204 'common.h', |
200 'crc32.cc', | 205 'crc32.cc', |
201 'crc32.h', | 206 'crc32.h', |
202 'cryptstring.cc', | 207 'cryptstring.cc', |
203 'cryptstring.h', | 208 'cryptstring.h', |
| 209 'dbus.cc', |
| 210 'dbus.h', |
204 'diskcache.cc', | 211 'diskcache.cc', |
205 'diskcache.h', | 212 'diskcache.h', |
| 213 'diskcache_win32.cc', |
| 214 'diskcache_win32.h', |
206 'filerotatingstream.cc', | 215 'filerotatingstream.cc', |
207 'filerotatingstream.h', | 216 'filerotatingstream.h', |
208 'fileutils.cc', | 217 'fileutils.cc', |
209 'fileutils.h', | 218 'fileutils.h', |
| 219 'fileutils_mock.h', |
210 'firewallsocketserver.cc', | 220 'firewallsocketserver.cc', |
211 'firewallsocketserver.h', | 221 'firewallsocketserver.h', |
212 'flags.cc', | 222 'flags.cc', |
213 'flags.h', | 223 'flags.h', |
214 'format_macros.h', | 224 'format_macros.h', |
215 'gunit_prod.h', | 225 'gunit_prod.h', |
216 'helpers.cc', | 226 'helpers.cc', |
217 'helpers.h', | 227 'helpers.h', |
218 'httpbase.cc', | 228 'httpbase.cc', |
219 'httpbase.h', | 229 'httpbase.h', |
220 'httpclient.cc', | 230 'httpclient.cc', |
221 'httpclient.h', | 231 'httpclient.h', |
222 'httpcommon-inl.h', | 232 'httpcommon-inl.h', |
223 'httpcommon.cc', | 233 'httpcommon.cc', |
224 'httpcommon.h', | 234 'httpcommon.h', |
225 'httprequest.cc', | 235 'httprequest.cc', |
226 'httprequest.h', | 236 'httprequest.h', |
| 237 'httpserver.cc', |
| 238 'httpserver.h', |
| 239 'ifaddrs-android.cc', |
| 240 'ifaddrs-android.h', |
| 241 'ifaddrs_converter.cc', |
| 242 'ifaddrs_converter.h', |
| 243 'macifaddrs_converter.cc', |
227 'iosfilesystem.mm', | 244 'iosfilesystem.mm', |
228 'ipaddress.cc', | 245 'ipaddress.cc', |
229 'ipaddress.h', | 246 'ipaddress.h', |
| 247 'json.cc', |
| 248 'json.h', |
| 249 'latebindingsymboltable.cc', |
| 250 'latebindingsymboltable.h', |
| 251 'libdbusglibsymboltable.cc', |
| 252 'libdbusglibsymboltable.h', |
| 253 'linux.cc', |
| 254 'linux.h', |
| 255 'linuxfdwalk.c', |
| 256 'linuxfdwalk.h', |
230 'linked_ptr.h', | 257 'linked_ptr.h', |
| 258 'logsinks.cc', |
| 259 'logsinks.h', |
| 260 'macasyncsocket.cc', |
| 261 'macasyncsocket.h', |
| 262 'maccocoasocketserver.h', |
| 263 'maccocoasocketserver.mm', |
| 264 'maccocoathreadhelper.h', |
| 265 'maccocoathreadhelper.mm', |
| 266 'macconversion.cc', |
| 267 'macconversion.h', |
| 268 'macsocketserver.cc', |
| 269 'macsocketserver.h', |
| 270 'macutils.cc', |
| 271 'macutils.h', |
| 272 'macwindowpicker.cc', |
| 273 'macwindowpicker.h', |
| 274 'mathutils.h', |
231 'messagedigest.cc', | 275 'messagedigest.cc', |
232 'messagedigest.h', | 276 'messagedigest.h', |
233 'messagehandler.cc', | 277 'messagehandler.cc', |
234 'messagehandler.h', | 278 'messagehandler.h', |
235 'messagequeue.cc', | 279 'messagequeue.cc', |
236 'messagequeue.h', | 280 'messagequeue.h', |
| 281 'multipart.cc', |
| 282 'multipart.h', |
| 283 'natserver.cc', |
| 284 'natserver.h', |
| 285 'natsocketfactory.cc', |
| 286 'natsocketfactory.h', |
| 287 'nattypes.cc', |
| 288 'nattypes.h', |
237 'nethelpers.cc', | 289 'nethelpers.cc', |
238 'nethelpers.h', | 290 'nethelpers.h', |
239 'network.cc', | 291 'network.cc', |
240 'network.h', | 292 'network.h', |
241 'networkmonitor.cc', | 293 'networkmonitor.cc', |
242 'networkmonitor.h', | 294 'networkmonitor.h', |
243 'nullsocketserver.h', | 295 'nullsocketserver.h', |
244 'openssl.h', | 296 'openssl.h', |
245 'openssladapter.cc', | 297 'openssladapter.cc', |
246 'openssladapter.h', | 298 'openssladapter.h', |
247 'openssldigest.cc', | 299 'openssldigest.cc', |
248 'openssldigest.h', | 300 'openssldigest.h', |
249 'opensslidentity.cc', | 301 'opensslidentity.cc', |
250 'opensslidentity.h', | 302 'opensslidentity.h', |
251 'opensslstreamadapter.cc', | 303 'opensslstreamadapter.cc', |
252 'opensslstreamadapter.h', | 304 'opensslstreamadapter.h', |
| 305 'optionsfile.cc', |
| 306 'optionsfile.h', |
253 'pathutils.cc', | 307 'pathutils.cc', |
254 'pathutils.h', | 308 'pathutils.h', |
255 'physicalsocketserver.cc', | 309 'physicalsocketserver.cc', |
256 'physicalsocketserver.h', | 310 'physicalsocketserver.h', |
| 311 'posix.cc', |
| 312 'posix.h', |
| 313 'profiler.cc', |
| 314 'profiler.h', |
257 'proxydetect.cc', | 315 'proxydetect.cc', |
258 'proxydetect.h', | 316 'proxydetect.h', |
259 'proxyinfo.cc', | 317 'proxyinfo.cc', |
260 'proxyinfo.h', | 318 'proxyinfo.h', |
| 319 'proxyserver.cc', |
| 320 'proxyserver.h', |
261 'ratelimiter.cc', | 321 'ratelimiter.cc', |
262 'ratelimiter.h', | 322 'ratelimiter.h', |
| 323 'referencecountedsingletonfactory.h', |
| 324 'rollingaccumulator.h', |
263 'rtccertificate.cc', | 325 'rtccertificate.cc', |
264 'rtccertificate.h', | 326 'rtccertificate.h', |
| 327 'scoped_autorelease_pool.h', |
| 328 'scoped_autorelease_pool.mm', |
| 329 'scopedptrcollection.h', |
| 330 'sec_buffer.h', |
265 'sha1.cc', | 331 'sha1.cc', |
266 'sha1.h', | 332 'sha1.h', |
267 'sha1digest.cc', | 333 'sha1digest.cc', |
268 'sha1digest.h', | 334 'sha1digest.h', |
269 'sharedexclusivelock.cc', | 335 'sharedexclusivelock.cc', |
270 'sharedexclusivelock.h', | 336 'sharedexclusivelock.h', |
271 'signalthread.cc', | 337 'signalthread.cc', |
272 'signalthread.h', | 338 'signalthread.h', |
273 'sigslot.cc', | 339 'sigslot.cc', |
274 'sigslot.h', | 340 'sigslot.h', |
275 'sigslotrepeater.h', | 341 'sigslotrepeater.h', |
276 'socket.h', | 342 'socket.h', |
277 'socketadapters.cc', | 343 'socketadapters.cc', |
278 'socketadapters.h', | 344 'socketadapters.h', |
279 'socketaddress.cc', | 345 'socketaddress.cc', |
280 'socketaddress.h', | 346 'socketaddress.h', |
281 'socketaddresspair.cc', | 347 'socketaddresspair.cc', |
282 'socketaddresspair.h', | 348 'socketaddresspair.h', |
283 'socketfactory.h', | 349 'socketfactory.h', |
284 'socketpool.cc', | 350 'socketpool.cc', |
285 'socketpool.h', | 351 'socketpool.h', |
286 'socketserver.h', | 352 'socketserver.h', |
287 'socketstream.cc', | 353 'socketstream.cc', |
288 'socketstream.h', | 354 'socketstream.h', |
289 'ssladapter.cc', | 355 'ssladapter.cc', |
290 'ssladapter.h', | 356 'ssladapter.h', |
| 357 'sslconfig.h', |
291 'sslfingerprint.cc', | 358 'sslfingerprint.cc', |
292 'sslfingerprint.h', | 359 'sslfingerprint.h', |
293 'sslidentity.cc', | 360 'sslidentity.cc', |
294 'sslidentity.h', | 361 'sslidentity.h', |
| 362 'sslroots.h', |
295 'sslsocketfactory.cc', | 363 'sslsocketfactory.cc', |
296 'sslsocketfactory.h', | 364 'sslsocketfactory.h', |
297 'sslstreamadapter.cc', | 365 'sslstreamadapter.cc', |
298 'sslstreamadapter.h', | 366 'sslstreamadapter.h', |
299 'stream.cc', | 367 'stream.cc', |
300 'stream.h', | 368 'stream.h', |
301 'task.cc', | 369 'task.cc', |
302 'task.h', | 370 'task.h', |
303 'taskparent.cc', | 371 'taskparent.cc', |
304 'taskparent.h', | 372 'taskparent.h', |
305 'taskrunner.cc', | 373 'taskrunner.cc', |
306 'taskrunner.h', | 374 'taskrunner.h', |
| 375 'testclient.cc', |
| 376 'testclient.h', |
307 'thread.cc', | 377 'thread.cc', |
308 'thread.h', | 378 'thread.h', |
309 'timing.cc', | 379 'timing.cc', |
310 'timing.h', | 380 'timing.h', |
| 381 'transformadapter.cc', |
| 382 'transformadapter.h', |
| 383 'unixfilesystem.cc', |
| 384 'unixfilesystem.h', |
311 'urlencode.cc', | 385 'urlencode.cc', |
312 'urlencode.h', | 386 'urlencode.h', |
| 387 'versionparsing.cc', |
| 388 'versionparsing.h', |
| 389 'virtualsocketserver.cc', |
| 390 'virtualsocketserver.h', |
| 391 'win32.cc', |
| 392 'win32.h', |
| 393 'win32filesystem.cc', |
| 394 'win32filesystem.h', |
| 395 'win32regkey.cc', |
| 396 'win32regkey.h', |
| 397 'win32securityerrors.cc', |
| 398 'win32socketinit.cc', |
| 399 'win32socketinit.h', |
| 400 'win32socketserver.cc', |
| 401 'win32socketserver.h', |
| 402 'win32window.cc', |
| 403 'win32window.h', |
| 404 'win32windowpicker.cc', |
| 405 'win32windowpicker.h', |
| 406 'window.h', |
| 407 'windowpicker.h', |
| 408 'windowpickerfactory.h', |
| 409 'winfirewall.cc', |
| 410 'winfirewall.h', |
| 411 'winping.cc', |
| 412 'winping.h', |
313 'worker.cc', | 413 'worker.cc', |
314 'worker.h', | 414 'worker.h', |
| 415 'x11windowpicker.cc', |
| 416 'x11windowpicker.h', |
315 ], | 417 ], |
316 # TODO(henrike): issue 3307, make rtc_base build without disabling | 418 # TODO(henrike): issue 3307, make rtc_base build without disabling |
317 # these flags. | 419 # these flags. |
318 'cflags!': [ | 420 'cflags!': [ |
319 '-Wextra', | 421 '-Wextra', |
320 '-Wall', | 422 '-Wall', |
321 ], | 423 ], |
322 'cflags_cc!': [ | 424 'cflags_cc!': [ |
323 '-Wnon-virtual-dtor', | 425 '-Wnon-virtual-dtor', |
324 ], | 426 ], |
(...skipping 13 matching lines...) Expand all Loading... |
338 ], | 440 ], |
339 'conditions': [ | 441 'conditions': [ |
340 ['build_with_chromium==1', { | 442 ['build_with_chromium==1', { |
341 'include_dirs': [ | 443 'include_dirs': [ |
342 '../../webrtc_overrides', | 444 '../../webrtc_overrides', |
343 '../../boringssl/src/include', | 445 '../../boringssl/src/include', |
344 ], | 446 ], |
345 'sources': [ | 447 'sources': [ |
346 '../../webrtc_overrides/webrtc/base/win32socketinit.cc', | 448 '../../webrtc_overrides/webrtc/base/win32socketinit.cc', |
347 ], | 449 ], |
348 'defines': [ | 450 'sources!': [ |
349 'NO_MAIN_THREAD_WRAPPING', | |
350 ], | |
351 'direct_dependent_settings': { | |
352 'defines': [ | |
353 'NO_MAIN_THREAD_WRAPPING', | |
354 ], | |
355 }, | |
356 }, { | |
357 'sources': [ | |
358 'bandwidthsmoother.cc', | 451 'bandwidthsmoother.cc', |
359 'bandwidthsmoother.h', | 452 'bandwidthsmoother.h', |
360 'bind.h', | 453 'bind.h', |
361 'bind.h.pump', | |
362 'callback.h', | 454 'callback.h', |
363 'callback.h.pump', | 455 'dbus.cc', |
| 456 'dbus.h', |
| 457 'diskcache_win32.cc', |
| 458 'diskcache_win32.h', |
364 'fileutils_mock.h', | 459 'fileutils_mock.h', |
| 460 'genericslot.h', |
365 'httpserver.cc', | 461 'httpserver.cc', |
366 'httpserver.h', | 462 'httpserver.h', |
367 'json.cc', | 463 'json.cc', |
368 'json.h', | 464 'json.h', |
| 465 'latebindingsymboltable.cc', |
| 466 'latebindingsymboltable.h', |
| 467 'libdbusglibsymboltable.cc', |
| 468 'libdbusglibsymboltable.h', |
| 469 'linuxfdwalk.c', |
| 470 'linuxfdwalk.h', |
| 471 'x11windowpicker.cc', |
| 472 'x11windowpicker.h', |
| 473 'logging.cc', |
| 474 'logging.h', |
369 'logsinks.cc', | 475 'logsinks.cc', |
370 'logsinks.h', | 476 'logsinks.h', |
| 477 'macasyncsocket.cc', |
| 478 'macasyncsocket.h', |
| 479 'maccocoasocketserver.h', |
| 480 'maccocoasocketserver.mm', |
| 481 'macsocketserver.cc', |
| 482 'macsocketserver.h', |
| 483 'macwindowpicker.cc', |
| 484 'macwindowpicker.h', |
371 'mathutils.h', | 485 'mathutils.h', |
372 'multipart.cc', | 486 'multipart.cc', |
373 'multipart.h', | 487 'multipart.h', |
374 'natserver.cc', | 488 'natserver.cc', |
375 'natserver.h', | 489 'natserver.h', |
376 'natsocketfactory.cc', | 490 'natsocketfactory.cc', |
377 'natsocketfactory.h', | 491 'natsocketfactory.h', |
378 'nattypes.cc', | 492 'nattypes.cc', |
379 'nattypes.h', | 493 'nattypes.h', |
380 'optionsfile.cc', | 494 'optionsfile.cc', |
381 'optionsfile.h', | 495 'optionsfile.h', |
| 496 'posix.cc', |
| 497 'posix.h', |
382 'profiler.cc', | 498 'profiler.cc', |
383 'profiler.h', | 499 'profiler.h', |
384 'proxyserver.cc', | 500 'proxyserver.cc', |
385 'proxyserver.h', | 501 'proxyserver.h', |
386 'referencecountedsingletonfactory.h', | 502 'referencecountedsingletonfactory.h', |
387 'rollingaccumulator.h', | 503 'rollingaccumulator.h', |
| 504 'safe_conversions.h', |
| 505 'safe_conversions_impl.h', |
388 'scopedptrcollection.h', | 506 'scopedptrcollection.h', |
389 'sec_buffer.h', | 507 'sec_buffer.h', |
390 'sslconfig.h', | 508 'sslconfig.h', |
391 'sslroots.h', | 509 'sslroots.h', |
392 'testbase64.h', | 510 'testbase64.h', |
393 'testclient.cc', | 511 'testclient.cc', |
394 'testclient.h', | 512 'testclient.h', |
395 'transformadapter.cc', | 513 'transformadapter.cc', |
396 'transformadapter.h', | 514 'transformadapter.h', |
397 'versionparsing.cc', | 515 'versionparsing.cc', |
398 'versionparsing.h', | 516 'versionparsing.h', |
399 'virtualsocketserver.cc', | 517 'virtualsocketserver.cc', |
400 'virtualsocketserver.h', | 518 'virtualsocketserver.h', |
| 519 'win32regkey.cc', |
| 520 'win32regkey.h', |
| 521 'win32socketinit.cc', |
| 522 'win32socketinit.h', |
| 523 'win32socketserver.cc', |
| 524 'win32socketserver.h', |
401 'window.h', | 525 'window.h', |
| 526 'windowpickerfactory.h', |
402 'windowpicker.h', | 527 'windowpicker.h', |
403 'windowpickerfactory.h', | |
404 ], | 528 ], |
| 529 'defines': [ |
| 530 'NO_MAIN_THREAD_WRAPPING', |
| 531 ], |
| 532 'direct_dependent_settings': { |
| 533 'defines': [ |
| 534 'NO_MAIN_THREAD_WRAPPING', |
| 535 ], |
| 536 }, |
| 537 }, { |
405 'conditions': [ | 538 'conditions': [ |
406 ['build_json==1', { | 539 ['build_json==1', { |
407 'dependencies': [ | 540 'dependencies': [ |
408 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', | 541 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', |
409 ], | 542 ], |
410 }, { | 543 }, { |
411 'include_dirs': [ | 544 'include_dirs': [ |
412 '<(json_root)', | 545 '<(json_root)', |
413 ], | 546 ], |
414 'defines': [ | 547 'defines': [ |
415 # When defined changes the include path for json.h to where it | 548 # When defined changes the include path for json.h to where it |
416 # is expected to be when building json outside of the standalone | 549 # is expected to be when building json outside of the standalone |
417 # build. | 550 # build. |
418 'WEBRTC_EXTERNAL_JSON', | 551 'WEBRTC_EXTERNAL_JSON', |
419 ], | 552 ], |
420 }], | 553 }], |
421 ['OS=="linux"', { | |
422 'sources': [ | |
423 'dbus.cc', | |
424 'dbus.h', | |
425 'libdbusglibsymboltable.cc', | |
426 'libdbusglibsymboltable.h', | |
427 'linuxfdwalk.c', | |
428 'linuxfdwalk.h', | |
429 ], | |
430 }], | |
431 ['os_posix==1', { | |
432 'sources': [ | |
433 'latebindingsymboltable.cc', | |
434 'latebindingsymboltable.cc.def', | |
435 'latebindingsymboltable.h', | |
436 'latebindingsymboltable.h.def', | |
437 'posix.cc', | |
438 'posix.h', | |
439 ], | |
440 }], | |
441 ['OS=="mac"', { | |
442 'sources': [ | |
443 'macasyncsocket.cc', | |
444 'macasyncsocket.h', | |
445 'maccocoasocketserver.h', | |
446 'maccocoasocketserver.mm', | |
447 'macsocketserver.cc', | |
448 'macsocketserver.h', | |
449 'macwindowpicker.cc', | |
450 'macwindowpicker.h', | |
451 ], | |
452 }], | |
453 ['OS=="win"', { | |
454 'sources': [ | |
455 'diskcache_win32.cc', | |
456 'diskcache_win32.h', | |
457 'win32regkey.cc', | |
458 'win32regkey.h', | |
459 'win32socketinit.cc', | |
460 'win32socketinit.h', | |
461 'win32socketserver.cc', | |
462 'win32socketserver.h', | |
463 ], | |
464 }], | |
465 ['OS=="win" and clang==1', { | 554 ['OS=="win" and clang==1', { |
466 'msvs_settings': { | 555 'msvs_settings': { |
467 'VCCLCompilerTool': { | 556 'VCCLCompilerTool': { |
468 'AdditionalOptions': [ | 557 'AdditionalOptions': [ |
469 # Disable warnings failing when compiling with Clang on Wind
ows. | 558 # Disable warnings failing when compiling with Clang on Wind
ows. |
470 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 559 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
471 '-Wno-sign-compare', | 560 '-Wno-sign-compare', |
472 '-Wno-missing-braces', | 561 '-Wno-missing-braces', |
473 ], | 562 ], |
474 }, | 563 }, |
475 }, | 564 }, |
476 }], | 565 }], |
477 ], # conditions | |
478 }], # build_with_chromium==0 | |
479 ['OS=="android"', { | |
480 'sources': [ | |
481 'ifaddrs-android.cc', | |
482 'ifaddrs-android.h', | |
483 ], | 566 ], |
| 567 }], |
| 568 ['OS == "android"', { |
484 'link_settings': { | 569 'link_settings': { |
485 'libraries': [ | 570 'libraries': [ |
486 '-llog', | 571 '-llog', |
487 '-lGLESv2', | 572 '-lGLESv2', |
488 ], | 573 ], |
489 }, | 574 }, |
490 }], | 575 }, { |
491 ['OS=="mac" or OS=="ios"', { | 576 'sources!': [ |
492 'sources': [ | 577 'ifaddrs-android.cc', |
493 'maccocoathreadhelper.h', | 578 'ifaddrs-android.h', |
494 'maccocoathreadhelper.mm', | |
495 'macconversion.cc', | |
496 'macconversion.h', | |
497 'macifaddrs_converter.cc', | |
498 'scoped_autorelease_pool.h', | |
499 'scoped_autorelease_pool.mm', | |
500 ], | 579 ], |
501 }], | 580 }], |
502 ['OS=="ios"', { | 581 ['OS=="ios"', { |
| 582 'sources/': [ |
| 583 ['include', 'macconversion.*'], |
| 584 ], |
503 'all_dependent_settings': { | 585 'all_dependent_settings': { |
504 'xcode_settings': { | 586 'xcode_settings': { |
505 'OTHER_LDFLAGS': [ | 587 'OTHER_LDFLAGS': [ |
506 '-framework CFNetwork', | 588 '-framework CFNetwork', |
507 '-framework Foundation', | 589 '-framework Foundation', |
508 '-framework Security', | 590 '-framework Security', |
509 '-framework SystemConfiguration', | 591 '-framework SystemConfiguration', |
510 '-framework UIKit', | 592 '-framework UIKit', |
511 ], | 593 ], |
512 }, | 594 }, |
513 }, | 595 }, |
514 }], | 596 }], |
515 ['use_x11==1', { | 597 ['use_x11 == 1', { |
516 'sources': [ | |
517 'x11windowpicker.cc', | |
518 'x11windowpicker.h', | |
519 ], | |
520 'link_settings': { | 598 'link_settings': { |
521 'libraries': [ | 599 'libraries': [ |
522 '-ldl', | 600 '-ldl', |
523 '-lrt', | 601 '-lrt', |
524 '-lXext', | 602 '-lXext', |
525 '-lX11', | 603 '-lX11', |
526 '-lXcomposite', | 604 '-lXcomposite', |
527 '-lXrender', | 605 '-lXrender', |
528 ], | 606 ], |
529 }, | 607 }, |
| 608 }, { |
| 609 'sources!': [ |
| 610 'x11windowpicker.cc', |
| 611 'x11windowpicker.h', |
| 612 ], |
530 }], | 613 }], |
531 ['OS=="linux"', { | 614 ['OS=="linux"', { |
532 'link_settings': { | 615 'link_settings': { |
533 'libraries': [ | 616 'libraries': [ |
534 '-ldl', | 617 '-ldl', |
535 '-lrt', | 618 '-lrt', |
536 ], | 619 ], |
537 }, | 620 }, |
| 621 }, { |
| 622 'sources!': [ |
| 623 'dbus.cc', |
| 624 'dbus.h', |
| 625 'libdbusglibsymboltable.cc', |
| 626 'libdbusglibsymboltable.h', |
| 627 'linuxfdwalk.c', |
| 628 ], |
538 }], | 629 }], |
539 ['OS=="mac"', { | 630 ['OS=="mac"', { |
540 'sources': [ | |
541 'macutils.cc', | |
542 'macutils.h', | |
543 ], | |
544 'all_dependent_settings': { | 631 'all_dependent_settings': { |
545 'link_settings': { | 632 'link_settings': { |
546 'xcode_settings': { | 633 'xcode_settings': { |
547 'OTHER_LDFLAGS': [ | 634 'OTHER_LDFLAGS': [ |
548 '-framework Cocoa', | 635 '-framework Cocoa', |
549 '-framework Foundation', | 636 '-framework Foundation', |
550 '-framework IOKit', | 637 '-framework IOKit', |
551 '-framework Security', | 638 '-framework Security', |
552 '-framework SystemConfiguration', | 639 '-framework SystemConfiguration', |
553 ], | 640 ], |
554 }, | 641 }, |
555 }, | 642 }, |
556 }, | 643 }, |
557 'conditions': [ | 644 'conditions': [ |
558 ['target_arch=="ia32"', { | 645 ['target_arch=="ia32"', { |
559 'all_dependent_settings': { | 646 'all_dependent_settings': { |
560 'link_settings': { | 647 'link_settings': { |
561 'xcode_settings': { | 648 'xcode_settings': { |
562 'OTHER_LDFLAGS': [ | 649 'OTHER_LDFLAGS': [ |
563 '-framework Carbon', | 650 '-framework Carbon', |
564 ], | 651 ], |
565 }, | 652 }, |
566 }, | 653 }, |
567 }, | 654 }, |
568 }], | 655 }], |
569 ], | 656 ], |
| 657 }, { |
| 658 'sources!': [ |
| 659 'macasyncsocket.cc', |
| 660 'macasyncsocket.h', |
| 661 'maccocoasocketserver.h', |
| 662 'maccocoasocketserver.mm', |
| 663 'macconversion.cc', |
| 664 'macconversion.h', |
| 665 'macsocketserver.cc', |
| 666 'macsocketserver.h', |
| 667 'macutils.cc', |
| 668 'macutils.h', |
| 669 'macwindowpicker.cc', |
| 670 'macwindowpicker.h', |
| 671 ], |
570 }], | 672 }], |
571 ['OS=="win"', { | 673 ['OS=="win"', { |
572 'sources': [ | 674 'sources!': [ |
573 'win32.cc', | 675 'ifaddrs_converter.cc', |
574 'win32.h', | |
575 'win32filesystem.cc', | |
576 'win32filesystem.h', | |
577 'win32securityerrors.cc', | |
578 'win32window.cc', | |
579 'win32window.h', | |
580 'win32windowpicker.cc', | |
581 'win32windowpicker.h', | |
582 'winfirewall.cc', | |
583 'winfirewall.h', | |
584 'winping.cc', | |
585 'winping.h', | |
586 ], | 676 ], |
587 'link_settings': { | 677 'link_settings': { |
588 'libraries': [ | 678 'libraries': [ |
589 '-lcrypt32.lib', | 679 '-lcrypt32.lib', |
590 '-liphlpapi.lib', | 680 '-liphlpapi.lib', |
591 '-lsecur32.lib', | 681 '-lsecur32.lib', |
592 ], | 682 ], |
593 }, | 683 }, |
594 # Suppress warnings about WIN32_LEAN_AND_MEAN. | 684 # Suppress warnings about WIN32_LEAN_AND_MEAN. |
595 'msvs_disabled_warnings': [4005, 4703], | 685 'msvs_disabled_warnings': [4005, 4703], |
596 'defines': [ | 686 'defines': [ |
597 '_CRT_NONSTDC_NO_DEPRECATE', | 687 '_CRT_NONSTDC_NO_DEPRECATE', |
598 ], | 688 ], |
| 689 }, { |
| 690 'sources/': [ |
| 691 ['exclude', 'win32[a-z0-9]*\\.(h|cc)$'], |
| 692 ], |
| 693 'sources!': [ |
| 694 'winping.cc', |
| 695 'winping.h', |
| 696 'winfirewall.cc', |
| 697 'winfirewall.h', |
| 698 ], |
599 }], | 699 }], |
600 ['os_posix==1', { | 700 ['os_posix==0', { |
601 'sources': [ | 701 'sources!': [ |
602 'ifaddrs_converter.cc', | 702 'latebindingsymboltable.cc', |
603 'ifaddrs_converter.h', | 703 'latebindingsymboltable.h', |
| 704 'posix.cc', |
| 705 'posix.h', |
604 'unixfilesystem.cc', | 706 'unixfilesystem.cc', |
605 'unixfilesystem.h', | 707 'unixfilesystem.h', |
606 ], | 708 ], |
| 709 }, { |
607 'configurations': { | 710 'configurations': { |
608 'Debug_Base': { | 711 'Debug_Base': { |
609 'defines': [ | 712 'defines': [ |
610 # Chromium's build/common.gypi defines this for all posix | 713 # Chromium's build/common.gypi defines this for all posix |
611 # _except_ for ios & mac. We want it there as well, e.g. | 714 # _except_ for ios & mac. We want it there as well, e.g. |
612 # because ASSERT and friends trigger off of it. | 715 # because ASSERT and friends trigger off of it. |
613 '_DEBUG', | 716 '_DEBUG', |
614 ], | 717 ], |
615 }, | 718 }, |
616 } | 719 } |
617 }], | 720 }], |
618 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { | 721 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { |
619 'defines': [ | 722 'defines': [ |
620 'CARBON_DEPRECATED=YES', | 723 'CARBON_DEPRECATED=YES', |
621 ], | 724 ], |
622 }], | 725 }], |
623 ['OS=="linux" or OS=="android"', { | 726 ['OS!="ios" and OS!="mac"', { |
624 'sources': [ | 727 'sources!': [ |
| 728 'macifaddrs_converter.cc', |
| 729 'scoped_autorelease_pool.mm', |
| 730 ], |
| 731 }], |
| 732 ['OS!="linux" and OS!="android"', { |
| 733 'sources!': [ |
625 'linux.cc', | 734 'linux.cc', |
626 'linux.h', | 735 'linux.h', |
627 ], | 736 ], |
628 }], | 737 }], |
629 ['build_ssl==1', { | 738 ['build_ssl==1', { |
630 'dependencies': [ | 739 'dependencies': [ |
631 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', | 740 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
632 ], | 741 ], |
633 }, { | 742 }, { |
634 'include_dirs': [ | 743 'include_dirs': [ |
635 '<(ssl_root)', | 744 '<(ssl_root)', |
636 ], | 745 ], |
637 }], | 746 }], |
638 ], | 747 ], |
639 }, | 748 }, |
640 { | 749 { |
641 'target_name': 'gtest_prod', | 750 'target_name': 'gtest_prod', |
642 'type': 'static_library', | 751 'type': 'static_library', |
643 'sources': [ | 752 'sources': [ |
644 'gtest_prod_util.h', | 753 'gtest_prod_util.h', |
645 ], | 754 ], |
646 }, | 755 }, |
647 ], | 756 ], |
648 } | 757 } |
OLD | NEW |