blob: a4bdcd00ff341b937f481d18011401e2e2a698d2 [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',
5 'type': 'static_library',
bungeman@google.com9df621d2011-06-23 21:43:52 +00006 'dependencies': [
epoger@google.com9fee7ad2012-03-26 18:29:26 +00007 'libjpeg.gyp:libjpeg',
bungeman@google.com9df621d2011-06-23 21:43:52 +00008 'utils.gyp:utils',
9 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000010 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000011 '../include/config',
12 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000013 '../include/images',
14 ],
15 'sources': [
16 '../include/images/SkFlipPixelRef.h',
17 '../include/images/SkImageDecoder.h',
18 '../include/images/SkImageEncoder.h',
19 '../include/images/SkImageRef.h',
20 '../include/images/SkImageRef_GlobalPool.h',
21 '../include/images/SkJpegUtility.h',
22 '../include/images/SkMovie.h',
23 '../include/images/SkPageFlipper.h',
24
25 '../src/images/bmpdecoderhelper.cpp',
26 '../src/images/bmpdecoderhelper.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000027 '../src/images/SkFDStream.cpp',
28 '../src/images/SkFlipPixelRef.cpp',
29 '../src/images/SkImageDecoder.cpp',
30 '../src/images/SkImageDecoder_Factory.cpp',
31 '../src/images/SkImageDecoder_libbmp.cpp',
32 '../src/images/SkImageDecoder_libgif.cpp',
33 '../src/images/SkImageDecoder_libico.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../src/images/SkImageDecoder_wbmp.cpp',
36 '../src/images/SkImageEncoder.cpp',
37 '../src/images/SkImageEncoder_Factory.cpp',
38 '../src/images/SkImageRef.cpp',
39 '../src/images/SkImageRefPool.cpp',
40 '../src/images/SkImageRefPool.h',
41 '../src/images/SkImageRef_GlobalPool.cpp',
42 '../src/images/SkJpegUtility.cpp',
43 '../src/images/SkMovie.cpp',
44 '../src/images/SkMovie_gif.cpp',
45 '../src/images/SkPageFlipper.cpp',
46 '../src/images/SkScaledBitmapSampler.cpp',
47 '../src/images/SkScaledBitmapSampler.h',
bungeman@google.com242bb892011-06-22 20:42:34 +000048
49 '../src/ports/SkImageDecoder_CG.cpp',
50 '../src/ports/SkImageDecoder_WIC.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 ],
52 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000053 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000054 'sources!': [
robertphillips@google.com0a89c902012-03-20 15:13:04 +000055 '../include/images/SkJpegUtility.h',
56
epoger@google.comae85aea2011-05-31 13:50:51 +000057 '../src/images/SkFDStream.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000058 '../src/images/SkImageDecoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000059 '../src/images/SkImageDecoder_libgif.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000060 '../src/images/SkImageDecoder_libpng.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000061 '../src/images/SkImageEncoder_Factory.cpp',
robertphillips@google.com0a89c902012-03-20 15:13:04 +000062 '../src/images/SkJpegUtility.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000063 '../src/images/SkMovie_gif.cpp',
64 ],
bsalomon@google.com897e66c2011-11-21 21:04:06 +000065 'link_settings': {
66 'libraries': [
67 'windowscodecs.lib',
68 ],
69 },
epoger@google.com8846cb22011-07-01 20:20:07 +000070 },{ #else if skia_os != win
bungeman@google.com242bb892011-06-22 20:42:34 +000071 'sources!': [
72 '../src/ports/SkImageDecoder_WIC.cpp',
73 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000074 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000075 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000076 'sources!': [
robertphillips@google.com0a89c902012-03-20 15:13:04 +000077 '../include/images/SkJpegUtility.h',
78
reed@google.comaf9d9c22011-06-15 17:33:29 +000079 '../src/images/SkImageDecoder_Factory.cpp',
80 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000081 '../src/images/SkImageDecoder_libgif.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000082 '../src/images/SkImageEncoder_Factory.cpp',
robertphillips@google.com0a89c902012-03-20 15:13:04 +000083 '../src/images/SkJpegUtility.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000084 '../src/images/SkMovie_gif.cpp',
85 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000086 },{ #else if skia_os != mac
bungeman@google.com242bb892011-06-22 20:42:34 +000087 'sources!': [
88 '../src/ports/SkImageDecoder_CG.cpp',
89 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000090 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000091 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +000092 'sources!': [
robertphillips@google.com0a89c902012-03-20 15:13:04 +000093 '../include/images/SkJpegUtility.h',
94
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../src/images/SkImageDecoder_libgif.cpp',
robertphillips@google.com0a89c902012-03-20 15:13:04 +000096 '../src/images/SkJpegUtility.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 '../src/images/SkMovie_gif.cpp',
98 ],
epoger@google.com38a91342011-06-15 13:45:10 +000099 # libpng stuff:
100 # Any targets that depend on this target should link in libpng and
101 # our code that calls it.
102 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000103 'link_settings': {
senorblanco@chromium.org10a94652011-06-20 19:56:53 +0000104 'sources': [
105 '../src/images/SkImageDecoder_libpng.cpp',
106 ],
epoger@google.comb1b721a2011-06-16 12:27:14 +0000107 'libraries': [
108 '-lpng',
109 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000110 },
epoger@google.com38a91342011-06-15 13:45:10 +0000111 # end libpng stuff
epoger@google.comae85aea2011-05-31 13:50:51 +0000112 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000113 [ 'skia_os == "android"', {
114 'sources!': [
robertphillips@google.com0a89c902012-03-20 15:13:04 +0000115 '../src/images/SkJpegUtility.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000116 ],
117 'dependencies': [
118 'android_system.gyp:gif',
119 'android_system.gyp:png',
120 ],
djsollen@google.com85c1c6e2012-02-24 19:45:16 +0000121 'defines': [
122 'SK_ENABLE_LIBPNG',
123 ],
djsollen@google.com58629292011-11-03 13:08:29 +0000124 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000125 ],
126 'direct_dependent_settings': {
127 'include_dirs': [
128 '../include/images',
129 ],
130 },
131 },
132 ],
133}
134
135# Local Variables:
136# tab-width:2
137# indent-tabs-mode:nil
138# End:
139# vim: set expandtab tabstop=2 shiftwidth=2: