blob: 1bfd2d30b9caa6803a9fb45f1430da5dc334399e [file] [log] [blame]
bungeman@google.com242bb892011-06-22 20:42:34 +00001{
epoger@google.comae85aea2011-05-31 13:50:51 +00002 'targets': [
3 {
4 'target_name': 'images',
borenet@google.comefb1d772012-10-10 19:45:51 +00005 'product_name': 'skia_images',
epoger@google.comae85aea2011-05-31 13:50:51 +00006 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00007 'standalone_static_library': 1,
bungeman@google.com9df621d2011-06-23 21:43:52 +00008 'dependencies': [
robertphillips@google.com3a4553e2012-04-05 14:52:01 +00009 'libjpeg.gyp:*',
bungeman@google.com9df621d2011-06-23 21:43:52 +000010 'utils.gyp:utils',
11 ],
robertphillips@google.com3a4553e2012-04-05 14:52:01 +000012 'export_dependent_settings': [
13 'libjpeg.gyp:*',
14 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000015 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000016 '../include/config',
17 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 '../include/images',
19 ],
20 'sources': [
scroggo@google.com9f686f32012-11-29 21:05:37 +000021 '../include/images/SkBitmapFactory.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000022 '../include/images/SkImageDecoder.h',
23 '../include/images/SkImageEncoder.h',
24 '../include/images/SkImageRef.h',
25 '../include/images/SkImageRef_GlobalPool.h',
26 '../include/images/SkJpegUtility.h',
27 '../include/images/SkMovie.h',
28 '../include/images/SkPageFlipper.h',
29
30 '../src/images/bmpdecoderhelper.cpp',
31 '../src/images/bmpdecoderhelper.h',
scroggo@google.com9f686f32012-11-29 21:05:37 +000032 '../src/images/SkBitmapFactory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000033 '../src/images/SkFDStream.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../src/images/SkImageDecoder.cpp',
35 '../src/images/SkImageDecoder_Factory.cpp',
robertphillips@google.com3a4553e2012-04-05 14:52:01 +000036 '../src/images/SkImageDecoder_libjpeg.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000037 '../src/images/SkImageDecoder_libbmp.cpp',
38 '../src/images/SkImageDecoder_libgif.cpp',
39 '../src/images/SkImageDecoder_libico.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000041 '../src/images/SkImageDecoder_wbmp.cpp',
42 '../src/images/SkImageEncoder.cpp',
43 '../src/images/SkImageEncoder_Factory.cpp',
44 '../src/images/SkImageRef.cpp',
45 '../src/images/SkImageRefPool.cpp',
46 '../src/images/SkImageRefPool.h',
47 '../src/images/SkImageRef_GlobalPool.cpp',
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000048 '../src/images/SkImages.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000049 '../src/images/SkJpegUtility.cpp',
50 '../src/images/SkMovie.cpp',
51 '../src/images/SkMovie_gif.cpp',
52 '../src/images/SkPageFlipper.cpp',
53 '../src/images/SkScaledBitmapSampler.cpp',
54 '../src/images/SkScaledBitmapSampler.h',
bungeman@google.com242bb892011-06-22 20:42:34 +000055
56 '../src/ports/SkImageDecoder_CG.cpp',
57 '../src/ports/SkImageDecoder_WIC.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000058 ],
59 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000060 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000061 'sources!': [
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../src/images/SkFDStream.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000063 '../src/images/SkImageDecoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/images/SkImageDecoder_libgif.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000065 '../src/images/SkImageDecoder_libpng.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000066 '../src/images/SkImageEncoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000067 '../src/images/SkMovie_gif.cpp',
68 ],
bsalomon@google.com897e66c2011-11-21 21:04:06 +000069 'link_settings': {
70 'libraries': [
71 'windowscodecs.lib',
72 ],
73 },
epoger@google.com8846cb22011-07-01 20:20:07 +000074 },{ #else if skia_os != win
bungeman@google.com242bb892011-06-22 20:42:34 +000075 'sources!': [
76 '../src/ports/SkImageDecoder_WIC.cpp',
77 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000078 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +000079 [ 'skia_os in ["mac", "ios"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +000080 'sources!': [
reed@google.comaf9d9c22011-06-15 17:33:29 +000081 '../src/images/SkImageDecoder_Factory.cpp',
82 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 '../src/images/SkImageDecoder_libgif.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000084 '../src/images/SkImageEncoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 '../src/images/SkMovie_gif.cpp',
86 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000087 },{ #else if skia_os != mac
bungeman@google.com242bb892011-06-22 20:42:34 +000088 'sources!': [
89 '../src/ports/SkImageDecoder_CG.cpp',
90 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000091 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +000092 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +000093 'sources!': [
epoger@google.comae85aea2011-05-31 13:50:51 +000094 '../src/images/SkImageDecoder_libgif.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../src/images/SkMovie_gif.cpp',
96 ],
epoger@google.com38a91342011-06-15 13:45:10 +000097 # libpng stuff:
98 # Any targets that depend on this target should link in libpng and
99 # our code that calls it.
100 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000101 'link_settings': {
senorblanco@chromium.org10a94652011-06-20 19:56:53 +0000102 'sources': [
103 '../src/images/SkImageDecoder_libpng.cpp',
104 ],
epoger@google.comb1b721a2011-06-16 12:27:14 +0000105 'libraries': [
106 '-lpng',
107 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000108 },
epoger@google.com38a91342011-06-15 13:45:10 +0000109 # end libpng stuff
epoger@google.comae85aea2011-05-31 13:50:51 +0000110 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000111 [ 'skia_os == "android"', {
112 'sources!': [
djsollen@google.com58629292011-11-03 13:08:29 +0000113 ],
114 'dependencies': [
borenet@google.comaf730912012-08-09 15:54:28 +0000115 'android_deps.gyp:gif',
116 'android_deps.gyp:png',
djsollen@google.com58629292011-11-03 13:08:29 +0000117 ],
djsollen@google.com85c1c6e2012-02-24 19:45:16 +0000118 'defines': [
119 'SK_ENABLE_LIBPNG',
120 ],
djsollen@google.com58629292011-11-03 13:08:29 +0000121 }],
caryclark@google.com35f5ac92012-09-18 15:41:18 +0000122 [ 'skia_os == "ios"', {
123 'include_dirs': [
124 '../include/utils/mac',
125 ],
126 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000127 ],
128 'direct_dependent_settings': {
129 'include_dirs': [
130 '../include/images',
131 ],
132 },
133 },
134 ],
135}
136
137# Local Variables:
138# tab-width:2
139# indent-tabs-mode:nil
140# End:
141# vim: set expandtab tabstop=2 shiftwidth=2: