| 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("//content/common/common.gni") | 6 import("//content/common/common.gni") |
| 7 | 7 |
| 8 # See //content/BUILD.gn for how this works. | 8 # See //content/BUILD.gn for how this works. |
| 9 group("common") { | 9 group("common") { |
| 10 if (is_component_build) { | 10 if (is_component_build) { |
| 11 deps = [ "//content" ] | 11 public_deps = [ "//content" ] |
| 12 } else { | 12 } else { |
| 13 deps = [ ":common_sources" ] | 13 public_deps = [ ":common_sources" ] |
| 14 } | 14 } |
| 15 forward_dependent_configs_from = deps | |
| 16 } | 15 } |
| 17 | 16 |
| 18 source_set("common_sources") { | 17 source_set("common_sources") { |
| 19 visibility = [ "//content/*" ] | 18 visibility = [ "//content/*" ] |
| 20 | 19 |
| 21 sources = rebase_path(content_common_gypi_values.public_common_sources, | 20 sources = rebase_path(content_common_gypi_values.public_common_sources, |
| 22 ".", "//content") | 21 ".", "//content") |
| 23 | 22 |
| 24 configs += [ | 23 configs += [ |
| 25 "//content:content_implementation", | 24 "//content:content_implementation", |
| 26 ] | 25 ] |
| 27 | 26 |
| 27 public_deps = [ |
| 28 "//content/common", |
| 29 ] |
| 28 deps = [ | 30 deps = [ |
| 29 "//content/common", | |
| 30 "//net", | 31 "//net", |
| 31 "//skia", | 32 "//skia", |
| 32 "//third_party/WebKit/public:blink_headers", | 33 "//third_party/WebKit/public:blink_headers", |
| 33 "//third_party/icu", | 34 "//third_party/icu", |
| 34 "//ui/base", | 35 "//ui/base", |
| 35 "//ui/gfx", | 36 "//ui/gfx", |
| 36 ] | 37 ] |
| 37 | 38 |
| 38 forward_dependent_configs_from = [ "//content/common" ] | |
| 39 | |
| 40 if (!enable_plugins) { | 39 if (!enable_plugins) { |
| 41 sources -= [ | 40 sources -= [ |
| 42 "pepper_plugin_info.cc", | 41 "pepper_plugin_info.cc", |
| 43 "pepper_plugin_info.h", | 42 "pepper_plugin_info.h", |
| 44 ] | 43 ] |
| 45 } | 44 } |
| 46 } | 45 } |
| OLD | NEW |