36931c2b47
Clients that like WIC and CG can still use them. And we can be confident about that, since we now test WIC and CG. Let Skia always use our own encoders by default, so we can do cool, custom things on all platforms. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2250683003 Review-Url: https://codereview.chromium.org/2250683003
116 lines
3.2 KiB
Python
116 lines
3.2 KiB
Python
# Copyright 2015 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# GYP file for images project.
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'images',
|
|
'product_name': 'skia_images',
|
|
'type': 'static_library',
|
|
'standalone_static_library': 1,
|
|
'dependencies': [
|
|
'core.gyp:*',
|
|
'giflib.gyp:giflib',
|
|
'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
|
|
'etc1.gyp:libetc1',
|
|
'ktx.gyp:libSkKTX',
|
|
'libpng.gyp:libpng',
|
|
'libwebp.gyp:libwebp',
|
|
'utils.gyp:utils',
|
|
],
|
|
'include_dirs': [
|
|
'../include/images',
|
|
'../include/private',
|
|
'../src/lazy',
|
|
# for access to SkErrorInternals.h
|
|
'../src/core/',
|
|
# for access to SkImagePriv.h
|
|
'../src/image/',
|
|
],
|
|
'sources': [
|
|
'../include/images/SkForceLinking.h',
|
|
'../include/images/SkMovie.h',
|
|
|
|
'../src/images/SkForceLinking.cpp',
|
|
'../src/images/SkMovie_FactoryDefault.cpp',
|
|
|
|
# If encoders are added/removed to/from (all/individual)
|
|
# platform(s), be sure to update SkForceLinking.cpp
|
|
# so the right decoders will be forced to link.
|
|
|
|
'../src/images/SkKTXImageEncoder.cpp',
|
|
'../src/images/SkWEBPImageEncoder.cpp',
|
|
'../src/images/SkJPEGImageEncoder.cpp',
|
|
'../src/images/SkPNGImageEncoder.cpp',
|
|
|
|
'../src/images/SkImageEncoder.cpp',
|
|
'../src/images/SkImageEncoder_Factory.cpp',
|
|
'../src/images/SkJPEGWriteUtility.cpp',
|
|
'../src/images/SkMovie.cpp',
|
|
'../src/images/SkGIFMovie.cpp',
|
|
|
|
'../src/ports/SkImageEncoder_CG.cpp',
|
|
'../src/ports/SkImageEncoder_WIC.cpp',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_os == "win"', {
|
|
'sources!': [
|
|
'../src/images/SkGIFMovie.cpp',
|
|
],
|
|
'dependencies!': [
|
|
'giflib.gyp:giflib'
|
|
],
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lwindowscodecs.lib',
|
|
],
|
|
},
|
|
},{ #else if skia_os != win
|
|
'sources!': [
|
|
'../src/ports/SkImageEncoder_WIC.cpp',
|
|
],
|
|
}],
|
|
[ 'skia_os in ["mac", "ios"]', {
|
|
'sources!': [
|
|
'../src/images/SkGIFMovie.cpp',
|
|
],
|
|
},{ #else if skia_os != mac
|
|
'sources!': [
|
|
'../src/ports/SkImageEncoder_CG.cpp',
|
|
],
|
|
}],
|
|
[ 'skia_os == "android"', {
|
|
'include_dirs': [
|
|
'../src/utils',
|
|
],
|
|
'dependencies': [
|
|
'libpng.gyp:libpng',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_android_framework == 1', {
|
|
# The android framework disables these decoders as they are of little use to
|
|
# Java applications that can't take advantage of the compressed formats.
|
|
'sources!': [
|
|
'../src/images/SkKTXImageEncoder.cpp',
|
|
],
|
|
}],
|
|
],
|
|
}],
|
|
[ 'skia_os == "ios"', {
|
|
'include_dirs': [
|
|
'../include/utils/mac',
|
|
],
|
|
}],
|
|
],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'../include/images',
|
|
],
|
|
},
|
|
},
|
|
],
|
|
}
|