Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: gyp/images.gyp

Issue 1406153015: Remove dependencies on Android's forked decoder libraries (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed images.gyp Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gyp/images.gyp
diff --git a/gyp/images.gyp b/gyp/images.gyp
index 3c46ec1a8f0bf659bedc21feea5f1ab9278a5ed9..e1f925d4cb72006d2d223b5711111c6ff8315831 100644
--- a/gyp/images.gyp
+++ b/gyp/images.gyp
@@ -14,7 +14,6 @@
'dependencies': [
'core.gyp:*',
'giflib.gyp:giflib',
- 'libjpeg.gyp:*',
'etc1.gyp:libetc1',
'ktx.gyp:libSkKTX',
'libwebp.gyp:libwebp',
@@ -83,6 +82,14 @@
'../src/ports/SkImageDecoder_WIC.cpp',
],
'conditions': [
+ [ 'skia_android_framework == 0', {
msarett 2015/11/05 16:14:04 It would be cleaner to include this above and then
scroggo 2015/11/05 18:35:53 Yeah, this is an annoying feature of gyp itself -
+ 'dependencies': [
+ 'libjpeg-turbo.gyp:libjpeg-turbo',
+ ],
+ 'export_dependent_settings': [
+ 'libjpeg-turbo.gyp:libjpeg-turbo',
+ ],
+ }],
[ 'skia_os == "win"', {
'sources!': [
'../src/images/SkImageDecoder_FactoryDefault.cpp',
@@ -128,9 +135,6 @@
'include_dirs': [
'../src/utils',
],
- 'dependencies': [
- 'android_deps.gyp:png',
- ],
'cflags' : [
# SkImageDecoder_libpng includes png.h.
# In the version of libpng that we use on Android (1.2.46),
@@ -140,9 +144,11 @@
],
'conditions': [
[ 'skia_android_framework == 0', {
+ 'dependencies': [
+ 'libpng.gyp:libpng',
scroggo 2015/11/05 18:35:53 I'm confused: images.gyp seems a lot more complica
msarett 2015/11/05 22:13:25 You're right we can simplify this.
+ ],
'export_dependent_settings': [
- 'android_deps.gyp:png',
- 'libjpeg.gyp:*'
+ 'libpng.gyp:libpng',
],
}, {
# The android framework disables these decoders as they are of little use to
@@ -152,6 +158,10 @@
'../src/images/SkImageDecoder_ktx.cpp',
'../src/images/SkImageDecoder_astc.cpp',
],
+ 'dependencies': [
+ 'android_deps.gyp:libjpeg-turbo',
+ 'android_deps.gyp:png',
+ ],
}],
],
}],

Powered by Google App Engine
This is Rietveld 408576698