2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2015-03-30 14:52:52 +00:00
|
|
|
|
2013-05-20 22:15:32 +00:00
|
|
|
# GYP file for images project.
|
2013-04-17 21:07:55 +00:00
|
|
|
{
|
2011-05-31 13:50:51 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'images',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_images',
|
2011-05-31 13:50:51 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2011-06-23 21:43:52 +00:00
|
|
|
'dependencies': [
|
2013-07-22 14:39:45 +00:00
|
|
|
'core.gyp:*',
|
2015-03-30 14:52:52 +00:00
|
|
|
'giflib.gyp:giflib',
|
2015-11-06 19:15:49 +00:00
|
|
|
'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
|
2014-05-22 18:40:29 +00:00
|
|
|
'etc1.gyp:libetc1',
|
2014-06-03 20:04:35 +00:00
|
|
|
'ktx.gyp:libSkKTX',
|
2016-08-16 22:11:24 +00:00
|
|
|
'libpng.gyp:libpng',
|
2013-03-14 14:42:18 +00:00
|
|
|
'libwebp.gyp:libwebp',
|
2011-06-23 21:43:52 +00:00
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'../include/images',
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2013-11-21 15:32:08 +00:00
|
|
|
'../src/lazy',
|
2013-04-25 17:33:51 +00:00
|
|
|
# for access to SkErrorInternals.h
|
|
|
|
'../src/core/',
|
2013-02-22 21:38:35 +00:00
|
|
|
# for access to SkImagePriv.h
|
|
|
|
'../src/image/',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2013-05-31 14:00:10 +00:00
|
|
|
'../include/images/SkForceLinking.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/images/SkMovie.h',
|
|
|
|
|
2013-05-31 14:00:10 +00:00
|
|
|
'../src/images/SkForceLinking.cpp',
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkMovie_FactoryDefault.cpp',
|
2014-02-05 16:35:12 +00:00
|
|
|
|
2016-03-24 17:41:47 +00:00
|
|
|
# If encoders are added/removed to/from (all/individual)
|
2013-05-31 14:00:10 +00:00
|
|
|
# platform(s), be sure to update SkForceLinking.cpp
|
2013-05-01 21:17:27 +00:00
|
|
|
# so the right decoders will be forced to link.
|
2014-02-05 16:35:12 +00:00
|
|
|
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkKTXImageEncoder.cpp',
|
|
|
|
'../src/images/SkWEBPImageEncoder.cpp',
|
|
|
|
'../src/images/SkJPEGImageEncoder.cpp',
|
|
|
|
'../src/images/SkPNGImageEncoder.cpp',
|
2014-02-05 16:35:12 +00:00
|
|
|
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/images/SkImageEncoder.cpp',
|
|
|
|
'../src/images/SkImageEncoder_Factory.cpp',
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkJPEGWriteUtility.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/images/SkMovie.cpp',
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkGIFMovie.cpp',
|
2011-06-22 20:42:34 +00:00
|
|
|
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/ports/SkImageEncoder_CG.cpp',
|
|
|
|
'../src/ports/SkImageEncoder_WIC.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkGIFMovie.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2015-03-30 14:52:52 +00:00
|
|
|
'dependencies!': [
|
|
|
|
'giflib.gyp:giflib'
|
|
|
|
],
|
2011-11-21 21:04:06 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
Libraries without '-l' treated as relative paths.
The following have the same effect on Windows:
'msvs_settings': { 'VCLinkerTool': { 'AdditionalDependencies': [ 'windowscodecs.lib', ],},},
'link_settings': {'libraries': ['-lwindowscodecs.lib',],},
But this one is different:
'link_settings': {'libraries': ['windowscodecs.lib',],},
since this last one will attempt to find the library at
third_party\skia\gyp\windowscodecs.lib
or a place like this, instead of looking in the library paths.
This also fixes capitalization of the affected libraries.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/99463002
git-svn-id: http://skia.googlecode.com/svn/trunk@12434 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-02 19:54:33 +00:00
|
|
|
'-lwindowscodecs.lib',
|
2011-11-21 21:04:06 +00:00
|
|
|
],
|
|
|
|
},
|
2011-07-01 20:20:07 +00:00
|
|
|
},{ #else if skia_os != win
|
2011-06-22 20:42:34 +00:00
|
|
|
'sources!': [
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/ports/SkImageEncoder_WIC.cpp',
|
2011-06-22 20:42:34 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
}],
|
2012-09-18 15:41:18 +00:00
|
|
|
[ 'skia_os in ["mac", "ios"]', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkGIFMovie.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2011-07-01 20:20:07 +00:00
|
|
|
},{ #else if skia_os != mac
|
2011-06-22 20:42:34 +00:00
|
|
|
'sources!': [
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/ports/SkImageEncoder_CG.cpp',
|
2011-06-22 20:42:34 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
}],
|
2011-11-03 13:08:29 +00:00
|
|
|
[ 'skia_os == "android"', {
|
2013-02-01 15:57:13 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'../src/utils',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
2015-11-06 19:15:49 +00:00
|
|
|
'dependencies': [
|
|
|
|
'libpng.gyp:libpng',
|
|
|
|
],
|
2014-02-05 16:35:12 +00:00
|
|
|
'conditions': [
|
2015-11-06 19:15:49 +00:00
|
|
|
[ 'skia_android_framework == 1', {
|
2014-08-28 12:41:21 +00:00
|
|
|
# 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!': [
|
2016-03-25 15:58:55 +00:00
|
|
|
'../src/images/SkKTXImageEncoder.cpp',
|
2014-02-05 16:35:12 +00:00
|
|
|
],
|
|
|
|
}],
|
2013-07-23 15:51:12 +00:00
|
|
|
],
|
2011-11-03 13:08:29 +00:00
|
|
|
}],
|
2012-09-18 15:41:18 +00:00
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils/mac',
|
|
|
|
],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/images',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|