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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 compile_suid_client = is_linux | 9 compile_suid_client = is_linux |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 ":sandbox_linux_unittests_sources", | 191 ":sandbox_linux_unittests_sources", |
192 ] | 192 ] |
193 } | 193 } |
194 | 194 |
195 # This target is the shared library used by Android APK (i.e. | 195 # This target is the shared library used by Android APK (i.e. |
196 # JNI-friendly) tests. | 196 # JNI-friendly) tests. |
197 shared_library("sandbox_linux_jni_unittests") { | 197 shared_library("sandbox_linux_jni_unittests") { |
198 testonly = true | 198 testonly = true |
199 deps = [ | 199 deps = [ |
200 ":sandbox_linux_unittests_sources", | 200 ":sandbox_linux_unittests_sources", |
| 201 "//build/config/sanitizers:deps", |
201 ] | 202 ] |
202 if (is_android) { | 203 if (is_android) { |
203 deps += [ "//testing/android/native_test:native_test_native_code" ] | 204 deps += [ "//testing/android/native_test:native_test_native_code" ] |
204 } | 205 } |
205 } | 206 } |
206 | 207 |
207 component("seccomp_bpf") { | 208 component("seccomp_bpf") { |
208 sources = [ | 209 sources = [ |
209 "bpf_dsl/bpf_dsl.cc", | 210 "bpf_dsl/bpf_dsl.cc", |
210 "bpf_dsl/bpf_dsl.h", | 211 "bpf_dsl/bpf_dsl.h", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 ] | 279 ] |
279 | 280 |
280 cflags = [ | 281 cflags = [ |
281 # For ULLONG_MAX | 282 # For ULLONG_MAX |
282 "-std=gnu99", | 283 "-std=gnu99", |
283 | 284 |
284 # These files have a suspicious comparison. | 285 # These files have a suspicious comparison. |
285 # TODO fix this and re-enable this warning. | 286 # TODO fix this and re-enable this warning. |
286 "-Wno-sign-compare", | 287 "-Wno-sign-compare", |
287 ] | 288 ] |
| 289 |
| 290 deps = [ |
| 291 "//build/config/sanitizers:deps", |
| 292 ] |
288 } | 293 } |
289 } | 294 } |
290 | 295 |
291 component("sandbox_services") { | 296 component("sandbox_services") { |
292 sources = [ | 297 sources = [ |
293 "services/init_process_reaper.cc", | 298 "services/init_process_reaper.cc", |
294 "services/init_process_reaper.h", | 299 "services/init_process_reaper.h", |
295 "services/proc_util.cc", | 300 "services/proc_util.cc", |
296 "services/proc_util.h", | 301 "services/proc_util.h", |
297 "services/resource_limits.cc", | 302 "services/resource_limits.cc", |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 # 'type': 'none', | 417 # 'type': 'none', |
413 # 'variables': { | 418 # 'variables': { |
414 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 419 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
415 # }, | 420 # }, |
416 # 'dependencies': [ | 421 # 'dependencies': [ |
417 # 'sandbox_linux_jni_unittests', | 422 # 'sandbox_linux_jni_unittests', |
418 # ], | 423 # ], |
419 # 'includes': [ '../../build/apk_test.gypi' ], | 424 # 'includes': [ '../../build/apk_test.gypi' ], |
420 # } | 425 # } |
421 } | 426 } |
OLD | NEW |