blob: b92c9db34d4be87c4aa938b58cc760828a9674b7 [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': [
robertphillips@google.com3a4553e2012-04-05 14:52:01 +00007 'libjpeg.gyp:*',
bungeman@google.com9df621d2011-06-23 21:43:52 +00008 'utils.gyp:utils',
9 ],
robertphillips@google.com3a4553e2012-04-05 14:52:01 +000010 'export_dependent_settings': [
11 'libjpeg.gyp:*',
12 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000013 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000014 '../include/config',
15 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 '../include/images',
17 ],
18 'sources': [
19 '../include/images/SkFlipPixelRef.h',
20 '../include/images/SkImageDecoder.h',
21 '../include/images/SkImageEncoder.h',
22 '../include/images/SkImageRef.h',
23 '../include/images/SkImageRef_GlobalPool.h',
24 '../include/images/SkJpegUtility.h',
25 '../include/images/SkMovie.h',
26 '../include/images/SkPageFlipper.h',
27
28 '../src/images/bmpdecoderhelper.cpp',
29 '../src/images/bmpdecoderhelper.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000030 '../src/images/SkFDStream.cpp',
31 '../src/images/SkFlipPixelRef.cpp',
32 '../src/images/SkImageDecoder.cpp',
33 '../src/images/SkImageDecoder_Factory.cpp',
robertphillips@google.com3a4553e2012-04-05 14:52:01 +000034 '../src/images/SkImageDecoder_libjpeg.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000035 '../src/images/SkImageDecoder_libbmp.cpp',
36 '../src/images/SkImageDecoder_libgif.cpp',
37 '../src/images/SkImageDecoder_libico.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../src/images/SkImageDecoder_wbmp.cpp',
40 '../src/images/SkImageEncoder.cpp',
41 '../src/images/SkImageEncoder_Factory.cpp',
42 '../src/images/SkImageRef.cpp',
43 '../src/images/SkImageRefPool.cpp',
44 '../src/images/SkImageRefPool.h',
45 '../src/images/SkImageRef_GlobalPool.cpp',
46 '../src/images/SkJpegUtility.cpp',
47 '../src/images/SkMovie.cpp',
48 '../src/images/SkMovie_gif.cpp',
49 '../src/images/SkPageFlipper.cpp',
50 '../src/images/SkScaledBitmapSampler.cpp',
51 '../src/images/SkScaledBitmapSampler.h',
bungeman@google.com242bb892011-06-22 20:42:34 +000052
53 '../src/ports/SkImageDecoder_CG.cpp',
54 '../src/ports/SkImageDecoder_WIC.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000055 ],
56 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000057 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000058 'sources!': [
epoger@google.comae85aea2011-05-31 13:50:51 +000059 '../src/images/SkFDStream.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000060 '../src/images/SkImageDecoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000061 '../src/images/SkImageDecoder_libgif.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000062 '../src/images/SkImageDecoder_libpng.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000063 '../src/images/SkImageEncoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/images/SkMovie_gif.cpp',
65 ],
bsalomon@google.com897e66c2011-11-21 21:04:06 +000066 'link_settings': {
67 'libraries': [
68 'windowscodecs.lib',
69 ],
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!': [
73 '../src/ports/SkImageDecoder_WIC.cpp',
74 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000075 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000076 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000077 'sources!': [
reed@google.comaf9d9c22011-06-15 17:33:29 +000078 '../src/images/SkImageDecoder_Factory.cpp',
79 '../src/images/SkImageDecoder_libpng.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000080 '../src/images/SkImageDecoder_libgif.cpp',
bungeman@google.com242bb892011-06-22 20:42:34 +000081 '../src/images/SkImageEncoder_Factory.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000082 '../src/images/SkMovie_gif.cpp',
83 ],
epoger@google.com8846cb22011-07-01 20:20:07 +000084 },{ #else if skia_os != mac
bungeman@google.com242bb892011-06-22 20:42:34 +000085 'sources!': [
86 '../src/ports/SkImageDecoder_CG.cpp',
87 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000088 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000089 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
epoger@google.comae85aea2011-05-31 13:50:51 +000090 'sources!': [
epoger@google.comae85aea2011-05-31 13:50:51 +000091 '../src/images/SkImageDecoder_libgif.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000092 '../src/images/SkMovie_gif.cpp',
93 ],
epoger@google.com38a91342011-06-15 13:45:10 +000094 # libpng stuff:
95 # Any targets that depend on this target should link in libpng and
96 # our code that calls it.
97 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent_Settings
epoger@google.comccdbd2c2011-06-02 14:38:23 +000098 'link_settings': {
senorblanco@chromium.org10a94652011-06-20 19:56:53 +000099 'sources': [
100 '../src/images/SkImageDecoder_libpng.cpp',
101 ],
epoger@google.comb1b721a2011-06-16 12:27:14 +0000102 'libraries': [
103 '-lpng',
104 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000105 },
epoger@google.com38a91342011-06-15 13:45:10 +0000106 # end libpng stuff
epoger@google.comae85aea2011-05-31 13:50:51 +0000107 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000108 [ 'skia_os == "android"', {
109 'sources!': [
djsollen@google.com58629292011-11-03 13:08:29 +0000110 ],
111 'dependencies': [
112 'android_system.gyp:gif',
113 'android_system.gyp:png',
114 ],
djsollen@google.com85c1c6e2012-02-24 19:45:16 +0000115 'defines': [
116 'SK_ENABLE_LIBPNG',
117 ],
djsollen@google.com58629292011-11-03 13:08:29 +0000118 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 ],
120 'direct_dependent_settings': {
121 'include_dirs': [
122 '../include/images',
123 ],
124 },
125 },
126 ],
127}
128
129# Local Variables:
130# tab-width:2
131# indent-tabs-mode:nil
132# End:
133# vim: set expandtab tabstop=2 shiftwidth=2: