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/utility/utility.gni") | 5 import("//content/utility/utility.gni") |
6 | 6 |
7 # See //content/BUILD.gn for how this works. | 7 # See //content/BUILD.gn for how this works. |
8 group("utility") { | 8 group("utility") { |
9 if (is_component_build) { | 9 if (is_component_build) { |
10 public_deps = [ | 10 public_deps = [ |
11 "//content", | 11 "//content", |
12 ] | 12 ] |
13 } else { | 13 } else { |
14 public_deps = [ | 14 public_deps = [ |
15 ":utility_sources", | 15 ":utility_sources", |
16 ] | 16 ] |
17 } | 17 } |
18 } | 18 } |
19 | 19 |
20 source_set("utility_sources") { | 20 source_set("utility_sources") { |
| 21 # External code should depend on via ":utility" above. |
21 visibility = [ "//content/*" ] | 22 visibility = [ "//content/*" ] |
22 | 23 |
23 sources = rebase_path(content_utility_gypi_values.public_utility_sources, | 24 sources = rebase_path(content_utility_gypi_values.public_utility_sources, |
24 ".", | 25 ".", |
25 "//content") | 26 "//content") |
26 | 27 |
27 configs += [ "//content:content_implementation" ] | 28 configs += [ "//content:content_implementation" ] |
28 | 29 |
29 deps = [ | 30 deps = [ |
30 "//base", | 31 "//base", |
31 "//content:export", | 32 "//content:export", |
32 "//content/public/child:child_sources", | 33 "//content/public/child:child_sources", |
33 "//content/public/common:common_sources", | 34 "//content/public/common:common_sources", |
34 "//content/utility", | 35 "//content/utility", |
35 "//ipc", | 36 "//ipc", |
36 ] | 37 ] |
37 | 38 |
38 allow_circular_includes_from = [ | 39 allow_circular_includes_from = [ |
39 # This target is a pair with content/browser. They always go together and | 40 # This target is a pair with content/browser. They always go together and |
40 # include headers from each other. | 41 # include headers from each other. |
41 "//content/utility", | 42 "//content/utility", |
42 ] | 43 ] |
43 } | 44 } |
OLD | NEW |