Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / gpu / command_buffer / client / BUILD.gn
index 91dcddb..d3e9b42 100644 (file)
@@ -17,6 +17,8 @@ source_set("client") {
     "transfer_buffer.h",
   ]
 
+  defines = [ "GPU_IMPLEMENTATION" ]
+
   if (is_win) {
     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     cflags = [ "/wd4267" ]  # size_t to int truncation.
@@ -29,13 +31,24 @@ source_set("client") {
   ]
 }
 
-source_set("gles2_cmd_helper") {
+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" ]
   sources = [
     "gles2_cmd_helper.cc",
     "gles2_cmd_helper.h",
     "gles2_cmd_helper_autogen.h",
   ]
 
+  defines = [ "GPU_IMPLEMENTATION" ]
+
   if (is_win) {
     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     cflags = [ "/wd4267" ]  # size_t to int truncation.
@@ -139,6 +152,7 @@ component("gl_in_process_context") {
   deps = [
     ":gles2_implementation",
     "//gpu",
+    "//gpu/command_buffer/common:gles2_utils",
     "//base",
     "//base/third_party/dynamic_annotations",
     "//ui/gfx/geometry",