summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/client/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/client/BUILD.gn')
-rw-r--r--gpu/command_buffer/client/BUILD.gn54
1 files changed, 35 insertions, 19 deletions
diff --git a/gpu/command_buffer/client/BUILD.gn b/gpu/command_buffer/client/BUILD.gn
index fabc82a..bbb7c0b 100644
--- a/gpu/command_buffer/client/BUILD.gn
+++ b/gpu/command_buffer/client/BUILD.gn
@@ -2,7 +2,38 @@
# 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. This needs to match the
+# GYP build which was likely an attempt to make larger components to help with
+# loading.
+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 +59,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 +78,7 @@ source_set("gles2_cmd_helper_sources") {
]
deps = [
- ":client",
+ ":client_sources",
]
}