| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/features.gni") |
| import("//content/common/common.gni") |
| import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| |
| # See //content/BUILD.gn for how this works. |
| group("common") { |
| if (is_component_build) { |
| public_deps = [ |
| "//content", |
| ] |
| } else { |
| public_deps = [ |
| ":common_sources", |
| ] |
| } |
| } |
| |
| # This target allows other targets to depend on result_codes.h which is a |
| # header-only dependency, without bringing in all of content. |
| source_set("result_codes") { |
| sources = [ |
| "result_codes.h", |
| ] |
| } |
| |
| source_set("common_sources") { |
| visibility = [ "//content/*" ] |
| |
| sources = rebase_path(content_common_gypi_values.public_common_sources, |
| ".", |
| "//content") |
| |
| configs += [ "//content:content_implementation" ] |
| |
| public_deps = [ |
| "//content/common", |
| "//third_party/mojo/src/mojo/public/cpp/bindings", |
| ] |
| deps = [ |
| "//net", |
| "//skia", |
| "//third_party/WebKit/public:blink_headers", |
| "//third_party/icu", |
| "//ui/base", |
| "//ui/gfx", |
| ] |
| |
| if (!enable_plugins) { |
| sources -= [ |
| "pepper_plugin_info.cc", |
| "pepper_plugin_info.h", |
| ] |
| } |
| } |
| |
| mojom("mojo_bindings") { |
| sources = [ |
| "background_sync.mojom", |
| "mojo_geoposition.mojom", |
| "permission_status.mojom", |
| ] |
| } |