Exclude angle dependency on non-angle builds
authordjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 14:00:34 +0000 (14:00 +0000)
committerdjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 3 May 2013 14:00:34 +0000 (14:00 +0000)
R=bsalomon@google.com

Review URL: https://codereview.chromium.org/14200018

git-svn-id: http://skia.googlecode.com/svn/trunk@8983 2bbb7eff-a529-9590-31e7-b0007b416f81

gyp/gpu.gyp

index 69e0815..efe757d 100644 (file)
         }],
         [ 'not skia_angle', {
           'sources!': [
-            '../include/gpu/gl/SkANGLEGLContext.h',
-            '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
-            '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
+            '<@(skgr_angle_gl_sources)',
+          ],
+          'dependencies!': [
+            'angle.gyp:*',
+          ],
+          'export_dependent_settings!': [
+            'angle.gyp:*',
           ],
         }],
       ],
         }],
         [ 'not skia_angle', {
           'sources!': [
-            '../include/gpu/gl/SkANGLEGLContext.h',
-
-            '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
-            '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
+            '<@(gr_angle_gl_sources)',
+          ],
+          'dependencies!': [
+            'angle.gyp:*',
+          ],
+          'export_dependent_settings!': [
+            'angle.gyp:*',
           ],
         }],
         [ 'skia_os == "android"', {