OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//content/common/common.gni") | 7 import("//content/common/common.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 | 217 |
218 if (enable_ipc_fuzzer) { | 218 if (enable_ipc_fuzzer) { |
219 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | 219 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
220 sources += [ | 220 sources += [ |
221 "external_ipc_dumper.cc", | 221 "external_ipc_dumper.cc", |
222 "external_ipc_dumper.h", | 222 "external_ipc_dumper.h", |
223 ] | 223 ] |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 if (is_linux) { | |
228 # This target contains sources from //content/common needed by nacl_helper. | |
229 # It does not depend on //media/ffmpeg unlike //content/common. | |
230 # So nacl_helper executable does not crash when cannot find libbffmpeg.so. | |
231 source_set("sandbox_linux") { | |
232 sources = [ | |
233 "//content/public/common/child_process_sandbox_support_linux.h", | |
Mark Seaborn
2016/09/08 20:46:55
I'm afraid this is still duplicating more than I a
| |
234 "//content/public/common/sandbox_init.h", | |
235 "//content/public/common/sandbox_linux.h", | |
236 "//content/public/common/sandbox_type.h", | |
237 "//content/public/common/send_zygote_child_ping_linux.h", | |
238 "//content/public/common/zygote_fork_delegate_linux.h", | |
239 "child_process_sandbox_support_impl_linux.cc", | |
240 "child_process_sandbox_support_impl_linux.h", | |
241 "child_process_sandbox_support_impl_shm_linux.cc", | |
242 "content_export.h", | |
243 "sandbox_linux/sandbox_debug_handling_linux.cc", | |
244 "sandbox_linux/sandbox_debug_handling_linux.h", | |
245 "sandbox_linux/sandbox_init_linux.cc", | |
246 "sandbox_linux/sandbox_linux.cc", | |
247 "sandbox_linux/sandbox_linux.h", | |
248 "send_zygote_child_ping_linux.cc", | |
249 "set_process_title.cc", | |
250 "set_process_title.h", | |
251 "set_process_title_linux.cc", | |
252 "set_process_title_linux.h", | |
253 "zygote_commands_linux.h", | |
254 ] | |
255 deps = [ | |
256 "//base", | |
257 "//content/public/common:content_descriptors", | |
258 "//content/public/common:static_switches", | |
259 "//ipc:ipc", | |
260 "//ppapi/c:c", | |
261 "//sandbox/linux:sandbox_services", | |
262 "//sandbox/linux:suid_sandbox_client", | |
263 "//third_party/WebKit/public:blink_headers", | |
264 "//third_party/WebKit/public:blink_minimal", | |
265 ] | |
266 if (use_seccomp_bpf) { | |
267 defines = [ "USE_SECCOMP_BPF" ] | |
268 sources += [ | |
269 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc", | |
270 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h", | |
271 "sandbox_linux/bpf_gpu_policy_linux.cc", | |
272 "sandbox_linux/bpf_gpu_policy_linux.h", | |
273 "sandbox_linux/bpf_ppapi_policy_linux.cc", | |
274 "sandbox_linux/bpf_ppapi_policy_linux.h", | |
275 "sandbox_linux/bpf_renderer_policy_linux.cc", | |
276 "sandbox_linux/bpf_renderer_policy_linux.h", | |
277 "sandbox_linux/bpf_utility_policy_linux.cc", | |
278 "sandbox_linux/bpf_utility_policy_linux.h", | |
279 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | |
280 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | |
281 "sandbox_linux/sandbox_seccomp_bpf_linux.cc", | |
282 "sandbox_linux/sandbox_seccomp_bpf_linux.h", | |
283 ] | |
284 deps += [ | |
285 "//sandbox/linux:seccomp_bpf", | |
286 "//ui/gl:switches", | |
287 ] | |
288 if (is_android) { | |
289 sources += [ | |
290 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", | |
291 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", | |
292 ] | |
293 } | |
294 } | |
295 } | |
296 } | |
297 | |
227 # See comment at the top of //content/BUILD.gn for how this works. | 298 # See comment at the top of //content/BUILD.gn for how this works. |
228 group("for_content_tests") { | 299 group("for_content_tests") { |
229 visibility = [ "//content/test/*" ] | 300 visibility = [ "//content/test/*" ] |
230 if (!is_component_build) { | 301 if (!is_component_build) { |
231 public_deps = [ | 302 public_deps = [ |
232 ":common", | 303 ":common", |
233 ] | 304 ] |
234 } | 305 } |
235 } | 306 } |
236 | 307 |
(...skipping 25 matching lines...) Expand all Loading... | |
262 "//third_party/WebKit/public:mojo_bindings", | 333 "//third_party/WebKit/public:mojo_bindings", |
263 "//ui/gfx/geometry/mojo", | 334 "//ui/gfx/geometry/mojo", |
264 "//url/mojo:url_mojom_gurl", | 335 "//url/mojo:url_mojom_gurl", |
265 "//url/mojo:url_mojom_origin", | 336 "//url/mojo:url_mojom_origin", |
266 ] | 337 ] |
267 | 338 |
268 export_class_attribute = "CONTENT_EXPORT" | 339 export_class_attribute = "CONTENT_EXPORT" |
269 export_define = "CONTENT_IMPLEMENTATION=1" | 340 export_define = "CONTENT_IMPLEMENTATION=1" |
270 export_header = "content/common/content_export.h" | 341 export_header = "content/common/content_export.h" |
271 } | 342 } |
OLD | NEW |