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