| 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. | 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. |
| 10 | 10 |
| 11 import("//build/config/linux/pkg_config.gni") | 11 import("//build/config/linux/pkg_config.gni") |
| 12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
| 13 import("webrtc.gni") | 13 import("webrtc.gni") |
| 14 import("//third_party/protobuf/proto_library.gni") | 14 import("//third_party/protobuf/proto_library.gni") |
| 15 if (is_android) { | 15 if (is_android) { |
| 16 import("//build/config/android/config.gni") | 16 import("//build/config/android/config.gni") |
| 17 import("//build/config/android/rules.gni") | 17 import("//build/config/android/rules.gni") |
| 18 } | 18 } |
| 19 | 19 |
| 20 # Contains the defines and includes in common.gypi that are duplicated both as | 20 # Contains the defines and includes in common.gypi that are duplicated both as |
| 21 # target_defaults and direct_dependent_settings. | 21 # target_defaults and direct_dependent_settings. |
| 22 config("common_inherited_config") { | 22 config("common_inherited_config") { |
| 23 defines = [] | 23 defines = [] |
| 24 cflags = [] | 24 cflags = [] |
| 25 ldflags = [] | 25 ldflags = [] |
| 26 if (build_with_mozilla) { | 26 if (build_with_mozilla) { |
| 27 defines += [ "WEBRTC_MOZILLA_BUILD" ] | 27 defines += [ "WEBRTC_MOZILLA_BUILD" ] |
| 28 } | 28 } |
| 29 # Some tests need to declare their own trace event handlers. If this define is |
| 30 # not set, the first time TRACE_EVENT_* is called it will store the return |
| 31 # value for the current handler in an static variable, so that subsequent |
| 32 # changes to the handler for that TRACE_EVENT_* will be ignored. |
| 33 # So when tests are included, we set this define, making it possible to use |
| 34 # different event handlers in different tests. |
| 35 if (rtc_include_tests) { |
| 36 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1" ] |
| 37 } else { |
| 38 defines += [ "WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0" ] |
| 39 } |
| 29 if (build_with_chromium) { | 40 if (build_with_chromium) { |
| 30 defines = [ | 41 defines = [ |
| 31 # TODO(kjellander): Cleanup unused ones and move defines closer to | 42 # TODO(kjellander): Cleanup unused ones and move defines closer to |
| 32 # the source when webrtc:4256 is completed. | 43 # the source when webrtc:4256 is completed. |
| 33 "FEATURE_ENABLE_VOICEMAIL", | 44 "FEATURE_ENABLE_VOICEMAIL", |
| 34 "EXPAT_RELATIVE_PATH", | 45 "EXPAT_RELATIVE_PATH", |
| 35 "GTEST_RELATIVE_PATH", | 46 "GTEST_RELATIVE_PATH", |
| 36 "WEBRTC_CHROMIUM_BUILD", | 47 "WEBRTC_CHROMIUM_BUILD", |
| 37 ] | 48 ] |
| 38 include_dirs = [ | 49 include_dirs = [ |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 ] | 546 ] |
| 536 | 547 |
| 537 deps = [ | 548 deps = [ |
| 538 "examples:AppRTCMobile_javalib", | 549 "examples:AppRTCMobile_javalib", |
| 539 "sdk/android:libjingle_peerconnection_java", | 550 "sdk/android:libjingle_peerconnection_java", |
| 540 "//base:base_java_test_support", | 551 "//base:base_java_test_support", |
| 541 ] | 552 ] |
| 542 } | 553 } |
| 543 } | 554 } |
| 544 } | 555 } |
| OLD | NEW |