scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # 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. |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 5 | |
scroggo@google.com | 73e4d57 | 2013-05-20 22:15:32 +0000 | [diff] [blame] | 6 | # GYP file for images project. |
scroggo@google.com | 4c6adf9 | 2013-04-17 21:07:55 +0000 | [diff] [blame] | 7 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'images', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 11 | 'product_name': 'skia_images', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 12 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 13 | 'standalone_static_library': 1, |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 14 | 'dependencies': [ |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 15 | 'core.gyp:*', |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 16 | 'giflib.gyp:giflib', |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 17 | 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
robertphillips@google.com | 8cf81e0 | 2014-05-22 18:40:29 +0000 | [diff] [blame] | 18 | 'etc1.gyp:libetc1', |
krajcevski | 99ffe24 | 2014-06-03 13:04:35 -0700 | [diff] [blame] | 19 | 'ktx.gyp:libSkKTX', |
msarett | 36931c2 | 2016-08-16 15:11:24 -0700 | [diff] [blame] | 20 | 'libpng.gyp:libpng', |
commit-bot@chromium.org | a936e37 | 2013-03-14 14:42:18 +0000 | [diff] [blame] | 21 | 'libwebp.gyp:libwebp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 22 | 'utils.gyp:utils', |
| 23 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 24 | 'include_dirs': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | '../include/images', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 26 | '../include/private', |
halcanary@google.com | ad04eb4 | 2013-11-21 15:32:08 +0000 | [diff] [blame] | 27 | '../src/lazy', |
scroggo@google.com | 39edf4c | 2013-04-25 17:33:51 +0000 | [diff] [blame] | 28 | # for access to SkErrorInternals.h |
| 29 | '../src/core/', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 30 | # for access to SkImagePriv.h |
| 31 | '../src/image/', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 32 | ], |
| 33 | 'sources': [ |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 34 | '../include/images/SkForceLinking.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 35 | '../include/images/SkMovie.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 36 | |
msarett | 910f7ec | 2016-03-24 04:45:39 -0700 | [diff] [blame] | 37 | '../src/images/SkForceLinking.cpp', |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 38 | '../src/images/SkMovie_FactoryDefault.cpp', |
msarett | 910f7ec | 2016-03-24 04:45:39 -0700 | [diff] [blame] | 39 | |
msarett | e8597a4 | 2016-03-24 10:41:47 -0700 | [diff] [blame] | 40 | # If encoders are added/removed to/from (all/individual) |
scroggo@google.com | 7def5e1 | 2013-05-31 14:00:10 +0000 | [diff] [blame] | 41 | # platform(s), be sure to update SkForceLinking.cpp |
scroggo@google.com | c4ebdb0 | 2013-05-01 21:17:27 +0000 | [diff] [blame] | 42 | # so the right decoders will be forced to link. |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 43 | |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 44 | '../src/images/SkKTXImageEncoder.cpp', |
| 45 | '../src/images/SkWEBPImageEncoder.cpp', |
| 46 | '../src/images/SkJPEGImageEncoder.cpp', |
| 47 | '../src/images/SkPNGImageEncoder.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 48 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 49 | '../src/images/SkImageEncoder.cpp', |
| 50 | '../src/images/SkImageEncoder_Factory.cpp', |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 51 | '../src/images/SkJPEGWriteUtility.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 52 | '../src/images/SkMovie.cpp', |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 53 | '../src/images/SkGIFMovie.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 54 | |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 55 | '../src/ports/SkImageEncoder_CG.cpp', |
| 56 | '../src/ports/SkImageEncoder_WIC.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 57 | ], |
| 58 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 59 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 60 | 'sources!': [ |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 61 | '../src/images/SkGIFMovie.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 62 | ], |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 63 | 'dependencies!': [ |
| 64 | 'giflib.gyp:giflib' |
| 65 | ], |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 66 | 'link_settings': { |
| 67 | 'libraries': [ |
bungeman@google.com | 24339aa | 2013-12-02 19:54:33 +0000 | [diff] [blame] | 68 | '-lwindowscodecs.lib', |
bsalomon@google.com | 897e66c | 2011-11-21 21:04:06 +0000 | [diff] [blame] | 69 | ], |
| 70 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 71 | },{ #else if skia_os != win |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 72 | 'sources!': [ |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 73 | '../src/ports/SkImageEncoder_WIC.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 74 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 75 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 76 | [ 'skia_os in ["mac", "ios"]', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 77 | 'sources!': [ |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 78 | '../src/images/SkGIFMovie.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 79 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 80 | },{ #else if skia_os != mac |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 81 | 'sources!': [ |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 82 | '../src/ports/SkImageEncoder_CG.cpp', |
bungeman@google.com | 242bb89 | 2011-06-22 20:42:34 +0000 | [diff] [blame] | 83 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 84 | }], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 85 | [ 'skia_os == "android"', { |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 86 | 'include_dirs': [ |
| 87 | '../src/utils', |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 88 | ], |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 89 | 'dependencies': [ |
| 90 | 'libpng.gyp:libpng', |
| 91 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 92 | 'conditions': [ |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 93 | [ 'skia_android_framework == 1', { |
djsollen | 38e44b0 | 2014-08-28 05:41:21 -0700 | [diff] [blame] | 94 | # 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!': [ |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 97 | '../src/images/SkKTXImageEncoder.cpp', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 98 | ], |
| 99 | }], |
djsollen@google.com | bcc6d7d | 2013-07-23 15:51:12 +0000 | [diff] [blame] | 100 | ], |
djsollen@google.com | 5862929 | 2011-11-03 13:08:29 +0000 | [diff] [blame] | 101 | }], |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 102 | [ 'skia_os == "ios"', { |
| 103 | 'include_dirs': [ |
| 104 | '../include/utils/mac', |
| 105 | ], |
| 106 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 107 | ], |
| 108 | 'direct_dependent_settings': { |
| 109 | 'include_dirs': [ |
| 110 | '../include/images', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 111 | ], |
| 112 | }, |
| 113 | }, |
| 114 | ], |
| 115 | } |