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

Side by Side Diff: components/nacl/loader/sandbox_linux/BUILD.gn

Issue 2523253002: Convert use_seccomp_bpf to the BUILDFLAG system. (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 assert(is_linux) 8 assert(is_linux)
9 assert(enable_nacl) 9 assert(enable_nacl)
10 10
11 source_set("sandbox_linux") { 11 source_set("sandbox_linux") {
12 sources = [ 12 sources = [
13 "nacl_bpf_sandbox_linux.cc", 13 "nacl_bpf_sandbox_linux.cc",
14 "nacl_sandbox_linux.cc", 14 "nacl_sandbox_linux.cc",
15 ] 15 ]
16 16
17 defines = [ "IN_NACL_HELPER=1" ] 17 defines = [ "IN_NACL_HELPER=1" ]
18 18
19 deps = [ 19 deps = [
20 "//base", 20 "//base",
21 "//components/nacl/common", 21 "//components/nacl/common",
22 "//components/nacl/loader", 22 "//components/nacl/loader",
23 "//content/public/common", 23 "//content/public/common",
24 "//crypto", 24 "//crypto",
25 "//ipc", 25 "//ipc",
26 "//sandbox", 26 "//sandbox",
27 "//sandbox:sandbox_features",
27 "//sandbox/linux:sandbox_services_headers", 28 "//sandbox/linux:sandbox_services_headers",
28 ] 29 ]
29 30
30 if (use_glib) { 31 if (use_glib) {
31 configs += [ "//build/config/linux:glib" ] 32 configs += [ "//build/config/linux:glib" ]
32 } 33 }
33
34 if (use_seccomp_bpf) {
35 defines += [ "USE_SECCOMP_BPF" ]
36 }
37 } 34 }
OLDNEW
« no previous file with comments | « components/nacl/loader/DEPS ('k') | components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698