Set bench/gm/tests as explicit dependencies of SkiaAndroidApp (trunk)
authorborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 9 Aug 2012 15:54:28 +0000 (15:54 +0000)
committerborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 9 Aug 2012 15:54:28 +0000 (15:54 +0000)
Hopefully this fixes the flaky Android build.
Review URL: https://codereview.appspot.com/6461067

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

gyp/android_deps.gyp [new file with mode: 0644]
gyp/apptype_console.gypi
gyp/core.gyp
gyp/images.gyp
gyp/ports.gyp

diff --git a/gyp/android_deps.gyp b/gyp/android_deps.gyp
new file mode 100644 (file)
index 0000000..122f2c3
--- /dev/null
@@ -0,0 +1,20 @@
+# This GYP file stores the dependencies necessary to build Skia on the Android
+# platform. The OS doesn't provide many stable libraries as part of the
+# distribution so we have to build a few of them ourselves.  
+#
+# We tried adding this gyp file to the android directory at the root of 
+# the Skia repo, but that resulted in the generated makefiles being created
+# outside of the intended output directory. So to avoid this we created a simple
+# shim here that includes the android_deps.gypi file.  The actual dependencies
+# are defined and maintained in that gypi file.  
+# 
+# Also this assumes that the android directory is a sibling to the directory
+# that contains your primary Skia checkout. If it is not then you must manually
+# edit the includes below to specify the actual location of the android.gypi.
+# This is due to the fact that we cannot use variables in an includes as the
+# variable expansion step for gyp happens after the includes are processed. 
+{
+  'includes': [
+    '../../android/gyp/dependencies.gypi',
+  ],
+}
index 62f1b9f..229db0d 100644 (file)
@@ -14,7 +14,7 @@
     'conditions': [
       [ 'skia_os == "android" and android_make_apk == 1', {
         'dependencies': [
-          'android_system.gyp:Android_EntryPoint',
+          'android_deps.gyp:Android_EntryPoint',
         ],
       }],
     ],
index 0be1ad5..47a46ac 100644 (file)
@@ -76,7 +76,7 @@
         }],
         [ 'skia_os == "android"', {
           'dependencies': [
-             'android_system.gyp:ft2',
+             'android_deps.gyp:ft2',
           ],
         }],
         [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', {
index b92c9db..24c70a1 100644 (file)
           'sources!': [
           ],
           'dependencies': [
-             'android_system.gyp:gif',
-             'android_system.gyp:png',
+             'android_deps.gyp:gif',
+             'android_deps.gyp:png',
           ],
           'defines': [
             'SK_ENABLE_LIBPNG',
index b9c1412..3272ac9 100644 (file)
@@ -96,8 +96,8 @@
             #TODO: include the ports/SkImageRef_ashmem.cpp for non-NDK builds
           ],
           'dependencies': [
-             'android_system.gyp:ft2',
-             'android_system.gyp:expat',
+             'android_deps.gyp:ft2',
+             'android_deps.gyp:expat',
           ],
         }],        
       ],