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 # See //content/BUILD.gn for how this works. | 5 # See //content/BUILD.gn for how this works. |
6 group("plugin") { | 6 group("plugin") { |
7 if (is_component_build) { | 7 if (is_component_build) { |
8 public_deps = [ | 8 public_deps = [ |
9 "//content", | 9 "//content", |
10 ] | 10 ] |
11 } else { | 11 } else { |
12 public_deps = [ | 12 public_deps = [ |
13 ":plugin_sources", | 13 ":plugin_sources", |
14 ] | 14 ] |
15 } | 15 } |
16 } | 16 } |
17 | 17 |
18 source_set("plugin_sources") { | 18 source_set("plugin_sources") { |
19 # External code should depend on via ":plugin" above. | 19 # External code should depend on via ":plugin" above. |
20 visibility = [ "//content/*" ] | 20 visibility = [ "//content/*" ] |
21 | 21 |
22 sources = [ | 22 sources = [ |
23 "content_plugin_client.h", | 23 "content_plugin_client.h", |
24 ] | 24 ] |
25 | 25 |
26 deps = [ | 26 deps = [ |
27 "//base", | 27 "//base", |
28 "//content/plugin", # Must not be a public dep. | |
29 "//content/public/common:common_sources", | 28 "//content/public/common:common_sources", |
30 ] | 29 ] |
31 | |
32 allow_circular_includes_from = [ | |
33 # This target is a pair with content/plugin. They always go together and | |
34 # include headers from each other. | |
35 "//content/plugin", | |
36 ] | |
37 } | 30 } |
OLD | NEW |