OLD | NEW |
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 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 # This file contains common settings for building WebRTC components. | 9 # This file contains common settings for building WebRTC components. |
10 | 10 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 # For WebRTC, we want it there as well, because ASSERT and | 256 # For WebRTC, we want it there as well, because ASSERT and |
257 # friends trigger off of it. | 257 # friends trigger off of it. |
258 '_DEBUG', | 258 '_DEBUG', |
259 ], | 259 ], |
260 }, | 260 }, |
261 }, | 261 }, |
262 }], | 262 }], |
263 ['build_with_chromium==1', { | 263 ['build_with_chromium==1', { |
264 'defines': [ | 264 'defines': [ |
265 # Changes settings for Chromium build. | 265 # Changes settings for Chromium build. |
| 266 # TODO(kjellander): Cleanup unused ones and move defines closer to the |
| 267 # source when webrtc:4256 is completed. |
| 268 'ENABLE_EXTERNAL_AUTH', |
| 269 'EXPAT_RELATIVE_PATH', |
| 270 'FEATURE_ENABLE_SSL', |
| 271 'GTEST_RELATIVE_PATH', |
| 272 'HAVE_OPENSSL_SSL_H', |
| 273 'HAVE_SCTP', |
| 274 'HAVE_SRTP', |
| 275 'HAVE_WEBRTC_VIDEO', |
| 276 'HAVE_WEBRTC_VOICE', |
| 277 'LOGGING_INSIDE_WEBRTC', |
| 278 'NO_MAIN_THREAD_WRAPPING', |
| 279 'NO_SOUND_SYSTEM', |
| 280 'SRTP_RELATIVE_PATH', |
| 281 'SSL_USE_OPENSSL', |
| 282 'USE_WEBRTC_DEV_BRANCH', |
266 'WEBRTC_CHROMIUM_BUILD', | 283 'WEBRTC_CHROMIUM_BUILD', |
267 'LOGGING_INSIDE_WEBRTC', | 284 ], |
| 285 'conditions': [ |
| 286 ['OS=="win" and target_arch=="ia32"', { |
| 287 'defines': [ |
| 288 '_USE_32BIT_TIME_T', |
| 289 ], |
| 290 }], |
268 ], | 291 ], |
269 'include_dirs': [ | 292 'include_dirs': [ |
270 # Include the top-level directory when building in Chrome, so we can | 293 # Include the top-level directory when building in Chrome, so we can |
271 # use full paths (e.g. headers inside testing/ or third_party/). | 294 # use full paths (e.g. headers inside testing/ or third_party/). |
272 '<(DEPTH)', | 295 '<(DEPTH)', |
273 # The overrides must be included before the WebRTC root as that's the | 296 # The overrides must be included before the WebRTC root as that's the |
274 # mechanism for selecting the override headers in Chromium. | 297 # mechanism for selecting the override headers in Chromium. |
275 '../../webrtc_overrides', | 298 '../../webrtc_overrides', |
276 # The WebRTC root is needed to allow includes in the WebRTC code base | 299 # The WebRTC root is needed to allow includes in the WebRTC code base |
277 # to be prefixed with webrtc/. | 300 # to be prefixed with webrtc/. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 # functions. Ensure they are disabled for all compilers. | 455 # functions. Ensure they are disabled for all compilers. |
433 'cflags': [ | 456 'cflags': [ |
434 '-fno-builtin-cos', | 457 '-fno-builtin-cos', |
435 '-fno-builtin-sin', | 458 '-fno-builtin-sin', |
436 '-fno-builtin-cosf', | 459 '-fno-builtin-cosf', |
437 '-fno-builtin-sinf', | 460 '-fno-builtin-sinf', |
438 ], | 461 ], |
439 }], | 462 }], |
440 ], | 463 ], |
441 }], | 464 }], |
| 465 ['chromeos==1', { |
| 466 'defines': [ |
| 467 'CHROMEOS', |
| 468 ], |
| 469 }], |
| 470 ['os_bsd==1', { |
| 471 'defines': [ |
| 472 'BSD', |
| 473 ], |
| 474 }], |
| 475 ['OS=="openbsd"', { |
| 476 'defines': [ |
| 477 'OPENBSD', |
| 478 ], |
| 479 }], |
442 ['include_internal_audio_device==1', { | 480 ['include_internal_audio_device==1', { |
443 'defines': [ | 481 'defines': [ |
444 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', | 482 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', |
445 ], | 483 ], |
446 }], | 484 }], |
447 ], # conditions | 485 ], # conditions |
448 'direct_dependent_settings': { | 486 'direct_dependent_settings': { |
449 'conditions': [ | 487 'conditions': [ |
450 ['build_with_mozilla==1', { | 488 ['build_with_mozilla==1', { |
451 'defines': [ | 489 'defines': [ |
452 # Changes settings for Mozilla build. | 490 # Changes settings for Mozilla build. |
453 'WEBRTC_MOZILLA_BUILD', | 491 'WEBRTC_MOZILLA_BUILD', |
454 ], | 492 ], |
455 }], | 493 }], |
456 ['build_with_chromium==1', { | 494 ['build_with_chromium==1', { |
457 'defines': [ | 495 'defines': [ |
458 # Changes settings for Chromium build. | 496 # Changes settings for Chromium build. |
| 497 # TODO(kjellander): Cleanup unused ones and move defines closer to |
| 498 # the source when webrtc:4256 is completed. |
| 499 'FEATURE_ENABLE_SSL', |
| 500 'FEATURE_ENABLE_VOICEMAIL', |
| 501 'EXPAT_RELATIVE_PATH', |
| 502 'GTEST_RELATIVE_PATH', |
| 503 'NO_MAIN_THREAD_WRAPPING', |
| 504 'NO_SOUND_SYSTEM', |
459 'WEBRTC_CHROMIUM_BUILD', | 505 'WEBRTC_CHROMIUM_BUILD', |
460 ], | 506 ], |
461 'include_dirs': [ | 507 'include_dirs': [ |
462 # The overrides must be included first as that is the mechanism for | 508 # The overrides must be included first as that is the mechanism for |
463 # selecting the override headers in Chromium. | 509 # selecting the override headers in Chromium. |
464 '../../webrtc_overrides', | 510 '../../webrtc_overrides', |
465 '../..', | 511 '../..', |
466 ], | 512 ], |
467 }, { | 513 }, { |
468 'include_dirs': [ | 514 'include_dirs': [ |
469 '../..', | 515 '../..', |
470 ], | 516 ], |
471 }], | 517 }], |
472 ['OS=="mac"', { | 518 ['OS=="mac"', { |
473 'defines': [ | 519 'defines': [ |
474 'WEBRTC_MAC', | 520 'WEBRTC_MAC', |
475 ], | 521 ], |
476 }], | 522 }], |
477 ['OS=="ios"', { | 523 ['OS=="ios"', { |
478 'defines': [ | 524 'defines': [ |
479 'WEBRTC_MAC', | 525 'WEBRTC_MAC', |
480 'WEBRTC_IOS', | 526 'WEBRTC_IOS', |
481 ], | 527 ], |
482 }], | 528 }], |
483 ['OS=="win"', { | 529 ['OS=="win"', { |
484 'defines': [ | 530 'defines': [ |
485 'WEBRTC_WIN', | 531 'WEBRTC_WIN', |
| 532 '_CRT_SECURE_NO_WARNINGS', # Suppres warnings about _vsnprinf |
486 ], | 533 ], |
487 }], | 534 }], |
488 ['OS=="linux"', { | 535 ['OS=="linux"', { |
489 'defines': [ | 536 'defines': [ |
490 'WEBRTC_LINUX', | 537 'WEBRTC_LINUX', |
491 ], | 538 ], |
492 }], | 539 }], |
493 ['OS=="android"', { | 540 ['OS=="android"', { |
494 'defines': [ | 541 'defines': [ |
495 'WEBRTC_LINUX', | 542 'WEBRTC_LINUX', |
496 'WEBRTC_ANDROID', | 543 'WEBRTC_ANDROID', |
497 ], | 544 ], |
498 }], | 545 }], |
499 ['os_posix==1', { | 546 ['os_posix==1', { |
500 # For access to standard POSIXish features, use WEBRTC_POSIX instead | 547 # For access to standard POSIXish features, use WEBRTC_POSIX instead |
501 # of a more specific macro. | 548 # of a more specific macro. |
502 'defines': [ | 549 'defines': [ |
503 'WEBRTC_POSIX', | 550 'WEBRTC_POSIX', |
504 ], | 551 ], |
505 }], | 552 }], |
| 553 ['chromeos==1', { |
| 554 'defines': [ |
| 555 'CHROMEOS', |
| 556 ], |
| 557 }], |
| 558 ['os_bsd==1', { |
| 559 'defines': [ |
| 560 'BSD', |
| 561 ], |
| 562 }], |
| 563 ['OS=="openbsd"', { |
| 564 'defines': [ |
| 565 'OPENBSD', |
| 566 ], |
| 567 }], |
506 ], | 568 ], |
507 }, | 569 }, |
508 }, # target_defaults | 570 }, # target_defaults |
509 } | 571 } |
OLD | NEW |