Both DM and nanobench need this, so moving the duplicated code to
one common spot. (It's incomplete, and has had bugs, so it's not
like we can confidently write once, copy-paste, and not maintain
again.)
Because SkPathEffect::exposedInAndroidJavaAPI() only builds in the
Android Framework, we might want to make all this code Framework-only?
R=djsollen@google.com,mtklein@google.com
Review URL: https://codereview.chromium.org/1021823003
diff --git a/gyp/effects.gyp b/gyp/effects.gyp
index 63b8636..6cc790c 100644
--- a/gyp/effects.gyp
+++ b/gyp/effects.gyp
@@ -9,7 +9,7 @@
'dependencies': [
'core.gyp:*',
'images.gyp:*',
- 'utils.gyp:*',
+ 'utils.gyp:utils',
],
'includes': [
'effects.gypi',
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index c69a486..8569b5a 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -85,7 +85,7 @@
'standalone_static_library': 1,
'dependencies': [
'core.gyp:*',
- 'utils.gyp:*',
+ 'utils.gyp:utils',
'etc1.gyp:libetc1',
'ktx.gyp:libSkKTX',
],
diff --git a/gyp/utils.gyp b/gyp/utils.gyp
index 19816f8..d3d14d8 100644
--- a/gyp/utils.gyp
+++ b/gyp/utils.gyp
@@ -124,5 +124,23 @@
],
},
},
+ {
+ 'target_name': 'android_utils',
+ 'product_name': 'skia_android_utils',
+ 'type': 'static_library',
+ 'standalone_static_library': 1,
+ 'dependencies': [
+ 'core.gyp:*',
+ ],
+ 'sources': [
+ '../src/utils/android/SkAndroidSDKCanvas.h',
+ '../src/utils/android/SkAndroidSDKCanvas.cpp',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '../src/utils/android',
+ ],
+ },
+ },
],
}