| OLD | NEW |
| 1 # GYP file for images project. | 1 # GYP file for images project. |
| 2 { | 2 { |
| 3 'targets': [ | 3 'targets': [ |
| 4 { | 4 { |
| 5 'target_name': 'images', | 5 'target_name': 'images', |
| 6 'product_name': 'skia_images', | 6 'product_name': 'skia_images', |
| 7 'type': 'static_library', | 7 'type': 'static_library', |
| 8 'standalone_static_library': 1, | 8 'standalone_static_library': 1, |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 'core.gyp:*', | 10 'core.gyp:*', |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 '../src/images/SkImageDecoder_libpng.cpp', | 112 '../src/images/SkImageDecoder_libpng.cpp', |
| 113 '../src/images/SkImageDecoder_libgif.cpp', | 113 '../src/images/SkImageDecoder_libgif.cpp', |
| 114 '../src/images/SkMovie_gif.cpp', | 114 '../src/images/SkMovie_gif.cpp', |
| 115 ], | 115 ], |
| 116 },{ #else if skia_os != mac | 116 },{ #else if skia_os != mac |
| 117 'sources!': [ | 117 'sources!': [ |
| 118 '../src/ports/SkImageDecoder_CG.cpp', | 118 '../src/ports/SkImageDecoder_CG.cpp', |
| 119 ], | 119 ], |
| 120 }], | 120 }], |
| 121 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | 121 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 122 # Any targets that depend on this target should link in libpng, libgif
, and | 122 'export_dependent_settings': [ |
| 123 # our code that calls it. | 123 'libpng.gyp:libpng', |
| 124 # See http://code.google.com/p/gyp/wiki/InputFormatReference#Dependent
_Settings | 124 'giflib.gyp:giflib' |
| 125 'link_settings': { | 125 ], |
| 126 'libraries': [ | 126 'dependencies': [ |
| 127 '-lgif', | 127 'libpng.gyp:libpng', |
| 128 '-lpng', | 128 'giflib.gyp:giflib' |
| 129 '-lz', | 129 ], |
| 130 ], | |
| 131 }, | |
| 132 # end libpng/libgif stuff | 130 # end libpng/libgif stuff |
| 133 }], | 131 }], |
| 134 # FIXME: NaCl should be just like linux, etc, above, but it currently is
separated out | 132 # FIXME: NaCl should be just like linux, etc, above, but it currently is
separated out |
| 135 # to remove gif. Once gif is supported by naclports, this can be merged
into the above | 133 # to remove gif. Once gif is supported by naclports, this can be merged
into the above |
| 136 # condition. | 134 # condition. |
| 137 [ 'skia_os == "nacl"', { | 135 [ 'skia_os == "nacl"', { |
| 138 'sources!': [ | 136 'sources!': [ |
| 139 '../src/images/SkImageDecoder_libgif.cpp', | 137 '../src/images/SkImageDecoder_libgif.cpp', |
| 140 '../src/images/SkMovie_gif.cpp', | 138 '../src/images/SkMovie_gif.cpp', |
| 141 ], | 139 ], |
| 142 'link_settings': { | |
| 143 'libraries': [ | |
| 144 '-lpng', | |
| 145 '-lz', | |
| 146 ], | |
| 147 }, | |
| 148 }], | 140 }], |
| 149 [ 'skia_os == "android"', { | 141 [ 'skia_os == "android"', { |
| 150 'include_dirs': [ | 142 'include_dirs': [ |
| 151 '../src/utils', | 143 '../src/utils', |
| 152 ], | 144 ], |
| 153 'dependencies': [ | 145 'dependencies': [ |
| 154 'android_deps.gyp:gif', | 146 'android_deps.gyp:gif', |
| 155 'android_deps.gyp:png', | 147 'android_deps.gyp:png', |
| 156 ], | 148 ], |
| 157 'conditions': [ | 149 'conditions': [ |
| 158 [ 'skia_android_framework == 0', { | 150 [ 'skia_android_framework == 0', { |
| 159 'export_dependent_settings': [ | 151 'export_dependent_settings': [ |
| 160 'android_deps.gyp:png' | 152 'android_deps.gyp:png' |
| 161 ], | 153 ], |
| 162 }], | 154 }], |
| 163 ], | 155 ], |
| 164 },{ #else if skia_os != android | 156 },{ #else if skia_os != android |
| 165 'sources!': [ | 157 'sources!': [ |
| 166 '../src/images/SkImageRef_ashmem.h', | 158 '../src/images/SkImageRef_ashmem.h', |
| 167 '../src/images/SkImageRef_ashmem.cpp', | 159 '../src/images/SkImageRef_ashmem.cpp', |
| 168 ], | 160 ], |
| 169 }], | 161 }], |
| 170 [ 'skia_os == "chromeos"', { | 162 [ 'skia_os == "chromeos"', { |
| 171 'dependencies': [ | 163 'dependencies': [ |
| 172 'chromeos_deps.gyp:gif', | 164 'chromeos_deps.gyp:gif', |
| 173 ], | 165 ], |
| 174 'link_settings': { | |
| 175 'libraries': [ | |
| 176 '-lpng', | |
| 177 ], | |
| 178 }, | |
| 179 }], | 166 }], |
| 180 [ 'skia_os == "ios"', { | 167 [ 'skia_os == "ios"', { |
| 181 'include_dirs': [ | 168 'include_dirs': [ |
| 182 '../include/utils/mac', | 169 '../include/utils/mac', |
| 183 ], | 170 ], |
| 184 }], | 171 }], |
| 185 ], | 172 ], |
| 186 'direct_dependent_settings': { | 173 'direct_dependent_settings': { |
| 187 'include_dirs': [ | 174 'include_dirs': [ |
| 188 '../include/images', | 175 '../include/images', |
| 189 ], | 176 ], |
| 190 }, | 177 }, |
| 191 }, | 178 }, |
| 192 ], | 179 ], |
| 193 } | 180 } |
| OLD | NEW |