blob: 7b1636e02b9845cdb1e8ab905e78d19039823ee8 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
msarett6d0e7b22015-03-30 07:52:52 -07005
scroggo@google.com73e4d572013-05-20 22:15:32 +00006# GYP file for images project.
scroggo@google.com4c6adf92013-04-17 21:07:55 +00007{
epoger@google.comae85aea2011-05-31 13:50:51 +00008 'targets': [
9 {
10 'target_name': 'images',
borenet@google.comefb1d772012-10-10 19:45:51 +000011 'product_name': 'skia_images',
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000013 'standalone_static_library': 1,
bungeman@google.com9df621d2011-06-23 21:43:52 +000014 'dependencies': [
bungeman@google.comb8f36552013-07-22 14:39:45 +000015 'core.gyp:*',
msarett6d0e7b22015-03-30 07:52:52 -070016 'giflib.gyp:giflib',
msarettb747b902015-11-06 11:15:49 -080017 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector',
robertphillips@google.com8cf81e02014-05-22 18:40:29 +000018 'etc1.gyp:libetc1',
krajcevski99ffe242014-06-03 13:04:35 -070019 'ktx.gyp:libSkKTX',
msarett36931c22016-08-16 15:11:24 -070020 'libpng.gyp:libpng',
commit-bot@chromium.orga936e372013-03-14 14:42:18 +000021 'libwebp.gyp:libwebp',
bungeman@google.com9df621d2011-06-23 21:43:52 +000022 'utils.gyp:utils',
23 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000024 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +000025 '../include/images',
mtkleincd1f2da2015-07-28 08:55:14 -070026 '../include/private',
halcanary@google.comad04eb42013-11-21 15:32:08 +000027 '../src/lazy',
scroggo@google.com39edf4c2013-04-25 17:33:51 +000028 # for access to SkErrorInternals.h
29 '../src/core/',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000030 # for access to SkImagePriv.h
31 '../src/image/',
epoger@google.comae85aea2011-05-31 13:50:51 +000032 ],
33 'sources': [
scroggo@google.com7def5e12013-05-31 14:00:10 +000034 '../include/images/SkForceLinking.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../include/images/SkMovie.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036
msarett910f7ec2016-03-24 04:45:39 -070037 '../src/images/SkForceLinking.cpp',
msarettc1d03122016-03-25 08:58:55 -070038 '../src/images/SkMovie_FactoryDefault.cpp',
msarett910f7ec2016-03-24 04:45:39 -070039
msarette8597a42016-03-24 10:41:47 -070040 # If encoders are added/removed to/from (all/individual)
scroggo@google.com7def5e12013-05-31 14:00:10 +000041 # platform(s), be sure to update SkForceLinking.cpp
scroggo@google.comc4ebdb02013-05-01 21:17:27 +000042 # so the right decoders will be forced to link.
scroggo@google.comd4adfa32014-02-05 16:35:12 +000043
msarettc1d03122016-03-25 08:58:55 -070044 '../src/images/SkKTXImageEncoder.cpp',
45 '../src/images/SkWEBPImageEncoder.cpp',
46 '../src/images/SkJPEGImageEncoder.cpp',
47 '../src/images/SkPNGImageEncoder.cpp',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000048
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/images/SkImageEncoder.cpp',
50 '../src/images/SkImageEncoder_Factory.cpp',
msarettc1d03122016-03-25 08:58:55 -070051 '../src/images/SkJPEGWriteUtility.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../src/images/SkMovie.cpp',
msarettc1d03122016-03-25 08:58:55 -070053 '../src/images/SkGIFMovie.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000054
msarettc1d03122016-03-25 08:58:55 -070055 '../src/ports/SkImageEncoder_CG.cpp',
56 '../src/ports/SkImageEncoder_WIC.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000057 ],
58 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000059 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000060 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070061 '../src/images/SkGIFMovie.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 ],
msarett6d0e7b22015-03-30 07:52:52 -070063 'dependencies!': [
64 'giflib.gyp:giflib'
65 ],
bsalomon@google.com897e66c2011-11-21 21:04:06 +000066 'link_settings': {
67 'libraries': [
bungeman@google.com24339aa2013-12-02 19:54:33 +000068 '-lwindowscodecs.lib',
bsalomon@google.com897e66c2011-11-21 21:04:06 +000069 ],
70 },
epoger@google.com8846cb22011-07-01 20:20:07 +000071 },{ #else if skia_os != win
bungeman@google.com242bb892011-06-22 20:42:34 +000072 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070073 '../src/ports/SkImageEncoder_WIC.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000074 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000075 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +000076 [ 'skia_os in ["mac", "ios"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +000077 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070078 '../src/images/SkGIFMovie.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000079 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000080 },{ #else if skia_os != mac
bungeman@google.com242bb892011-06-22 20:42:34 +000081 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070082 '../src/ports/SkImageEncoder_CG.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000083 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000084 }],
djsollen@google.com58629292011-11-03 13:08:29 +000085 [ 'skia_os == "android"', {
djsollen@google.com528a5562013-02-01 15:57:13 +000086 'include_dirs': [
87 '../src/utils',
djsollen@google.com58629292011-11-03 13:08:29 +000088 ],
msarettb747b902015-11-06 11:15:49 -080089 'dependencies': [
90 'libpng.gyp:libpng',
91 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000092 'conditions': [
msarettb747b902015-11-06 11:15:49 -080093 [ 'skia_android_framework == 1', {
djsollen38e44b02014-08-28 05:41:21 -070094 # The android framework disables these decoders as they are of little use to
95 # Java applications that can't take advantage of the compressed formats.
96 'sources!': [
msarettc1d03122016-03-25 08:58:55 -070097 '../src/images/SkKTXImageEncoder.cpp',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000098 ],
99 }],
djsollen@google.combcc6d7d2013-07-23 15:51:12 +0000100 ],
djsollen@google.com58629292011-11-03 13:08:29 +0000101 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +0000102 [ 'skia_os == "ios"', {
103 'include_dirs': [
104 '../include/utils/mac',
105 ],
106 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000107 ],
108 'direct_dependent_settings': {
109 'include_dirs': [
110 '../include/images',
epoger@google.comae85aea2011-05-31 13:50:51 +0000111 ],
112 },
113 },
114 ],
115}