Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: webrtc/BUILD.gn

Issue 3002663002: Make it possible for tests to set up trace event handlers. (Closed)
Patch Set: Nit. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/rtc_base/trace_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/rtc_base/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698