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