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

Side by Side Diff: base/BUILD.gn

Issue 1324623005: Move sanitizer and symbol flags out of BUILDCONFIG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | base/allocator/BUILD.gn » ('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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/compiler/compiler.gni")
5 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 if (is_android) { 9 if (is_android) {
9 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
10 } 11 }
11 12
12 config("base_implementation") { 13 config("base_implementation") {
13 defines = [ "BASE_IMPLEMENTATION" ] 14 defines = [ "BASE_IMPLEMENTATION" ]
14 } 15 }
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 if (is_win) { 935 if (is_win) {
935 data += 936 data +=
936 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ] 937 [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer.exe" ]
937 } else { 938 } else {
938 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ] 939 data += [ "//third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" ]
939 } 940 }
940 } 941 }
941 942
942 configs += [ "//build/config/compiler:wexit_time_destructors" ] 943 configs += [ "//build/config/compiler:wexit_time_destructors" ]
943 if (!is_debug) { 944 if (!is_debug) {
944 configs -= [ "//build/config/compiler:optimize" ] 945 configs -= [ "//build/config/compiler:default_optimization" ]
945 configs += [ "//build/config/compiler:optimize_max" ] 946 configs += [ "//build/config/compiler:optimize_max" ]
946 } 947 }
947 948
948 allow_circular_includes_from = public_deps 949 allow_circular_includes_from = public_deps
949 } 950 }
950 951
951 # This is the subset of files from base that should not be used with a dynamic 952 # This is the subset of files from base that should not be used with a dynamic
952 # library. Note that this library cannot depend on base because base depends on 953 # library. Note that this library cannot depend on base because base depends on
953 # base_static. 954 # base_static.
954 source_set("base_static") { 955 source_set("base_static") {
955 sources = [ 956 sources = [
956 "base_switches.cc", 957 "base_switches.cc",
957 "base_switches.h", 958 "base_switches.h",
958 "win/pe_image.cc", 959 "win/pe_image.cc",
959 "win/pe_image.h", 960 "win/pe_image.h",
960 ] 961 ]
961 962
962 if (!is_debug) { 963 if (!is_debug) {
963 configs -= [ "//build/config/compiler:optimize" ] 964 configs -= [ "//build/config/compiler:default_optimization" ]
964 configs += [ "//build/config/compiler:optimize_max" ] 965 configs += [ "//build/config/compiler:optimize_max" ]
965 } 966 }
966 } 967 }
967 968
968 component("i18n") { 969 component("i18n") {
969 output_name = "base_i18n" 970 output_name = "base_i18n"
970 sources = [ 971 sources = [
971 "i18n/base_i18n_export.h", 972 "i18n/base_i18n_export.h",
972 "i18n/bidi_line_iterator.cc", 973 "i18n/bidi_line_iterator.cc",
973 "i18n/bidi_line_iterator.h", 974 "i18n/bidi_line_iterator.h",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 configs += [ "//build/config/compiler:wexit_time_destructors" ] 1011 configs += [ "//build/config/compiler:wexit_time_destructors" ]
1011 public_deps = [ 1012 public_deps = [
1012 "//third_party/icu", 1013 "//third_party/icu",
1013 ] 1014 ]
1014 deps = [ 1015 deps = [
1015 ":base", 1016 ":base",
1016 "//base/third_party/dynamic_annotations", 1017 "//base/third_party/dynamic_annotations",
1017 ] 1018 ]
1018 1019
1019 if (!is_debug) { 1020 if (!is_debug) {
1020 configs -= [ "//build/config/compiler:optimize" ] 1021 configs -= [ "//build/config/compiler:default_optimization" ]
1021 configs += [ "//build/config/compiler:optimize_max" ] 1022 configs += [ "//build/config/compiler:optimize_max" ]
1022 } 1023 }
1023 1024
1024 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1025 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1025 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1026 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1026 } 1027 }
1027 1028
1028 if (is_ios || is_win || (is_linux && !is_chromeos)) { 1029 if (is_ios || is_win || (is_linux && !is_chromeos)) {
1029 # TODO(GYP): Figure out which of these work and are needed on other platforms. 1030 # TODO(GYP): Figure out which of these work and are needed on other platforms.
1030 test("base_perftests") { 1031 test("base_perftests") {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 ] 1129 ]
1129 } 1130 }
1130 1131
1131 defines = [ "BASE_PREFS_IMPLEMENTATION" ] 1132 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1132 1133
1133 deps = [ 1134 deps = [
1134 ":base", 1135 ":base",
1135 ] 1136 ]
1136 1137
1137 if (!is_debug) { 1138 if (!is_debug) {
1138 configs -= [ "//build/config/compiler:optimize" ] 1139 configs -= [ "//build/config/compiler:default_optimization" ]
1139 configs += [ "//build/config/compiler:optimize_max" ] 1140 configs += [ "//build/config/compiler:optimize_max" ]
1140 } 1141 }
1141 } 1142 }
1142 1143
1143 source_set("prefs_test_support") { 1144 source_set("prefs_test_support") {
1144 testonly = true 1145 testonly = true
1145 sources = [ 1146 sources = [
1146 "prefs/mock_pref_change_callback.cc", 1147 "prefs/mock_pref_change_callback.cc",
1147 "prefs/mock_pref_change_callback.h", 1148 "prefs/mock_pref_change_callback.h",
1148 "prefs/pref_store_observer_mock.cc", 1149 "prefs/pref_store_observer_mock.cc",
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 1694
1694 # GYP: //base.gyp:base_java_unittest_support 1695 # GYP: //base.gyp:base_java_unittest_support
1695 android_library("base_java_unittest_support") { 1696 android_library("base_java_unittest_support") {
1696 deps = [ 1697 deps = [
1697 ":base_java", 1698 ":base_java",
1698 ] 1699 ]
1699 java_files = 1700 java_files =
1700 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 1701 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
1701 } 1702 }
1702 } 1703 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698