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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "seccomp-bpf-helpers/syscall_sets.cc", | 204 "seccomp-bpf-helpers/syscall_sets.cc", |
205 "seccomp-bpf-helpers/syscall_sets.h", | 205 "seccomp-bpf-helpers/syscall_sets.h", |
206 ] | 206 ] |
207 defines = [ "SANDBOX_IMPLEMENTATION" ] | 207 defines = [ "SANDBOX_IMPLEMENTATION" ] |
208 | 208 |
209 deps = [ | 209 deps = [ |
210 "//base", | 210 "//base", |
211 ":sandbox_services", | 211 ":sandbox_services", |
212 ":seccomp_bpf", | 212 ":seccomp_bpf", |
213 ] | 213 ] |
| 214 |
| 215 if (ozone_platform_gbm == 1 && |
| 216 (current_cpu == "x86" || current_cpu == "x64")) { |
| 217 defines += [ "USE_OZONE_GBM_INTEL" ] |
| 218 pkg_config("libdrm_intel") { |
| 219 packages = [ "libdrm_intel" ] |
| 220 } |
| 221 } |
214 } | 222 } |
215 | 223 |
216 if (is_linux) { | 224 if (is_linux) { |
217 # The setuid sandbox for Linux. | 225 # The setuid sandbox for Linux. |
218 executable("chrome_sandbox") { | 226 executable("chrome_sandbox") { |
219 sources = [ | 227 sources = [ |
220 "suid/common/sandbox.h", | 228 "suid/common/sandbox.h", |
221 "suid/common/suid_unsafe_environment_variables.h", | 229 "suid/common/suid_unsafe_environment_variables.h", |
222 "suid/process_util.h", | 230 "suid/process_util.h", |
223 "suid/process_util_linux.c", | 231 "suid/process_util_linux.c", |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 # 'type': 'none', | 365 # 'type': 'none', |
358 # 'variables': { | 366 # 'variables': { |
359 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 367 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
360 # }, | 368 # }, |
361 # 'dependencies': [ | 369 # 'dependencies': [ |
362 # 'sandbox_linux_jni_unittests', | 370 # 'sandbox_linux_jni_unittests', |
363 # ], | 371 # ], |
364 # 'includes': [ '../../build/apk_test.gypi' ], | 372 # 'includes': [ '../../build/apk_test.gypi' ], |
365 # } | 373 # } |
366 } | 374 } |
OLD | NEW |