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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 # This needs to be a static library rather than a sources set because small | 7 # This needs to be a static library rather than a sources set because small |
8 # portions of this are used in some contexts (like chrome_elf), and it | 8 # portions of this are used in some contexts (like chrome_elf), and it |
9 # doesnn't seem to dead-code strip very well. This saves 12K on chrome_elf.dll, | 9 # doesnn't seem to dead-code strip very well. This saves 12K on chrome_elf.dll, |
10 # over a source set, for example. | 10 # over a source set, for example. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 159 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
160 configs += | 160 configs += |
161 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] | 161 [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] |
162 | 162 |
163 configs += [ "//build/config:precompiled_headers" ] | 163 configs += [ "//build/config:precompiled_headers" ] |
164 | 164 |
165 deps = [ | 165 deps = [ |
166 "//base", | 166 "//base", |
167 "//base:base_static", | 167 "//base:base_static", |
168 ] | 168 ] |
169 if (current_cpu == "x86") { | |
170 deps += [ ":copy_wow_helper" ] | |
171 } | |
172 } | |
173 | |
174 if (current_cpu == "x86") { | |
175 # Make a target that copies the wow_helper files to the out dir. | |
176 # | |
177 # TODO(brettw) we can probably just build this now that we have proper | |
178 # toolchain support. | |
179 copy("copy_wow_helper") { | |
180 sources = [ | |
181 "wow_helper/wow_helper.exe", | |
182 "wow_helper/wow_helper.pdb", | |
183 ] | |
184 outputs = [ | |
185 "$root_out_dir/{{source_file_part}}", | |
186 ] | |
187 } | |
188 } | 169 } |
189 | 170 |
190 test("sbox_integration_tests") { | 171 test("sbox_integration_tests") { |
191 sources = [ | 172 sources = [ |
192 "src/address_sanitizer_test.cc", | 173 "src/address_sanitizer_test.cc", |
193 "src/app_container_test.cc", | 174 "src/app_container_test.cc", |
194 "src/file_policy_test.cc", | 175 "src/file_policy_test.cc", |
195 "src/handle_closer_test.cc", | 176 "src/handle_closer_test.cc", |
196 "src/handle_inheritance_test.cc", | 177 "src/handle_inheritance_test.cc", |
197 "src/integrity_level_test.cc", | 178 "src/integrity_level_test.cc", |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 "sandbox_poc/pocdll/spyware.cc", | 304 "sandbox_poc/pocdll/spyware.cc", |
324 "sandbox_poc/pocdll/utils.h", | 305 "sandbox_poc/pocdll/utils.h", |
325 ] | 306 ] |
326 | 307 |
327 defines = [ "POCDLL_EXPORTS" ] | 308 defines = [ "POCDLL_EXPORTS" ] |
328 | 309 |
329 deps = [ | 310 deps = [ |
330 "//build/config/sanitizers:deps", | 311 "//build/config/sanitizers:deps", |
331 ] | 312 ] |
332 } | 313 } |
OLD | NEW |