| 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 visibility = [ "//content/*" ] | 22 visibility = [ "//content/*" ] |
| 23 | 23 |
| 24 sources = rebase_path(content_browser_gypi_values.public_browser_sources, | 24 sources = rebase_path(content_browser_gypi_values.public_browser_sources, |
| 25 ".", | 25 ".", |
| 26 "//content") | 26 "//content") |
| 27 | 27 |
| 28 if (use_aura) { | |
| 29 sources -= [ "context_factory.h" ] | |
| 30 } | |
| 31 | |
| 32 configs += [ | 28 configs += [ |
| 33 "//build/config:precompiled_headers", | 29 "//build/config:precompiled_headers", |
| 34 "//content:content_implementation", | 30 "//content:content_implementation", |
| 35 ] | 31 ] |
| 36 | 32 |
| 37 public_deps = [ | 33 public_deps = [ |
| 38 "//content/public/common:mojo_bindings", | 34 "//content/public/common:mojo_bindings", |
| 39 "//mojo/public/cpp/bindings", | 35 "//mojo/public/cpp/bindings", |
| 40 "//mojo/public/cpp/system", | 36 "//mojo/public/cpp/system", |
| 41 | 37 |
| 42 # We expose skia headers in the public API. | 38 # We expose skia headers in the public API. |
| 43 "//skia", | 39 "//skia", |
| 44 ] | 40 ] |
| 45 deps = [ | 41 deps = [ |
| 42 "//cc", |
| 46 "//content/browser", | 43 "//content/browser", |
| 47 "//content/public/common:common_sources", | 44 "//content/public/common:common_sources", |
| 45 "//gpu", |
| 46 "//media", |
| 48 "//net", | 47 "//net", |
| 48 "//ppapi/c", |
| 49 "//storage/browser", |
| 49 "//ui/accessibility", | 50 "//ui/accessibility", |
| 50 "//ui/base", | 51 "//ui/base", |
| 51 "//ui/events", | 52 "//ui/events", |
| 53 "//ui/gl", |
| 54 "//ui/surface", |
| 52 ] | 55 ] |
| 53 | 56 |
| 54 allow_circular_includes_from = [ | 57 allow_circular_includes_from = [ |
| 55 # This target is a pair with content/browser. They always go together and | 58 # This target is a pair with content/browser. They always go together and |
| 56 # include headers from each other. | 59 # include headers from each other. |
| 57 "//content/browser", | 60 "//content/browser", |
| 58 ] | 61 ] |
| 62 |
| 63 if (is_android) { |
| 64 deps += [ "//ui/android" ] |
| 65 } |
| 66 |
| 67 if (use_aura) { |
| 68 sources -= [ "context_factory.h" ] |
| 69 deps += [ "//ui/aura" ] |
| 70 } |
| 59 } | 71 } |
| OLD | NEW |