[M120][Tizen][Offscreen] Fix build errors for TV profile
[platform/framework/web/chromium-efl.git] / sandbox / BUILD.gn
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.
4
5 import("//build/buildflag_header.gni")
6 import("//sandbox/features.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni")
8 import("//testing/test.gni")
9
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" ]
14 }
15
16 source_set("common") {
17   sources = [
18     "constants.h",
19     "features.cc",
20     "features.h",
21   ]
22
23   deps = [
24     "//base:base",
25     "//sandbox:sandbox_buildflags",
26   ]
27 }
28
29 test("sandbox_unittests") {
30   deps = [
31     "//base/test:run_all_unittests",
32     "//sandbox/policy:tests",
33     "//testing/gtest",
34   ]
35
36   if (is_mac) {
37     deps += [ "//sandbox/mac:sandbox_unittests" ]
38   }
39 }
40
41 # Meta-target that forwards to the proper platform one.
42 group("sandbox") {
43   if (is_win) {
44     public_deps = [ "//sandbox/win:sandbox" ]
45   } else if (is_mac) {
46     public_deps = [
47       "//sandbox/mac:seatbelt",
48       "//sandbox/mac:seatbelt_extension",
49       "//sandbox/mac:system_services",
50       "//sandbox/mac/mojom",
51     ]
52   } else if (is_linux || is_chromeos || is_android || is_tizen) {
53     public_deps = [ "//sandbox/linux:sandbox" ]
54   }
55 }
56
57 buildflag_header("sandbox_buildflags") {
58   header = "sandbox_buildflags.h"
59   flags = [
60     "USE_SECCOMP_BPF=$use_seccomp_bpf",
61     "DISABLE_SECCOMP_SSBD=$disable_seccomp_ssbd",
62   ]
63 }