Create new target to hold gpu test code, enable direct testing of GrEffects in GM.

R=robertphillips@google.com, jvanverth@google.com, egdaniel@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/23352003

git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@10866 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/SampleApp.gyp b/SampleApp.gyp
index 0751651..aa6cbe0 100644
--- a/SampleApp.gyp
+++ b/SampleApp.gyp
@@ -300,8 +300,8 @@
           ],
         }],
         [ 'skia_gpu == 1', {
-          'include_dirs': [
-            '../src/gpu', # To pull gl/GrGLUtil.h
+          'dependencies': [
+            'gputest.gyp:skgputest',
           ],
         }],
         [ 'skia_os == "nacl"', {
diff --git a/gm.gyp b/gm.gyp
index 04efaa6..e412efe 100644
--- a/gm.gyp
+++ b/gm.gyp
@@ -94,6 +94,9 @@
           'include_dirs': [
             '../src/gpu',
           ],
+          'dependencies': [
+            'gputest.gyp:skgputest',
+          ],
         }],
       ],
     },
diff --git a/gmslides.gypi b/gmslides.gypi
index 8c183a7..e8950c2 100644
--- a/gmslides.gypi
+++ b/gmslides.gypi
@@ -6,6 +6,7 @@
     '../gm/alphagradients.cpp',
     '../gm/arcofzorro.cpp',
     '../gm/arithmode.cpp',
+    '../gm/beziereffects.cpp',
     '../gm/bicubicfilter.cpp',
     '../gm/bigmatrix.cpp',
     '../gm/bigtext.cpp',
diff --git a/gputest.gyp b/gputest.gyp
new file mode 100644
index 0000000..23d1da3
--- /dev/null
+++ b/gputest.gyp
@@ -0,0 +1,38 @@
+{
+  'targets': [
+    {
+      'target_name': 'skgputest',
+      'product_name': 'skia_skgputest',
+      'type': 'static_library',
+      'standalone_static_library': 1,
+      'dependencies': [
+        'core.gyp:core',
+        'gpu.gyp:skgpu',
+      ],
+      'include_dirs': [
+        '../include/gpu',
+        '../include/utils',
+        '../src/core',
+        '../src/gpu',
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          '../src/gpu',
+        ],
+      },
+      'sources': [
+        '<(skia_src_path)/gpu/GrTest.cpp',
+        '<(skia_src_path)/gpu/GrTest.h',
+      ],
+      'defines': [
+        'GR_IMPLEMENTATION=1',
+      ],
+    },
+  ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2: