Adding support to trunk for building Skia using the Android NDK.
This CL depends on a subsequent CL to add the appropriate NDK
toolchain and system sources to the skia repo.
Review URL: http://codereview.appspot.com/5306089/
Review URL: http://codereview.appspot.com/5306089
git-svn-id: http://skia.googlecode.com/svn/trunk@2592 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index a919de7..8b30a12 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -114,6 +114,8 @@
'../src/gpu/SkGrTexturePixelRef.cpp',
'../src/gpu/SkNullGLContext.cpp',
+ '../src/gpu/android/SkNativeGLContext_android.cpp',
+
'../src/gpu/mac/SkNativeGLContext_mac.cpp',
'../src/gpu/win/SkNativeGLContext_win.cpp',
@@ -270,6 +272,8 @@
'../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
+ '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
+
'../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
],
'defines': [
@@ -327,6 +331,19 @@
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
],
}],
+ [ 'skia_os == "android"', {
+ 'sources!': [
+ '../src/gpu/GrGLDefaultInterface_none.cpp',
+ '../src/gpu/GrGLCreateNativeInterface_none.cpp',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lGLESv2',
+ '-lEGL',
+ '-shared',
+ ],
+ },
+ }],
],
},
],