xref: /aosp_15_r20/external/cronet/components/nacl/loader/sandbox_linux/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2015 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
5import("//build/config/ui.gni")
6import("//components/nacl/features.gni")
7
8assert(is_linux || is_chromeos)
9assert(enable_nacl)
10
11source_set("sandbox_linux") {
12  sources = [
13    "nacl_bpf_sandbox_linux.cc",
14    "nacl_bpf_sandbox_linux.h",
15    "nacl_sandbox_linux.cc",
16  ]
17
18  defines = [ "IN_NACL_HELPER=1" ]
19
20  deps = [
21    "//base",
22    "//components/nacl/common",
23    "//components/nacl/loader",
24    "//crypto",
25    "//ipc",
26    "//sandbox",
27    "//sandbox:sandbox_buildflags",
28    "//sandbox/linux:sandbox_services_headers",
29  ]
30
31  if (use_glib) {
32    configs += [ "//build/config/linux:glib" ]
33  }
34}
35