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 deps = [ "//content" ] | 11 public_deps = [ "//content" ] |
12 } else { | 12 } else { |
13 deps = [ ":browser_sources" ] | 13 public_deps = [ ":browser_sources" ] |
14 } | 14 } |
15 forward_dependent_configs_from = deps | |
16 } | 15 } |
17 | 16 |
18 source_set("browser_sources") { | 17 source_set("browser_sources") { |
19 visibility = [ "//content/*" ] | 18 visibility = [ "//content/*" ] |
20 | 19 |
21 if (is_ios) { | 20 if (is_ios) { |
22 # iOS doesn't get the normal file list and only takes these whitelisted | 21 # iOS doesn't get the normal file list and only takes these whitelisted |
23 # files. | 22 # files. |
24 sources = [ | 23 sources = [ |
25 "browser_main_parts.cc", | 24 "browser_main_parts.cc", |
26 "content_browser_client.cc", | 25 "content_browser_client.cc", |
27 "favicon_status.cc", | 26 "favicon_status.cc", |
28 "navigation_details.cc", | 27 "navigation_details.cc", |
29 "notification_registrar.cc", | 28 "notification_registrar.cc", |
30 "page_navigator.cc", | 29 "page_navigator.cc", |
31 "web_ui_controller.cc", | 30 "web_ui_controller.cc", |
32 ] | 31 ] |
33 } else { | 32 } else { |
34 sources = rebase_path(content_browser_gypi_values.public_browser_sources, | 33 sources = rebase_path(content_browser_gypi_values.public_browser_sources, |
35 ".", "//content") | 34 ".", "//content") |
36 } | 35 } |
37 | 36 |
38 if (use_aura) { | 37 if (use_aura) { |
39 sources -= [ "context_factory.h" ] | 38 sources -= [ "context_factory.h" ] |
40 } | 39 } |
41 | 40 |
42 configs += [ "//content:content_implementation" ] | 41 configs += [ "//content:content_implementation" ] |
43 | 42 |
| 43 public_deps = [ |
| 44 # We expose skia headers in the public API. |
| 45 "//skia", |
| 46 ] |
44 deps = [ | 47 deps = [ |
45 "//content/browser", | 48 "//content/browser", |
46 "//content/public/common:common_sources", | 49 "//content/public/common:common_sources", |
47 "//net", | 50 "//net", |
48 "//skia", | |
49 "//ui/accessibility", | 51 "//ui/accessibility", |
50 "//ui/base", | 52 "//ui/base", |
51 "//ui/events", | 53 "//ui/events", |
52 ] | 54 ] |
53 | 55 |
54 allow_circular_includes_from = [ | 56 allow_circular_includes_from = [ |
55 # This target is a pair with content/browser. They always go together and | 57 # This target is a pair with content/browser. They always go together and |
56 # include headers from each other. | 58 # include headers from each other. |
57 "//content/browser", | 59 "//content/browser", |
58 ] | 60 ] |
59 | |
60 # We expose skia headers in the public API. | |
61 forward_dependent_configs_from = [ "//skia" ] | |
62 } | 61 } |
OLD | NEW |