mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 06:46:09 +03:00
89 lines
2.5 KiB
Plaintext
89 lines
2.5 KiB
Plaintext
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
||
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
# found in the LICENSE file.
|
||
|
|
||
|
component("sandbox") {
|
||
|
sources = [
|
||
|
"export.h",
|
||
|
"sandbox.cc",
|
||
|
"sandbox.h",
|
||
|
"sandbox_delegate.h",
|
||
|
"sandbox_type.cc",
|
||
|
"sandbox_type.h",
|
||
|
"switches.cc",
|
||
|
"switches.h",
|
||
|
|
||
|
# Duplicated here to keep private.
|
||
|
"//services/service_manager/embedder/service_manager_embedder_export.h",
|
||
|
]
|
||
|
defines = [ "SERVICE_MANAGER_SANDBOX_IMPL" ]
|
||
|
public_deps = [
|
||
|
"//services/service_manager/embedder:embedder_switches",
|
||
|
]
|
||
|
deps = [
|
||
|
"//base",
|
||
|
]
|
||
|
if (is_linux) {
|
||
|
sources += [
|
||
|
"linux/bpf_base_policy_linux.cc",
|
||
|
"linux/bpf_base_policy_linux.h",
|
||
|
"linux/bpf_broker_policy_linux.cc",
|
||
|
"linux/bpf_broker_policy_linux.h",
|
||
|
"linux/bpf_cdm_policy_linux.cc",
|
||
|
"linux/bpf_cdm_policy_linux.h",
|
||
|
"linux/bpf_cros_amd_gpu_policy_linux.cc",
|
||
|
"linux/bpf_cros_amd_gpu_policy_linux.h",
|
||
|
"linux/bpf_cros_arm_gpu_policy_linux.cc",
|
||
|
"linux/bpf_cros_arm_gpu_policy_linux.h",
|
||
|
"linux/bpf_gpu_policy_linux.cc",
|
||
|
"linux/bpf_gpu_policy_linux.h",
|
||
|
"linux/bpf_network_policy_linux.cc",
|
||
|
"linux/bpf_network_policy_linux.h",
|
||
|
"linux/bpf_pdf_compositor_policy_linux.cc",
|
||
|
"linux/bpf_pdf_compositor_policy_linux.h",
|
||
|
"linux/bpf_ppapi_policy_linux.cc",
|
||
|
"linux/bpf_ppapi_policy_linux.h",
|
||
|
"linux/bpf_renderer_policy_linux.cc",
|
||
|
"linux/bpf_renderer_policy_linux.h",
|
||
|
"linux/bpf_utility_policy_linux.cc",
|
||
|
"linux/bpf_utility_policy_linux.h",
|
||
|
"linux/sandbox_debug_handling_linux.cc",
|
||
|
"linux/sandbox_debug_handling_linux.h",
|
||
|
"linux/sandbox_linux.cc",
|
||
|
"linux/sandbox_linux.h",
|
||
|
"linux/sandbox_seccomp_bpf_linux.cc",
|
||
|
"linux/sandbox_seccomp_bpf_linux.h",
|
||
|
]
|
||
|
deps += [
|
||
|
"//sandbox:sandbox_features",
|
||
|
"//sandbox/linux:sandbox_services",
|
||
|
"//sandbox/linux:seccomp_bpf",
|
||
|
"//sandbox/linux:suid_sandbox_client",
|
||
|
]
|
||
|
}
|
||
|
if (is_mac) {
|
||
|
sources += [
|
||
|
"mac/sandbox_mac.h",
|
||
|
"mac/sandbox_mac.mm",
|
||
|
]
|
||
|
deps += [ "//sandbox/mac:seatbelt" ]
|
||
|
public_deps += [ "mac:packaged_sb_files" ]
|
||
|
libs = [
|
||
|
"AppKit.framework",
|
||
|
"CoreFoundation.framework",
|
||
|
"CoreGraphics.framework",
|
||
|
"Foundation.framework",
|
||
|
"IOSurface.framework",
|
||
|
]
|
||
|
}
|
||
|
if (is_win) {
|
||
|
sources += [
|
||
|
"features.cc",
|
||
|
"features.h",
|
||
|
"win/sandbox_win.cc",
|
||
|
"win/sandbox_win.h",
|
||
|
]
|
||
|
deps += [ "//sandbox/win:sandbox" ]
|
||
|
}
|
||
|
}
|