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