Index: gpu/command_buffer/common/BUILD.gn |
diff --git a/gpu/command_buffer/common/BUILD.gn b/gpu/command_buffer/common/BUILD.gn |
index 43b19402bcaf2ebe77e464d9041b8af6d353ac0d..865031db702df1ac1e98464c6253a5dfd6a5e77c 100644 |
--- a/gpu/command_buffer/common/BUILD.gn |
+++ b/gpu/command_buffer/common/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
source_set("common") { |
+ defines = [ "GPU_IMPLEMENTATION" ] |
brettw
2014/07/08 21:58:33
After sources, before deps.
|
sources = [ |
"bitfield_helpers.h", |
"buffer.cc", |
@@ -21,9 +22,6 @@ source_set("common") { |
"gles2_cmd_format_autogen.h", |
"gles2_cmd_ids.h", |
"gles2_cmd_ids_autogen.h", |
- "gles2_cmd_utils.cc", |
- "gles2_cmd_utils.h", |
- "gles2_utils_export.h", |
"id_allocator.cc", |
"id_allocator.h", |
"mailbox.cc", |
@@ -34,9 +32,24 @@ source_set("common") { |
"time.h", |
] |
- all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
+ deps = [ |
+ "//base", |
+ ":gles2_utils", |
brettw
2014/07/08 21:58:33
Put this above "//base" (local ones go first)
|
+ ] |
+} |
+ |
+component("gles2_utils") { |
+ defines = [ "GLES2_UTILS_IMPLEMENTATION" ] |
brettw
2014/07/08 21:58:33
After sources, before deps.
|
+ |
+ sources = [ |
+ "gles2_cmd_utils.cc", |
+ "gles2_cmd_utils.h", |
+ "gles2_utils_export.h", |
+ ] |
deps = [ |
"//base", |
] |
+ |
+ all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
} |