Index: gpu/command_buffer/client/BUILD.gn |
diff --git a/gpu/command_buffer/client/BUILD.gn b/gpu/command_buffer/client/BUILD.gn |
index fabc82a0fe29c7fbf37528a71882715a622718b1..90de6d581e70129d29eac1d5e480b69bb0084ac0 100644 |
--- a/gpu/command_buffer/client/BUILD.gn |
+++ b/gpu/command_buffer/client/BUILD.gn |
@@ -2,7 +2,36 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-source_set("client") { |
+# The files here go into the "gpu" component in a component build (with |
+# "command_buffer_client" and "gles2_cmd_helper" just forwarding) and goes into |
+# separate static libraries in non-component build. |
Dirk Pranke
2015/04/06 16:54:07
Maybe explain *why* we need to separate things lik
|
+group("client") { |
+ if (is_component_build) { |
+ public_deps = [ |
+ "//gpu", |
+ ] |
+ } else { |
+ public_deps = [ |
+ ":client_sources", |
+ ] |
+ } |
+} |
+ |
+group("gles2_cmd_helper") { |
+ if (is_component_build) { |
+ public_deps = [ |
+ "//gpu", |
+ ] |
+ } else { |
+ public_deps = [ |
+ ":gles2_cmd_helper_sources", |
+ ] |
+ } |
+} |
+ |
+source_set("client_sources") { |
+ visibility = [ "//gpu/*" ] |
+ |
sources = [ |
"cmd_buffer_helper.cc", |
"cmd_buffer_helper.h", |
@@ -28,27 +57,12 @@ source_set("client") { |
all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
deps = [ |
- "//gpu/command_buffer/common", |
+ "//gpu/command_buffer/common:common_sources", |
] |
} |
-group("gles2_cmd_helper") { |
- if (is_component_build) { |
- deps = [ |
- "//gpu", |
- ] |
- } else { |
- deps = [ |
- ":gles2_cmd_helper_sources", |
- ] |
- } |
-} |
- |
source_set("gles2_cmd_helper_sources") { |
- visibility = [ |
- ":gles2_cmd_helper", |
- "//gpu", |
- ] |
+ visibility = [ "//gpu/*" ] |
sources = [ |
"gles2_cmd_helper.cc", |
"gles2_cmd_helper.h", |
@@ -62,7 +76,7 @@ source_set("gles2_cmd_helper_sources") { |
] |
deps = [ |
- ":client", |
+ ":client_sources", |
] |
} |