| 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("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     "all_messages.h", | 39     "all_messages.h", | 
| 39     "android/gin_java_bridge_errors.cc", | 40     "android/gin_java_bridge_errors.cc", | 
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 349     "url_request_struct_traits.h", | 350     "url_request_struct_traits.h", | 
| 350     "url_schemes.cc", | 351     "url_schemes.cc", | 
| 351     "url_schemes.h", | 352     "url_schemes.h", | 
| 352     "user_agent.cc", | 353     "user_agent.cc", | 
| 353     "view_message_enums.h", | 354     "view_message_enums.h", | 
| 354     "view_messages.h", | 355     "view_messages.h", | 
| 355     "worker_messages.h", | 356     "worker_messages.h", | 
| 356     "zygote_commands_linux.h", | 357     "zygote_commands_linux.h", | 
| 357   ] | 358   ] | 
| 358 | 359 | 
|  | 360   jumbo_excluded_sources = [ | 
|  | 361     # IPC Headers. Nothing more to say. | 
|  | 362     "content_message_generator.cc", | 
|  | 363     "input/input_param_traits.cc", # IPC stuff | 
|  | 364     "input/input_event_struct_traits.cc", # IPC stuff | 
|  | 365     "input/touch_action_optional_struct_traits.cc",  # IPC stuff | 
|  | 366     "media/media_devices_param_traits.cc", # IPC stuff | 
|  | 367     "resource_messages.cc", # IPC stuff | 
|  | 368     "swapped_out_messages.cc", # IPC stuff | 
|  | 369     "content_ipc_logging.cc", | 
|  | 370   ] | 
|  | 371 | 
|  | 372   if (is_linux) { | 
|  | 373     jumbo_excluded_sources += [ | 
|  | 374       # Conflicts with bpf_cros_arm_gpu_policy_linux.cc | 
|  | 375       "sandbox_linux/sandbox_seccomp_bpf_linux.cc", | 
|  | 376     ] | 
|  | 377   } | 
|  | 378 | 
| 359   configs += [ | 379   configs += [ | 
| 360     "//content:content_implementation", | 380     "//content:content_implementation", | 
| 361     "//build/config:precompiled_headers", | 381     "//build/config:precompiled_headers", | 
| 362     "//build/config/compiler:no_size_t_to_int_warning", | 382     "//build/config/compiler:no_size_t_to_int_warning", | 
| 363   ] | 383   ] | 
| 364 | 384 | 
| 365   public_deps = [ | 385   public_deps = [ | 
| 366     ":mojo_bindings", | 386     ":mojo_bindings", | 
| 367     "//cc", | 387     "//cc", | 
| 368     "//gpu/command_buffer/common", | 388     "//gpu/command_buffer/common", | 
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 544         "sandbox_linux/bpf_gpu_policy_linux.h", | 564         "sandbox_linux/bpf_gpu_policy_linux.h", | 
| 545         "sandbox_linux/bpf_ppapi_policy_linux.cc", | 565         "sandbox_linux/bpf_ppapi_policy_linux.cc", | 
| 546         "sandbox_linux/bpf_ppapi_policy_linux.h", | 566         "sandbox_linux/bpf_ppapi_policy_linux.h", | 
| 547         "sandbox_linux/bpf_renderer_policy_linux.cc", | 567         "sandbox_linux/bpf_renderer_policy_linux.cc", | 
| 548         "sandbox_linux/bpf_renderer_policy_linux.h", | 568         "sandbox_linux/bpf_renderer_policy_linux.h", | 
| 549         "sandbox_linux/bpf_utility_policy_linux.cc", | 569         "sandbox_linux/bpf_utility_policy_linux.cc", | 
| 550         "sandbox_linux/bpf_utility_policy_linux.h", | 570         "sandbox_linux/bpf_utility_policy_linux.h", | 
| 551         "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 571         "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 
| 552         "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 572         "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 
| 553       ] | 573       ] | 
|  | 574 | 
|  | 575       jumbo_excluded_sources -= [ | 
|  | 576         # Conflicts with bpf_cros_arm_gpu_policy_linux.cc | 
|  | 577         "sandbox_linux/sandbox_seccomp_bpf_linux.cc", | 
|  | 578       ] | 
|  | 579 | 
| 554     } | 580     } | 
| 555   } | 581   } | 
| 556 | 582 | 
| 557   if (is_mac) { | 583   if (is_mac) { | 
| 558     deps += [ "//media/gpu" ] | 584     deps += [ "//media/gpu" ] | 
| 559   } | 585   } | 
| 560 | 586 | 
| 561   if (enable_ipc_fuzzer) { | 587   if (enable_ipc_fuzzer) { | 
| 562     configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | 588     configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | 
| 563     sources += [ | 589     sources += [ | 
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 674   # as STORAGE_COMMON, so override the dependencies to make it | 700   # as STORAGE_COMMON, so override the dependencies to make it | 
| 675   # depend via //storage/common. | 701   # depend via //storage/common. | 
| 676   overridden_deps = [ "//storage/public/interfaces" ] | 702   overridden_deps = [ "//storage/public/interfaces" ] | 
| 677   component_deps = [ "//storage/common" ] | 703   component_deps = [ "//storage/common" ] | 
| 678 | 704 | 
| 679   component_output_prefix = "content_common_mojo_bindings" | 705   component_output_prefix = "content_common_mojo_bindings" | 
| 680   export_class_attribute = "CONTENT_EXPORT" | 706   export_class_attribute = "CONTENT_EXPORT" | 
| 681   export_define = "CONTENT_IMPLEMENTATION=1" | 707   export_define = "CONTENT_IMPLEMENTATION=1" | 
| 682   export_header = "content/common/content_export.h" | 708   export_header = "content/common/content_export.h" | 
| 683 } | 709 } | 
| OLD | NEW | 
|---|