| 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 |
| 11 { | 11 { |
| 12 # Nesting is required in order to use variables for setting other variables. | 12 # Nesting is required in order to use variables for setting other variables. |
| 13 'variables': { | 13 'variables': { |
| 14 'variables': { | 14 'variables': { |
| 15 'variables': { | 15 'variables': { |
| 16 'variables': { | 16 'variables': { |
| 17 # This will already be set to zero by supplement.gypi | 17 # This will already be set to zero by supplement.gypi |
| 18 'build_with_chromium%': 1, | 18 'build_with_chromium%': 1, |
| 19 | 19 |
| 20 # Enable to use the Mozilla internal settings. | 20 # Enable to use the Mozilla internal settings. |
| 21 'build_with_mozilla%': 0, | 21 'build_with_mozilla%': 0, |
| 22 'build_for%': '', | |
| 23 }, | 22 }, |
| 24 'build_for%': '<(build_for)', | |
| 25 'build_with_chromium%': '<(build_with_chromium)', | 23 'build_with_chromium%': '<(build_with_chromium)', |
| 26 'build_with_mozilla%': '<(build_with_mozilla%)', | 24 'build_with_mozilla%': '<(build_with_mozilla%)', |
| 27 'include_opus%': 1, | 25 'include_opus%': 1, |
| 28 | 26 |
| 29 'conditions': [ | 27 'conditions': [ |
| 30 # Include the iLBC audio codec? | 28 # Include the iLBC audio codec? |
| 31 ['build_with_chromium==1 or build_with_mozilla==1', { | 29 ['build_with_chromium==1 or build_with_mozilla==1', { |
| 32 'include_ilbc%': 0, | 30 'include_ilbc%': 0, |
| 33 }, { | 31 }, { |
| 34 'include_ilbc%': 1, | 32 'include_ilbc%': 1, |
| 35 }], | 33 }], |
| 36 | 34 |
| 37 ['build_with_chromium==1', { | 35 ['build_with_chromium==1', { |
| 38 'webrtc_root%': '<(DEPTH)/third_party/webrtc', | 36 'webrtc_root%': '<(DEPTH)/third_party/webrtc', |
| 39 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', | 37 'apk_tests_path%': '<(DEPTH)/third_party/webrtc/build/apk_tests_noop
.gyp', |
| 40 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', | 38 'modules_java_gyp_path%': '<(DEPTH)/third_party/webrtc/modules/modul
es_java_chromium.gyp', |
| 41 }, { | 39 }, { |
| 42 'webrtc_root%': '<(DEPTH)/webrtc', | 40 'webrtc_root%': '<(DEPTH)/webrtc', |
| 43 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', | 41 'apk_tests_path%': '<(DEPTH)/webrtc/build/apk_tests.gyp', |
| 44 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, | 42 'modules_java_gyp_path%': '<(DEPTH)/webrtc/modules/modules_java.gyp'
, |
| 45 }], | 43 }], |
| 46 | 44 |
| 47 # Controls whether we use libevent on posix platforms. | 45 # Controls whether we use libevent on posix platforms. |
| 48 # TODO(tommi): Remove the 'build_for' condition once libevent is more | 46 # TODO(phoglund): should arguably be controlled by platform #ifdefs |
| 49 # widely available in posix configurations. | 47 # in the code instead. |
| 50 ['OS=="win" or OS=="mac" or OS=="ios" or build_for!=""', { | 48 ['OS=="win" or OS=="mac" or OS=="ios"', { |
| 51 'build_libevent%': 0, | 49 'build_libevent%': 0, |
| 50 'enable_libevent%': 0, |
| 52 }, { | 51 }, { |
| 53 'build_libevent%': 1, | 52 'build_libevent%': 1, |
| 53 'enable_libevent%': 1, |
| 54 }], | 54 }], |
| 55 ], | 55 ], |
| 56 }, | 56 }, |
| 57 'build_with_chromium%': '<(build_with_chromium)', | 57 'build_with_chromium%': '<(build_with_chromium)', |
| 58 'build_with_mozilla%': '<(build_with_mozilla)', | 58 'build_with_mozilla%': '<(build_with_mozilla)', |
| 59 'build_libevent%': '<(build_libevent)', | 59 'build_libevent%': '<(build_libevent)', |
| 60 'enable_libevent%': '<(enable_libevent)', |
| 60 'webrtc_root%': '<(webrtc_root)', | 61 'webrtc_root%': '<(webrtc_root)', |
| 61 'apk_tests_path%': '<(apk_tests_path)', | 62 'apk_tests_path%': '<(apk_tests_path)', |
| 62 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 63 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
| 63 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', | 64 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', |
| 64 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', | 65 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', |
| 65 'include_ilbc%': '<(include_ilbc)', | 66 'include_ilbc%': '<(include_ilbc)', |
| 66 'include_opus%': '<(include_opus)', | 67 'include_opus%': '<(include_opus)', |
| 67 'opus_dir%': '<(DEPTH)/third_party/opus', | 68 'opus_dir%': '<(DEPTH)/third_party/opus', |
| 68 }, | 69 }, |
| 69 'build_with_chromium%': '<(build_with_chromium)', | 70 'build_with_chromium%': '<(build_with_chromium)', |
| 70 'build_with_mozilla%': '<(build_with_mozilla)', | 71 'build_with_mozilla%': '<(build_with_mozilla)', |
| 71 'build_libevent%': '<(build_libevent)', | 72 'build_libevent%': '<(build_libevent)', |
| 73 'enable_libevent%': '<(enable_libevent)', |
| 72 'webrtc_root%': '<(webrtc_root)', | 74 'webrtc_root%': '<(webrtc_root)', |
| 73 'apk_tests_path%': '<(apk_tests_path)', | 75 'apk_tests_path%': '<(apk_tests_path)', |
| 74 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', | 76 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', |
| 75 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 77 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
| 76 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', | 78 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', |
| 77 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', | 79 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', |
| 78 'include_ilbc%': '<(include_ilbc)', | 80 'include_ilbc%': '<(include_ilbc)', |
| 79 'include_opus%': '<(include_opus)', | 81 'include_opus%': '<(include_opus)', |
| 80 'rtc_relative_path%': 1, | 82 'rtc_relative_path%': 1, |
| 81 'external_libraries%': '0', | 83 'external_libraries%': '0', |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 }], | 327 }], |
| 326 ['clang==1', { | 328 ['clang==1', { |
| 327 'cflags': [ | 329 'cflags': [ |
| 328 '-Wimplicit-fallthrough', | 330 '-Wimplicit-fallthrough', |
| 329 '-Wthread-safety', | 331 '-Wthread-safety', |
| 330 '-Winconsistent-missing-override', | 332 '-Winconsistent-missing-override', |
| 331 ], | 333 ], |
| 332 }], | 334 }], |
| 333 ], | 335 ], |
| 334 }], | 336 }], |
| 335 ['build_libevent==1', { | 337 ['enable_libevent==1', { |
| 336 'defines': [ | 338 'defines': [ |
| 337 'WEBRTC_BUILD_LIBEVENT', | 339 'WEBRTC_BUILD_LIBEVENT', |
| 338 ], | 340 ], |
| 339 }], | 341 }], |
| 340 ['target_arch=="arm64"', { | 342 ['target_arch=="arm64"', { |
| 341 'defines': [ | 343 'defines': [ |
| 342 'WEBRTC_ARCH_ARM64', | 344 'WEBRTC_ARCH_ARM64', |
| 343 'WEBRTC_HAS_NEON', | 345 'WEBRTC_HAS_NEON', |
| 344 ], | 346 ], |
| 345 }], | 347 }], |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 # For access to standard POSIXish features, use WEBRTC_POSIX instead | 529 # For access to standard POSIXish features, use WEBRTC_POSIX instead |
| 528 # of a more specific macro. | 530 # of a more specific macro. |
| 529 'defines': [ | 531 'defines': [ |
| 530 'WEBRTC_POSIX', | 532 'WEBRTC_POSIX', |
| 531 ], | 533 ], |
| 532 }], | 534 }], |
| 533 ], | 535 ], |
| 534 }, | 536 }, |
| 535 }, # target_defaults | 537 }, # target_defaults |
| 536 } | 538 } |
| OLD | NEW |