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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 # For WebRTC, we want it there as well, because ASSERT and | 273 # For WebRTC, we want it there as well, because ASSERT and |
274 # friends trigger off of it. | 274 # friends trigger off of it. |
275 '_DEBUG', | 275 '_DEBUG', |
276 ], | 276 ], |
277 }, | 277 }, |
278 }, | 278 }, |
279 }], | 279 }], |
280 ['build_with_chromium==1', { | 280 ['build_with_chromium==1', { |
281 'defines': [ | 281 'defines': [ |
282 # Changes settings for Chromium build. | 282 # Changes settings for Chromium build. |
| 283 # TODO(kjellander): Cleanup unused ones and move defines closer to the |
| 284 # source when webrtc:4256 is completed. |
| 285 'ENABLE_EXTERNAL_AUTH', |
| 286 'FEATURE_ENABLE_SSL', |
| 287 'HAVE_OPENSSL_SSL_H', |
| 288 'HAVE_SCTP', |
| 289 'HAVE_SRTP', |
| 290 'HAVE_WEBRTC_VIDEO', |
| 291 'HAVE_WEBRTC_VOICE', |
| 292 'LOGGING_INSIDE_WEBRTC', |
| 293 'NO_MAIN_THREAD_WRAPPING', |
| 294 'NO_SOUND_SYSTEM', |
| 295 'SRTP_RELATIVE_PATH', |
| 296 'SSL_USE_OPENSSL', |
| 297 'USE_WEBRTC_DEV_BRANCH', |
283 'WEBRTC_CHROMIUM_BUILD', | 298 'WEBRTC_CHROMIUM_BUILD', |
284 'LOGGING_INSIDE_WEBRTC', | |
285 ], | 299 ], |
286 'include_dirs': [ | 300 'include_dirs': [ |
287 # Include the top-level directory when building in Chrome, so we can | 301 # Include the top-level directory when building in Chrome, so we can |
288 # use full paths (e.g. headers inside testing/ or third_party/). | 302 # use full paths (e.g. headers inside testing/ or third_party/). |
289 '<(DEPTH)', | 303 '<(DEPTH)', |
290 # The overrides must be included before the WebRTC root as that's the | 304 # The overrides must be included before the WebRTC root as that's the |
291 # mechanism for selecting the override headers in Chromium. | 305 # mechanism for selecting the override headers in Chromium. |
292 '../../webrtc_overrides', | 306 '../../webrtc_overrides', |
293 # The WebRTC root is needed to allow includes in the WebRTC code base | 307 # The WebRTC root is needed to allow includes in the WebRTC code base |
294 # to be prefixed with webrtc/. | 308 # to be prefixed with webrtc/. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 # functions. Ensure they are disabled for all compilers. | 467 # functions. Ensure they are disabled for all compilers. |
454 'cflags': [ | 468 'cflags': [ |
455 '-fno-builtin-cos', | 469 '-fno-builtin-cos', |
456 '-fno-builtin-sin', | 470 '-fno-builtin-sin', |
457 '-fno-builtin-cosf', | 471 '-fno-builtin-cosf', |
458 '-fno-builtin-sinf', | 472 '-fno-builtin-sinf', |
459 ], | 473 ], |
460 }], | 474 }], |
461 ], | 475 ], |
462 }], | 476 }], |
| 477 ['chromeos==1', { |
| 478 'defines': [ |
| 479 'CHROMEOS', |
| 480 ], |
| 481 }], |
| 482 ['os_bsd==1', { |
| 483 'defines': [ |
| 484 'BSD', |
| 485 ], |
| 486 }], |
| 487 ['OS=="openbsd"', { |
| 488 'defines': [ |
| 489 'OPENBSD', |
| 490 ], |
| 491 }], |
| 492 ['OS=="freebsd"', { |
| 493 'defines': [ |
| 494 'FREEBSD', |
| 495 ], |
| 496 }], |
463 ['include_internal_audio_device==1', { | 497 ['include_internal_audio_device==1', { |
464 'defines': [ | 498 'defines': [ |
465 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', | 499 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', |
466 ], | 500 ], |
467 }], | 501 }], |
468 ['libvpx_build_vp9==0', { | 502 ['libvpx_build_vp9==0', { |
469 'defines': [ | 503 'defines': [ |
470 'RTC_DISABLE_VP9', | 504 'RTC_DISABLE_VP9', |
471 ], | 505 ], |
472 }], | 506 }], |
473 ], # conditions | 507 ], # conditions |
474 'direct_dependent_settings': { | 508 'direct_dependent_settings': { |
475 'conditions': [ | 509 'conditions': [ |
476 ['build_with_mozilla==1', { | 510 ['build_with_mozilla==1', { |
477 'defines': [ | 511 'defines': [ |
478 # Changes settings for Mozilla build. | 512 # Changes settings for Mozilla build. |
479 'WEBRTC_MOZILLA_BUILD', | 513 'WEBRTC_MOZILLA_BUILD', |
480 ], | 514 ], |
481 }], | 515 }], |
482 ['build_with_chromium==1', { | 516 ['build_with_chromium==1', { |
483 'defines': [ | 517 'defines': [ |
484 # Changes settings for Chromium build. | 518 # Changes settings for Chromium build. |
| 519 # TODO(kjellander): Cleanup unused ones and move defines closer to |
| 520 # the source when webrtc:4256 is completed. |
| 521 'FEATURE_ENABLE_SSL', |
| 522 'FEATURE_ENABLE_VOICEMAIL', |
| 523 'EXPAT_RELATIVE_PATH', |
| 524 'GTEST_RELATIVE_PATH', |
| 525 'NO_MAIN_THREAD_WRAPPING', |
| 526 'NO_SOUND_SYSTEM', |
485 'WEBRTC_CHROMIUM_BUILD', | 527 'WEBRTC_CHROMIUM_BUILD', |
486 ], | 528 ], |
487 'include_dirs': [ | 529 'include_dirs': [ |
488 # The overrides must be included first as that is the mechanism for | 530 # The overrides must be included first as that is the mechanism for |
489 # selecting the override headers in Chromium. | 531 # selecting the override headers in Chromium. |
490 '../../webrtc_overrides', | 532 '../../webrtc_overrides', |
491 '../..', | 533 '../..', |
492 ], | 534 ], |
493 }, { | 535 }, { |
494 'include_dirs': [ | 536 'include_dirs': [ |
495 '../..', | 537 '../..', |
496 ], | 538 ], |
497 }], | 539 }], |
498 ['OS=="mac"', { | 540 ['OS=="mac"', { |
499 'defines': [ | 541 'defines': [ |
500 'WEBRTC_MAC', | 542 'WEBRTC_MAC', |
501 ], | 543 ], |
502 }], | 544 }], |
503 ['OS=="ios"', { | 545 ['OS=="ios"', { |
504 'defines': [ | 546 'defines': [ |
505 'WEBRTC_MAC', | 547 'WEBRTC_MAC', |
506 'WEBRTC_IOS', | 548 'WEBRTC_IOS', |
507 ], | 549 ], |
508 }], | 550 }], |
509 ['OS=="win"', { | 551 ['OS=="win"', { |
510 'defines': [ | 552 'defines': [ |
511 'WEBRTC_WIN', | 553 'WEBRTC_WIN', |
| 554 '_CRT_SECURE_NO_WARNINGS', # Suppress warnings about _vsnprinf |
512 ], | 555 ], |
513 }], | 556 }], |
514 ['OS=="linux"', { | 557 ['OS=="linux"', { |
515 'defines': [ | 558 'defines': [ |
516 'WEBRTC_LINUX', | 559 'WEBRTC_LINUX', |
517 ], | 560 ], |
518 }], | 561 }], |
519 ['OS=="android"', { | 562 ['OS=="android"', { |
520 'defines': [ | 563 'defines': [ |
521 'WEBRTC_LINUX', | 564 'WEBRTC_LINUX', |
522 'WEBRTC_ANDROID', | 565 'WEBRTC_ANDROID', |
523 ], | 566 ], |
524 }], | 567 }], |
525 ['os_posix==1', { | 568 ['os_posix==1', { |
526 # For access to standard POSIXish features, use WEBRTC_POSIX instead | 569 # For access to standard POSIXish features, use WEBRTC_POSIX instead |
527 # of a more specific macro. | 570 # of a more specific macro. |
528 'defines': [ | 571 'defines': [ |
529 'WEBRTC_POSIX', | 572 'WEBRTC_POSIX', |
530 ], | 573 ], |
531 }], | 574 }], |
| 575 ['chromeos==1', { |
| 576 'defines': [ |
| 577 'CHROMEOS', |
| 578 ], |
| 579 }], |
| 580 ['os_bsd==1', { |
| 581 'defines': [ |
| 582 'BSD', |
| 583 ], |
| 584 }], |
| 585 ['OS=="openbsd"', { |
| 586 'defines': [ |
| 587 'OPENBSD', |
| 588 ], |
| 589 }], |
| 590 ['OS=="freebsd"', { |
| 591 'defines': [ |
| 592 'FREEBSD', |
| 593 ], |
| 594 }], |
532 ], | 595 ], |
533 }, | 596 }, |
534 }, # target_defaults | 597 }, # target_defaults |
535 } | 598 } |
OLD | NEW |