| 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 'enable_libevent%': 0, |
| 52 }, { | 50 }, { |
| 53 'build_libevent%': 1, | 51 'enable_libevent%': 1, |
| 54 }], | 52 }], |
| 55 ], | 53 ], |
| 56 }, | 54 }, |
| 57 'build_with_chromium%': '<(build_with_chromium)', | 55 'build_with_chromium%': '<(build_with_chromium)', |
| 58 'build_with_mozilla%': '<(build_with_mozilla)', | 56 'build_with_mozilla%': '<(build_with_mozilla)', |
| 59 'build_libevent%': '<(build_libevent)', | 57 'enable_libevent%': '<(enable_libevent)', |
| 60 'webrtc_root%': '<(webrtc_root)', | 58 'webrtc_root%': '<(webrtc_root)', |
| 61 'apk_tests_path%': '<(apk_tests_path)', | 59 'apk_tests_path%': '<(apk_tests_path)', |
| 62 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 60 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
| 63 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', | 61 'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8', |
| 64 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', | 62 'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9', |
| 65 'include_ilbc%': '<(include_ilbc)', | 63 'include_ilbc%': '<(include_ilbc)', |
| 66 'include_opus%': '<(include_opus)', | 64 'include_opus%': '<(include_opus)', |
| 67 'opus_dir%': '<(DEPTH)/third_party/opus', | 65 'opus_dir%': '<(DEPTH)/third_party/opus', |
| 68 }, | 66 }, |
| 69 'build_with_chromium%': '<(build_with_chromium)', | 67 'build_with_chromium%': '<(build_with_chromium)', |
| 70 'build_with_mozilla%': '<(build_with_mozilla)', | 68 'build_with_mozilla%': '<(build_with_mozilla)', |
| 71 'build_libevent%': '<(build_libevent)', | 69 'enable_libevent%': '<(enable_libevent)', |
| 72 'webrtc_root%': '<(webrtc_root)', | 70 'webrtc_root%': '<(webrtc_root)', |
| 73 'apk_tests_path%': '<(apk_tests_path)', | 71 'apk_tests_path%': '<(apk_tests_path)', |
| 74 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', | 72 'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py', |
| 75 'modules_java_gyp_path%': '<(modules_java_gyp_path)', | 73 'modules_java_gyp_path%': '<(modules_java_gyp_path)', |
| 76 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', | 74 'webrtc_vp8_dir%': '<(webrtc_vp8_dir)', |
| 77 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', | 75 'webrtc_vp9_dir%': '<(webrtc_vp9_dir)', |
| 78 'include_ilbc%': '<(include_ilbc)', | 76 'include_ilbc%': '<(include_ilbc)', |
| 79 'include_opus%': '<(include_opus)', | 77 'include_opus%': '<(include_opus)', |
| 80 'rtc_relative_path%': 1, | 78 'rtc_relative_path%': 1, |
| 81 'external_libraries%': '0', | 79 'external_libraries%': '0', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 104 | 102 |
| 105 # Enable data logging. Produces text files with data logged within engines | 103 # Enable data logging. Produces text files with data logged within engines |
| 106 # which can be easily parsed for offline processing. | 104 # which can be easily parsed for offline processing. |
| 107 'enable_data_logging%': 0, | 105 'enable_data_logging%': 0, |
| 108 | 106 |
| 109 # Enables the use of protocol buffers for debug recordings. | 107 # Enables the use of protocol buffers for debug recordings. |
| 110 'enable_protobuf%': 1, | 108 'enable_protobuf%': 1, |
| 111 | 109 |
| 112 # Disable these to not build components which can be externally provided. | 110 # Disable these to not build components which can be externally provided. |
| 113 'build_expat%': 1, | 111 'build_expat%': 1, |
| 112 'build_libevent%': 1, |
| 114 'build_json%': 1, | 113 'build_json%': 1, |
| 115 'build_libjpeg%': 1, | 114 'build_libjpeg%': 1, |
| 116 'build_libsrtp%': 1, | 115 'build_libsrtp%': 1, |
| 117 'build_libvpx%': 1, | 116 'build_libvpx%': 1, |
| 118 'libvpx_build_vp9%': 1, | 117 'libvpx_build_vp9%': 1, |
| 119 'build_libyuv%': 1, | 118 'build_libyuv%': 1, |
| 120 'build_openmax_dl%': 1, | 119 'build_openmax_dl%': 1, |
| 121 'build_opus%': 1, | 120 'build_opus%': 1, |
| 122 'build_protobuf%': 1, | 121 'build_protobuf%': 1, |
| 123 'build_ssl%': 1, | 122 'build_ssl%': 1, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 }], | 324 }], |
| 326 ['clang==1', { | 325 ['clang==1', { |
| 327 'cflags': [ | 326 'cflags': [ |
| 328 '-Wimplicit-fallthrough', | 327 '-Wimplicit-fallthrough', |
| 329 '-Wthread-safety', | 328 '-Wthread-safety', |
| 330 '-Winconsistent-missing-override', | 329 '-Winconsistent-missing-override', |
| 331 ], | 330 ], |
| 332 }], | 331 }], |
| 333 ], | 332 ], |
| 334 }], | 333 }], |
| 335 ['build_libevent==1', { | 334 ['enable_libevent==1', { |
| 336 'defines': [ | 335 'defines': [ |
| 337 'WEBRTC_BUILD_LIBEVENT', | 336 'WEBRTC_BUILD_LIBEVENT', |
| 338 ], | 337 ], |
| 339 }], | 338 }], |
| 340 ['target_arch=="arm64"', { | 339 ['target_arch=="arm64"', { |
| 341 'defines': [ | 340 'defines': [ |
| 342 'WEBRTC_ARCH_ARM64', | 341 'WEBRTC_ARCH_ARM64', |
| 343 'WEBRTC_HAS_NEON', | 342 'WEBRTC_HAS_NEON', |
| 344 ], | 343 ], |
| 345 }], | 344 }], |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 # For access to standard POSIXish features, use WEBRTC_POSIX instead | 526 # For access to standard POSIXish features, use WEBRTC_POSIX instead |
| 528 # of a more specific macro. | 527 # of a more specific macro. |
| 529 'defines': [ | 528 'defines': [ |
| 530 'WEBRTC_POSIX', | 529 'WEBRTC_POSIX', |
| 531 ], | 530 ], |
| 532 }], | 531 }], |
| 533 ], | 532 ], |
| 534 }, | 533 }, |
| 535 }, # target_defaults | 534 }, # target_defaults |
| 536 } | 535 } |
| OLD | NEW |