Fix Android build for new toolchain
authorborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 25 Jul 2012 15:17:03 +0000 (15:17 +0000)
committerborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 25 Jul 2012 15:17:03 +0000 (15:17 +0000)
The new toolchain (r8b) does not automatically include
the necessary directories
(http://code.google.com/p/android/issues/detail?id=35279).
Add them manually until this is fixed.
Review URL: https://codereview.appspot.com/6419076

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

gyp/common_conditions.gypi

index 6ccaa462b52d1806bc497fd236fd616caec7020f..2f58c1b6e63ee79e75441993af23093a506e15a2 100644 (file)
         'cflags': [
           '-fno-exceptions',
           '-fno-rtti',
+          '-fuse-ld=gold',
+          '--sysroot=<(android_base)/toolchains/<(android_toolchain)/sysroot',
+        ],
+        'include_dirs' : [
+          '<(android_base)/toolchains/<(android_toolchain)/lib/gcc/arm-linux-androideabi/4.6.x-google/include',
+          '<(android_base)/toolchains/<(android_toolchain)/lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed',
+          '<(android_base)/toolchains/<(android_toolchain)/arm-linux-androideabi/include/c++/4.6',
+          '<(android_base)/toolchains/<(android_toolchain)/arm-linux-androideabi/include/c++/4.6/arm-linux-androideabi',
+          '<(android_base)/toolchains/<(android_toolchain)/sysroot/usr/include',
         ],
         'conditions': [
           [ 'skia_arch_type == "arm"', {
             'ldflags': [
               '-Wl',
-              '--fix-cortex-a8',
             ],
           }],
           [ 'skia_arch_type == "arm" and arm_thumb == 1', {