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

Side by Side Diff: webrtc/BUILD.gn

Issue 2144273002: Add minimal LLVM sanity coverage (sancov) reporting for unittests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add minimal LLVM sanity coverage (sancov) reporting for unittests. Created 4 years, 5 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 | « tools/sancov/blacklist.txt ('k') | webrtc/build/common.gypi » ('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("build/webrtc.gni") 13 import("build/webrtc.gni")
14 import("//testing/test.gni") 14 import("//testing/test.gni")
15 import("//third_party/protobuf/proto_library.gni") 15 import("//third_party/protobuf/proto_library.gni")
16 16
17 # Contains the defines and includes in common.gypi that are duplicated both as 17 # Contains the defines and includes in common.gypi that are duplicated both as
18 # target_defaults and direct_dependent_settings. 18 # target_defaults and direct_dependent_settings.
19 config("common_inherited_config") { 19 config("common_inherited_config") {
20 defines = [] 20 defines = []
21 cflags = []
22 ldflags = []
21 if (build_with_mozilla) { 23 if (build_with_mozilla) {
22 defines += [ "WEBRTC_MOZILLA_BUILD" ] 24 defines += [ "WEBRTC_MOZILLA_BUILD" ]
23 } 25 }
24 if (build_with_chromium) { 26 if (build_with_chromium) {
25 defines = [ 27 defines = [
26 # TODO(kjellander): Cleanup unused ones and move defines closer to 28 # TODO(kjellander): Cleanup unused ones and move defines closer to
27 # the source when webrtc:4256 is completed. 29 # the source when webrtc:4256 is completed.
28 "FEATURE_ENABLE_SSL", 30 "FEATURE_ENABLE_SSL",
29 "FEATURE_ENABLE_VOICEMAIL", 31 "FEATURE_ENABLE_VOICEMAIL",
30 "EXPAT_RELATIVE_PATH", 32 "EXPAT_RELATIVE_PATH",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (is_android) { 72 if (is_android) {
71 defines += [ 73 defines += [
72 "WEBRTC_LINUX", 74 "WEBRTC_LINUX",
73 "WEBRTC_ANDROID", 75 "WEBRTC_ANDROID",
74 ] 76 ]
75 } 77 }
76 if (is_chromeos) { 78 if (is_chromeos) {
77 defines += [ "CHROMEOS" ] 79 defines += [ "CHROMEOS" ]
78 } 80 }
79 81
82 if (rtc_sanitize_coverage != "") {
83 assert(is_clang, "sanitizer coverage requires clang")
84 cflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
85 ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ]
86 }
87
80 # TODO(GYP): Support these in GN. 88 # TODO(GYP): Support these in GN.
81 # if (is_bsd) { 89 # if (is_bsd) {
82 # defines += [ "BSD" ] 90 # defines += [ "BSD" ]
83 # } 91 # }
84 # if (is_openbsd) { 92 # if (is_openbsd) {
85 # defines += [ "OPENBSD" ] 93 # defines += [ "OPENBSD" ]
86 # } 94 # }
87 # if (is_freebsd) { 95 # if (is_freebsd) {
88 # defines += [ "FREEBSD" ] 96 # defines += [ "FREEBSD" ]
89 # } 97 # }
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 if (is_ios || (is_mac && target_cpu != "x86")) { 662 if (is_ios || (is_mac && target_cpu != "x86")) {
655 defines = [ "CARBON_DEPRECATED=YES" ] 663 defines = [ "CARBON_DEPRECATED=YES" ]
656 } 664 }
657 if (is_clang) { 665 if (is_clang) {
658 # Suppress warnings from the Chromium Clang plugin. 666 # Suppress warnings from the Chromium Clang plugin.
659 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 667 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
660 configs -= [ "//build/config/clang:find_bad_constructs" ] 668 configs -= [ "//build/config/clang:find_bad_constructs" ]
661 } 669 }
662 } 670 }
663 } 671 }
OLDNEW
« no previous file with comments | « tools/sancov/blacklist.txt ('k') | webrtc/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698