OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build_overrides/build.gni") | 7 import("//build_overrides/build.gni") |
8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
9 import("BUILD.generated.gni") | 9 import("BUILD.generated.gni") |
10 import("BUILD.generated_tests.gni") | 10 import("BUILD.generated_tests.gni") |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 configs += [ ":internal_config" ] | 118 configs += [ ":internal_config" ] |
119 | 119 |
120 configs -= [ "//build/config/compiler:chromium_code" ] | 120 configs -= [ "//build/config/compiler:chromium_code" ] |
121 configs += [ "//build/config/compiler:no_chromium_code" ] | 121 configs += [ "//build/config/compiler:no_chromium_code" ] |
122 | 122 |
123 if (is_nacl) { | 123 if (is_nacl) { |
124 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 124 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 create_tests("boringssl_tests") { | 128 if (build_with_chromium) { |
129 configs = [ ":internal_config" ] | 129 create_tests("boringssl_tests") { |
davidben
2016/04/27 17:16:16
I think the root problem here is I forget the anno
kjellander_chromium
2016/04/27 20:07:21
I prefer you do that in a separate CL. My main obj
davidben
2016/04/27 22:52:31
Sounds good. I'll deal with that separately then.
| |
130 deps = [ | 130 configs = [ ":internal_config" ] |
131 ":boringssl", | 131 deps = [ |
132 ] | 132 ":boringssl", |
133 } | 133 ] |
134 } | |
134 | 135 |
135 if (build_with_chromium) { | |
136 test("boringssl_unittests") { | 136 test("boringssl_unittests") { |
137 deps = [ | 137 deps = [ |
138 ":boringssl_tests", | 138 ":boringssl_tests", |
139 "//base", | 139 "//base", |
140 "//base/test:run_all_unittests", | 140 "//base/test:run_all_unittests", |
141 "//base/test:test_support", | 141 "//base/test:test_support", |
142 "//testing/gtest", | 142 "//testing/gtest", |
143 ] | 143 ] |
144 sources = [ | 144 sources = [ |
145 "boringssl_unittest.cc", | 145 "boringssl_unittest.cc", |
(...skipping 28 matching lines...) Expand all Loading... | |
174 sources = [ | 174 sources = [ |
175 "src/fuzz/${fuzzer}.cc", | 175 "src/fuzz/${fuzzer}.cc", |
176 ] | 176 ] |
177 deps = [ | 177 deps = [ |
178 ":boringssl_fuzzer", | 178 ":boringssl_fuzzer", |
179 ] | 179 ] |
180 seed_corpus = "src/fuzz/${fuzzer}_corpus" | 180 seed_corpus = "src/fuzz/${fuzzer}_corpus" |
181 } | 181 } |
182 } | 182 } |
183 } | 183 } |
OLD | NEW |