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/08/31 18:28:04
This is duplicating too much in the GN build to ha
| |
234 "//content/public/common/content_switches.cc", | |
235 "//content/public/common/content_switches.h", | |
236 "//content/public/common/main_function_params.h", | |
237 "//content/public/common/sandbox_init.h", | |
238 "//content/public/common/sandbox_linux.h", | |
239 "//content/public/common/sandbox_type.h", | |
240 "//content/public/common/sandboxed_process_launcher_delegate.cc", | |
241 "//content/public/common/sandboxed_process_launcher_delegate.h", | |
242 "//content/public/common/send_zygote_child_ping_linux.h", | |
243 "//content/public/common/zygote_fork_delegate_linux.h", | |
244 "//content/public/common/zygote_handle.h", | |
245 "child_process_sandbox_support_impl_linux.cc", | |
246 "child_process_sandbox_support_impl_linux.h", | |
247 "child_process_sandbox_support_impl_shm_linux.cc", | |
248 "content_export.h", | |
249 "sandbox_linux/sandbox_debug_handling_linux.cc", | |
250 "sandbox_linux/sandbox_debug_handling_linux.h", | |
251 "sandbox_linux/sandbox_init_linux.cc", | |
252 "sandbox_linux/sandbox_linux.cc", | |
253 "sandbox_linux/sandbox_linux.h", | |
254 "send_zygote_child_ping_linux.cc", | |
255 "set_process_title.cc", | |
256 "set_process_title.h", | |
257 "set_process_title_linux.cc", | |
258 "set_process_title_linux.h", | |
259 "zygote_commands_linux.h", | |
260 ] | |
261 deps = [ | |
262 "//base", | |
263 "//content/public/common:content_descriptors", | |
264 "//ipc:ipc", | |
265 "//ppapi/c:c", | |
266 "//sandbox/linux:sandbox_services", | |
267 "//sandbox/linux:suid_sandbox_client", | |
268 "//third_party/WebKit/public:blink_headers", | |
269 "//third_party/WebKit/public:blink_minimal", | |
270 ] | |
271 if (use_seccomp_bpf) { | |
272 defines = [ "USE_SECCOMP_BPF" ] | |
273 sources += [ | |
274 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc", | |
275 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h", | |
276 "sandbox_linux/bpf_gpu_policy_linux.cc", | |
277 "sandbox_linux/bpf_gpu_policy_linux.h", | |
278 "sandbox_linux/bpf_ppapi_policy_linux.cc", | |
279 "sandbox_linux/bpf_ppapi_policy_linux.h", | |
280 "sandbox_linux/bpf_renderer_policy_linux.cc", | |
281 "sandbox_linux/bpf_renderer_policy_linux.h", | |
282 "sandbox_linux/bpf_utility_policy_linux.cc", | |
283 "sandbox_linux/bpf_utility_policy_linux.h", | |
284 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | |
285 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | |
286 "sandbox_linux/sandbox_seccomp_bpf_linux.cc", | |
287 "sandbox_linux/sandbox_seccomp_bpf_linux.h", | |
288 ] | |
289 deps += [ | |
290 "//sandbox/linux:seccomp_bpf", | |
291 "//ui/gl:switches", | |
292 ] | |
293 if (is_android) { | |
294 sources += [ | |
295 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", | |
296 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", | |
297 ] | |
298 } | |
299 } | |
300 } | |
301 } | |
302 | |
227 # See comment at the top of //content/BUILD.gn for how this works. | 303 # See comment at the top of //content/BUILD.gn for how this works. |
228 group("for_content_tests") { | 304 group("for_content_tests") { |
229 visibility = [ "//content/test/*" ] | 305 visibility = [ "//content/test/*" ] |
230 if (!is_component_build) { | 306 if (!is_component_build) { |
231 public_deps = [ | 307 public_deps = [ |
232 ":common", | 308 ":common", |
233 ] | 309 ] |
234 } | 310 } |
235 } | 311 } |
236 | 312 |
(...skipping 25 matching lines...) Expand all Loading... | |
262 "//third_party/WebKit/public:mojo_bindings", | 338 "//third_party/WebKit/public:mojo_bindings", |
263 "//ui/gfx/geometry/mojo", | 339 "//ui/gfx/geometry/mojo", |
264 "//url/mojo:url_mojom_gurl", | 340 "//url/mojo:url_mojom_gurl", |
265 "//url/mojo:url_mojom_origin", | 341 "//url/mojo:url_mojom_origin", |
266 ] | 342 ] |
267 | 343 |
268 export_class_attribute = "CONTENT_EXPORT" | 344 export_class_attribute = "CONTENT_EXPORT" |
269 export_define = "CONTENT_IMPLEMENTATION=1" | 345 export_define = "CONTENT_IMPLEMENTATION=1" |
270 export_header = "content/common/content_export.h" | 346 export_header = "content/common/content_export.h" |
271 } | 347 } |
OLD | NEW |