Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: content/common/BUILD.gn

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("features.gni") 5 import("features.gni")
6 import("//build/buildflag_header.gni") 6 import("//build/buildflag_header.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//media/media_options.gni") 9 import("//media/media_options.gni")
10 import("//mojo/public/tools/bindings/mojom.gni") 10 import("//mojo/public/tools/bindings/mojom.gni")
11 import("//ppapi/features/features.gni") 11 import("//ppapi/features/features.gni")
12 import("//sandbox/features.gni") 12 import("//sandbox/features.gni")
13 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") 13 import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
14 import("//content/content.gni")
14 if (is_mac) { 15 if (is_mac) {
15 import("//build/config/mac/mac_sdk.gni") 16 import("//build/config/mac/mac_sdk.gni")
16 } 17 }
17 18
18 # For feature flags internal to content. See content/public/common:features 19 # For feature flags internal to content. See content/public/common:features
19 # for feature flags that clients of contents need to know about. 20 # for feature flags that clients of contents need to know about.
20 buildflag_header("features") { 21 buildflag_header("features") {
21 header = "features.h" 22 header = "features.h"
22 23
23 flags = [ 24 flags = [
24 "USE_EXTERNAL_POPUP_MENU=$use_external_popup_menu", 25 "USE_EXTERNAL_POPUP_MENU=$use_external_popup_menu",
25 "ALLOW_CRITICAL_MEMORY_PRESSURE_HANDLING_IN_FOREGROUND=$allow_critical_memor y_pressure_handling_in_foreground", 26 "ALLOW_CRITICAL_MEMORY_PRESSURE_HANDLING_IN_FOREGROUND=$allow_critical_memor y_pressure_handling_in_foreground",
26 ] 27 ]
27 } 28 }
28 29
29 source_set("common") { 30 content_source_set("common") {
30 # Targets external to content should always link to the public API. 31 # Targets external to content should always link to the public API.
31 # In addition, targets outside of the content component (shell and tests) 32 # In addition, targets outside of the content component (shell and tests)
32 # must not link to this because it will duplicate the code in the component 33 # must not link to this because it will duplicate the code in the component
33 # build. 34 # build.
34 visibility = [ "//content/*" ] 35 visibility = [ "//content/*" ]
35 36
36 sources = [ 37 sources = [
37 "accessibility_messages.h", 38 "accessibility_messages.h",
38 "accessibility_mode.h", 39 "accessibility_mode.h",
39 "all_messages.h", 40 "all_messages.h",
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 "url_request_struct_traits.h", 346 "url_request_struct_traits.h",
346 "url_schemes.cc", 347 "url_schemes.cc",
347 "url_schemes.h", 348 "url_schemes.h",
348 "user_agent.cc", 349 "user_agent.cc",
349 "view_message_enums.h", 350 "view_message_enums.h",
350 "view_messages.h", 351 "view_messages.h",
351 "worker_messages.h", 352 "worker_messages.h",
352 "zygote_commands_linux.h", 353 "zygote_commands_linux.h",
353 ] 354 ]
354 355
356 jumbo_excluded_sources = [
357 # IPC Headers. Nothing more to say.
358 "content_message_generator.cc",
359 "input/input_param_traits.cc", # IPC stuff
360 "input/input_event_struct_traits.cc", # IPC stuff
361 "media/media_devices_param_traits.cc", # IPC stuff
362 "resource_messages.cc", # IPC stuff
363 "swapped_out_messages.cc", # IPC stuff
364 "content_ipc_logging.cc",
365 ]
366
367 if (is_linux) {
368 jumbo_excluded_sources += [
369 # Conflicts with bpf_cros_arm_gpu_policy_linux.cc
370 "sandbox_linux/sandbox_seccomp_bpf_linux.cc",
371 ]
372 }
373
355 configs += [ 374 configs += [
356 "//content:content_implementation", 375 "//content:content_implementation",
357 "//build/config:precompiled_headers", 376 "//build/config:precompiled_headers",
358 "//build/config/compiler:no_size_t_to_int_warning", 377 "//build/config/compiler:no_size_t_to_int_warning",
359 "//media/gpu:gpu_config", 378 "//media/gpu:gpu_config",
360 ] 379 ]
361 380
362 public_deps = [ 381 public_deps = [
363 ":mojo_bindings", 382 ":mojo_bindings",
364 "//cc", 383 "//cc",
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 "sandbox_linux/bpf_gpu_policy_linux.h", 551 "sandbox_linux/bpf_gpu_policy_linux.h",
533 "sandbox_linux/bpf_ppapi_policy_linux.cc", 552 "sandbox_linux/bpf_ppapi_policy_linux.cc",
534 "sandbox_linux/bpf_ppapi_policy_linux.h", 553 "sandbox_linux/bpf_ppapi_policy_linux.h",
535 "sandbox_linux/bpf_renderer_policy_linux.cc", 554 "sandbox_linux/bpf_renderer_policy_linux.cc",
536 "sandbox_linux/bpf_renderer_policy_linux.h", 555 "sandbox_linux/bpf_renderer_policy_linux.h",
537 "sandbox_linux/bpf_utility_policy_linux.cc", 556 "sandbox_linux/bpf_utility_policy_linux.cc",
538 "sandbox_linux/bpf_utility_policy_linux.h", 557 "sandbox_linux/bpf_utility_policy_linux.h",
539 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", 558 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
540 "sandbox_linux/sandbox_bpf_base_policy_linux.h", 559 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
541 ] 560 ]
561
562 jumbo_excluded_sources -= [
563 # Conflicts with bpf_cros_arm_gpu_policy_linux.cc
564 "sandbox_linux/sandbox_seccomp_bpf_linux.cc",
565 ]
566
542 } 567 }
543 } 568 }
544 569
545 if (is_mac) { 570 if (is_mac) {
546 deps += [ "//media/gpu" ] 571 deps += [ "//media/gpu" ]
547 } 572 }
548 573
549 if (enable_ipc_fuzzer) { 574 if (enable_ipc_fuzzer) {
550 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] 575 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
551 sources += [ 576 sources += [
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 "//ui/gfx/mojo", 669 "//ui/gfx/mojo",
645 "//url/mojo:url_mojom_gurl", 670 "//url/mojo:url_mojom_gurl",
646 "//url/mojo:url_mojom_origin", 671 "//url/mojo:url_mojom_origin",
647 ] 672 ]
648 673
649 component_output_prefix = "content_common_mojo_bindings" 674 component_output_prefix = "content_common_mojo_bindings"
650 export_class_attribute = "CONTENT_EXPORT" 675 export_class_attribute = "CONTENT_EXPORT"
651 export_define = "CONTENT_IMPLEMENTATION=1" 676 export_define = "CONTENT_IMPLEMENTATION=1"
652 export_header = "content/common/content_export.h" 677 export_header = "content/common/content_export.h"
653 } 678 }
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698