1 # Copyright 2014 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/buildflag_header.gni")
6 import("//sandbox/features.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni")
8 import("//testing/test.gni")
10 # Several targets want to include this header file. We separate it out
11 # here so multiple targets can depend on it.
12 source_set("sandbox_export") {
13 sources = [ "sandbox_export.h" ]
16 source_set("common") {
25 "//sandbox:sandbox_buildflags",
29 test("sandbox_unittests") {
31 "//base/test:run_all_unittests",
32 "//sandbox/policy:tests",
37 deps += [ "//sandbox/mac:sandbox_unittests" ]
41 # Meta-target that forwards to the proper platform one.
44 public_deps = [ "//sandbox/win:sandbox" ]
47 "//sandbox/mac:seatbelt",
48 "//sandbox/mac:seatbelt_extension",
49 "//sandbox/mac:system_services",
50 "//sandbox/mac/mojom",
52 } else if (is_linux || is_chromeos || is_android || is_tizen) {
53 public_deps = [ "//sandbox/linux:sandbox" ]
57 buildflag_header("sandbox_buildflags") {
58 header = "sandbox_buildflags.h"
60 "USE_SECCOMP_BPF=$use_seccomp_bpf",
61 "DISABLE_SECCOMP_SSBD=$disable_seccomp_ssbd",