| 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 if (is_mac) { | 10 if (is_mac) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 stubs_filename_root, | 119 stubs_filename_root, |
| 120 "-p", | 120 "-p", |
| 121 "content/common/gpu/media", | 121 "content/common/gpu/media", |
| 122 ] | 122 ] |
| 123 | 123 |
| 124 args += rebase_path(sources, root_build_dir) | 124 args += rebase_path(sources, root_build_dir) |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 | 127 |
| 128 source_set("common") { | 128 source_set("common") { |
| 129 # Only the public target should depend on this. All other targets (even | 129 # Targets external to content should always link to the public API. |
| 130 # internal content ones) should depend on the public one. | 130 # In addition, targets outside of the content component (shell and tests) |
| 131 visibility = [ "//content/public/common:common_sources" ] | 131 # must not link to this because it will duplicate the code in the component |
| 132 # build. |
| 133 visibility = [ "//content/*" ] |
| 132 | 134 |
| 133 sources = rebase_path(content_common_gypi_values.private_common_sources, | 135 sources = rebase_path(content_common_gypi_values.private_common_sources, |
| 134 ".", | 136 ".", |
| 135 "//content") | 137 "//content") |
| 136 | 138 |
| 137 configs += [ | 139 configs += [ |
| 138 "//content:content_implementation", | 140 "//content:content_implementation", |
| 139 "//build/config:precompiled_headers", | 141 "//build/config:precompiled_headers", |
| 140 "//build/config/compiler:no_size_t_to_int_warning", | 142 "//build/config/compiler:no_size_t_to_int_warning", |
| 141 ] | 143 ] |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 "//skia", | 190 "//skia", |
| 189 "//storage/common", | 191 "//storage/common", |
| 190 "//third_party/WebKit/public:blink", | 192 "//third_party/WebKit/public:blink", |
| 191 "//third_party/boringssl", | 193 "//third_party/boringssl", |
| 192 "//third_party/icu", | 194 "//third_party/icu", |
| 193 "//third_party/libjingle", | 195 "//third_party/libjingle", |
| 194 "//third_party/webrtc/base:rtc_base", | 196 "//third_party/webrtc/base:rtc_base", |
| 195 "//ui/accessibility", | 197 "//ui/accessibility", |
| 196 "//ui/base", | 198 "//ui/base", |
| 197 "//ui/base/ime", | 199 "//ui/base/ime", |
| 198 "//ui/events/ipc:events_ipc", | 200 "//ui/events/ipc", |
| 199 "//ui/gfx", | 201 "//ui/gfx", |
| 200 "//ui/gfx/geometry", | 202 "//ui/gfx/geometry", |
| 201 "//ui/gfx/ipc", | 203 "//ui/gfx/ipc", |
| 202 "//ui/gl", | 204 "//ui/gl", |
| 203 "//ui/shell_dialogs", | 205 "//ui/shell_dialogs", |
| 204 "//url", | 206 "//url", |
| 205 "//url/ipc:url_ipc", | 207 "//url/ipc:url_ipc", |
| 206 ] | 208 ] |
| 207 | 209 |
| 208 defines = [] | 210 defines = [] |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 } | 514 } |
| 513 if (is_android) { | 515 if (is_android) { |
| 514 sources -= [ | 516 sources -= [ |
| 515 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", | 517 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", |
| 516 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", | 518 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", |
| 517 ] | 519 ] |
| 518 } | 520 } |
| 519 } | 521 } |
| 520 } | 522 } |
| 521 | 523 |
| 524 # See comment at the top of //content/BUILD.gn for how this works. |
| 525 group("for_content_tests") { |
| 526 visibility = [ "//content/test/*" ] |
| 527 if (!is_component_build) { |
| 528 public_deps = [ |
| 529 ":common", |
| 530 ] |
| 531 } |
| 532 } |
| 533 |
| 522 mojom("mojo_bindings") { | 534 mojom("mojo_bindings") { |
| 535 # This interface is internal to content. However, this is not exported from |
| 536 # the content component shared library. Code in content but outside of the |
| 537 # content component (content/test or content/shell) should link to this |
| 538 # directly. |
| 539 visibility = [ "//content/*" ] |
| 540 |
| 523 sources = [ | 541 sources = [ |
| 524 "application_setup.mojom", | 542 "application_setup.mojom", |
| 525 "background_sync_service.mojom", | 543 "background_sync_service.mojom", |
| 526 "geolocation_service.mojom", | 544 "geolocation_service.mojom", |
| 527 "image_downloader/image_downloader.mojom", | 545 "image_downloader/image_downloader.mojom", |
| 528 "leveldb_wrapper.mojom", | 546 "leveldb_wrapper.mojom", |
| 529 "permission_service.mojom", | 547 "permission_service.mojom", |
| 530 "presentation/presentation_service.mojom", | 548 "presentation/presentation_service.mojom", |
| 531 "process_control.mojom", | 549 "process_control.mojom", |
| 532 "render_frame_setup.mojom", | 550 "render_frame_setup.mojom", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 546 "//components/leveldb/public/interfaces", | 564 "//components/leveldb/public/interfaces", |
| 547 "//components/mus/public/interfaces", | 565 "//components/mus/public/interfaces", |
| 548 "//content/public/common:mojo_bindings", | 566 "//content/public/common:mojo_bindings", |
| 549 "//mojo/shell/public/interfaces", | 567 "//mojo/shell/public/interfaces", |
| 550 "//skia/public/interfaces", | 568 "//skia/public/interfaces", |
| 551 "//third_party/WebKit/public:mojo_bindings", | 569 "//third_party/WebKit/public:mojo_bindings", |
| 552 "//ui/mojo/geometry:interfaces", | 570 "//ui/mojo/geometry:interfaces", |
| 553 "//url/mojo:url_mojom_origin", | 571 "//url/mojo:url_mojom_origin", |
| 554 ] | 572 ] |
| 555 } | 573 } |
| OLD | NEW |