Delivering .gyp files to enable building & linking w/ ANGLE on Windows

http://codereview.appspot.com/5933057/



git-svn-id: http://skia.googlecode.com/svn/trunk@3580 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index fb5dff3..7f7b566 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -92,6 +92,13 @@
         '../src/core',
         '../include/gpu',
       ],
+      'dependencies': [
+        'libtess.gyp:libtess',
+        'angle.gyp:*',
+      ],
+      'export_dependent_settings': [
+        'angle.gyp:*',
+      ],
       'sources': [
         '../include/gpu/SkGpuCanvas.h',
         '../include/gpu/SkGpuDevice.h',
@@ -100,6 +107,7 @@
 
         '../include/gpu/gl/SkGLContext.h',
         '../include/gpu/gl/SkMesaGLContext.h',
+        '../include/gpu/gl/SkANGLEGLContext.h',
         '../include/gpu/gl/SkNativeGLContext.h',
         '../include/gpu/gl/SkNullGLContext.h',
         '../include/gpu/gl/SkDebugGLContext.h',
@@ -122,6 +130,8 @@
         '../src/gpu/gl/unix/SkNativeGLContext_unix.cpp',
 
         '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
+        '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
+        '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
 
         '../src/gpu/android/SkNativeGLContext_android.cpp',
       ],
@@ -136,6 +146,13 @@
              '$(SDKROOT)/usr/X11/include/',
           ],
         }],
+        [ 'not skia_angle', {
+          'sources!': [
+            '../include/gpu/gl/SkANGLEGLContext.h',
+            '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
+            '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
+          ],
+        }],
       ],
     },
     {
@@ -149,6 +166,10 @@
       ],
       'dependencies': [
         'libtess.gyp:libtess',
+        'angle.gyp:*',
+      ],
+      'export_dependent_settings': [
+        'angle.gyp:*',
       ],
       'sources': [
         '../include/gpu/GrClip.h',
@@ -288,6 +309,7 @@
         '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
 
         '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
+        '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
 
         '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
       ],
@@ -346,6 +368,14 @@
             '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
           ],
         }],
+        [ 'not skia_angle', {
+          'sources!': [
+            '../include/gpu/gl/SkANGLEGLContext.h',
+
+            '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
+            '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
+          ],
+        }],
         [ 'skia_os == "android"', {
           'sources!': [
             '../src/gpu/gl/GrGLDefaultInterface_none.cpp',