| 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("//content/browser/browser.gni") | 5 import("//content/browser/browser.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 | 7 |
| 8 # See //content/BUILD.gn for how this works. | 8 # See //content/BUILD.gn for how this works. |
| 9 group("browser") { | 9 group("browser") { |
| 10 if (is_component_build) { | 10 if (is_component_build) { |
| 11 public_deps = [ | 11 public_deps = [ |
| 12 "//content", | 12 "//content", |
| 13 ] | 13 ] |
| 14 } else { | 14 } else { |
| 15 public_deps = [ | 15 public_deps = [ |
| 16 ":browser_sources", | 16 ":browser_sources", |
| 17 ] | 17 ] |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 source_set("browser_sources") { | 21 source_set("browser_sources") { |
| 22 # External code should depend on via ":browser" above. |
| 22 visibility = [ "//content/*" ] | 23 visibility = [ "//content/*" ] |
| 23 | 24 |
| 24 sources = rebase_path(content_browser_gypi_values.public_browser_sources, | 25 sources = rebase_path(content_browser_gypi_values.public_browser_sources, |
| 25 ".", | 26 ".", |
| 26 "//content") | 27 "//content") |
| 27 | 28 |
| 28 configs += [ | 29 configs += [ |
| 29 "//build/config:precompiled_headers", | 30 "//build/config:precompiled_headers", |
| 30 "//content:content_implementation", | 31 "//content:content_implementation", |
| 31 ] | 32 ] |
| 32 | 33 |
| 33 public_deps = [ | 34 public_deps = [ |
| 34 "//content/public/common:mojo_bindings", | 35 "//content/public/common:mojo_bindings", |
| 35 "//mojo/public/cpp/bindings", | 36 "//mojo/public/cpp/bindings", |
| 36 "//mojo/public/cpp/system", | 37 "//mojo/public/cpp/system", |
| 37 | 38 |
| 38 # We expose skia headers in the public API. | 39 # We expose skia headers in the public API. |
| 39 "//skia", | 40 "//skia", |
| 40 ] | 41 ] |
| 41 deps = [ | 42 deps = [ |
| 42 "//cc", | 43 "//cc", |
| 43 "//content/browser", | 44 "//content/browser", # Must not be public_deps! |
| 44 "//content/public/common:common_sources", | 45 "//content/public/common:common_sources", |
| 45 "//gpu", | 46 "//gpu", |
| 46 "//media", | 47 "//media", |
| 47 "//net", | 48 "//net", |
| 48 "//ppapi/c", | 49 "//ppapi/c", |
| 49 "//storage/browser", | 50 "//storage/browser", |
| 50 "//ui/accessibility", | 51 "//ui/accessibility", |
| 51 "//ui/base", | 52 "//ui/base", |
| 52 "//ui/events", | 53 "//ui/events", |
| 53 "//ui/gl", | 54 "//ui/gl", |
| 54 "//ui/surface", | 55 "//ui/surface", |
| 55 ] | 56 ] |
| 56 | 57 |
| 57 allow_circular_includes_from = [ | 58 allow_circular_includes_from = [ |
| 58 # This target is a pair with content/browser. They always go together and | 59 # This target is a pair with content/browser. They always go together and |
| 59 # include headers from each other. | 60 # include headers from each other. |
| 60 "//content/browser", | 61 "//content/browser", |
| 61 ] | 62 ] |
| 62 | 63 |
| 63 if (is_android) { | 64 if (is_android) { |
| 64 deps += [ "//ui/android" ] | 65 deps += [ "//ui/android" ] |
| 65 } | 66 } |
| 66 | 67 |
| 67 if (use_aura) { | 68 if (use_aura) { |
| 68 sources -= [ "context_factory.h" ] | 69 sources -= [ "context_factory.h" ] |
| 69 deps += [ "//ui/aura" ] | 70 deps += [ "//ui/aura" ] |
| 70 } | 71 } |
| 71 } | 72 } |
| OLD | NEW |