| 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 source_set("utility") { | 5 # See //content/BUILD.gn for how this works. |
| 6 group("utility") { |
| 7 if (is_component_build) { |
| 8 deps = [ "//content" ] |
| 9 } else { |
| 10 deps = [ ":utility_sources" ] |
| 11 } |
| 12 forward_dependent_configs_from = deps |
| 13 } |
| 14 |
| 15 source_set("utility_sources") { |
| 16 visibility = [ "//content/*" ] |
| 17 |
| 6 sources = [ | 18 sources = [ |
| 7 "content_utility_client.cc", | 19 "content_utility_client.cc", |
| 8 "content_utility_client.h", | 20 "content_utility_client.h", |
| 9 "utility_thread.cc", | 21 "utility_thread.cc", |
| 10 "utility_thread.h", | 22 "utility_thread.h", |
| 11 ] | 23 ] |
| 12 | 24 |
| 13 configs += [ "//content:content_implementation" ] | 25 configs += [ "//content:content_implementation" ] |
| 14 | 26 |
| 15 deps = [ | 27 deps = [ |
| 16 "//base", | 28 "//base", |
| 17 "//content:export", | 29 "//content:export", |
| 18 "//content/public/common", | 30 "//content/public/common:common_sources", |
| 19 "//content/utility", | 31 "//content/utility", |
| 20 "//ipc", | 32 "//ipc", |
| 21 ] | 33 ] |
| 22 | 34 |
| 23 allow_circular_includes_from = [ | 35 allow_circular_includes_from = [ |
| 24 # This target is a pair with content/browser. They always go together and | 36 # This target is a pair with content/browser. They always go together and |
| 25 # include headers from each other. | 37 # include headers from each other. |
| 26 "//content/utility", | 38 # TODO(brettw) enable this when this permits non-dependent targets. |
| 39 #"//content/utility", |
| 27 ] | 40 ] |
| 28 } | 41 } |
| 29 | 42 |
| OLD | NEW |