| OLD | NEW |
| 1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 |
| 5 # GYP file for images project. | 6 # GYP file for images project. |
| 6 { | 7 { |
| 7 'targets': [ | 8 'targets': [ |
| 8 { | 9 { |
| 9 'target_name': 'images', | 10 'target_name': 'images', |
| 10 'product_name': 'skia_images', | 11 'product_name': 'skia_images', |
| 11 'type': 'static_library', | 12 'type': 'static_library', |
| 12 'standalone_static_library': 1, | 13 'standalone_static_library': 1, |
| 13 'dependencies': [ | 14 'dependencies': [ |
| 14 'core.gyp:*', | 15 'core.gyp:*', |
| 16 'giflib.gyp:giflib', |
| 15 'libjpeg.gyp:*', | 17 'libjpeg.gyp:*', |
| 16 'etc1.gyp:libetc1', | 18 'etc1.gyp:libetc1', |
| 17 'ktx.gyp:libSkKTX', | 19 'ktx.gyp:libSkKTX', |
| 18 'libwebp.gyp:libwebp', | 20 'libwebp.gyp:libwebp', |
| 19 'utils.gyp:utils', | 21 'utils.gyp:utils', |
| 20 ], | 22 ], |
| 21 'include_dirs': [ | 23 'include_dirs': [ |
| 22 '../include/images', | 24 '../include/images', |
| 23 '../src/lazy', | 25 '../src/lazy', |
| 24 # for access to SkErrorInternals.h | 26 # for access to SkErrorInternals.h |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 '../src/ports/SkImageDecoder_WIC.cpp', | 82 '../src/ports/SkImageDecoder_WIC.cpp', |
| 81 ], | 83 ], |
| 82 'conditions': [ | 84 'conditions': [ |
| 83 [ 'skia_os == "win"', { | 85 [ 'skia_os == "win"', { |
| 84 'sources!': [ | 86 'sources!': [ |
| 85 '../src/images/SkImageDecoder_FactoryDefault.cpp', | 87 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 86 '../src/images/SkImageDecoder_libgif.cpp', | 88 '../src/images/SkImageDecoder_libgif.cpp', |
| 87 '../src/images/SkImageDecoder_libpng.cpp', | 89 '../src/images/SkImageDecoder_libpng.cpp', |
| 88 '../src/images/SkMovie_gif.cpp', | 90 '../src/images/SkMovie_gif.cpp', |
| 89 ], | 91 ], |
| 92 'dependencies!': [ |
| 93 'giflib.gyp:giflib' |
| 94 ], |
| 90 'link_settings': { | 95 'link_settings': { |
| 91 'libraries': [ | 96 'libraries': [ |
| 92 '-lwindowscodecs.lib', | 97 '-lwindowscodecs.lib', |
| 93 ], | 98 ], |
| 94 }, | 99 }, |
| 95 },{ #else if skia_os != win | 100 },{ #else if skia_os != win |
| 96 'sources!': [ | 101 'sources!': [ |
| 97 '../src/ports/SkImageDecoder_WIC.cpp', | 102 '../src/ports/SkImageDecoder_WIC.cpp', |
| 98 ], | 103 ], |
| 99 }], | 104 }], |
| 100 [ 'skia_os in ["mac", "ios"]', { | 105 [ 'skia_os in ["mac", "ios"]', { |
| 101 'sources!': [ | 106 'sources!': [ |
| 102 '../src/images/SkImageDecoder_FactoryDefault.cpp', | 107 '../src/images/SkImageDecoder_FactoryDefault.cpp', |
| 103 '../src/images/SkImageDecoder_libpng.cpp', | 108 '../src/images/SkImageDecoder_libpng.cpp', |
| 104 '../src/images/SkImageDecoder_libgif.cpp', | 109 '../src/images/SkImageDecoder_libgif.cpp', |
| 105 '../src/images/SkMovie_gif.cpp', | 110 '../src/images/SkMovie_gif.cpp', |
| 106 ], | 111 ], |
| 107 },{ #else if skia_os != mac | 112 },{ #else if skia_os != mac |
| 108 'sources!': [ | 113 'sources!': [ |
| 109 '../src/ports/SkImageDecoder_CG.cpp', | 114 '../src/ports/SkImageDecoder_CG.cpp', |
| 110 ], | 115 ], |
| 111 }], | 116 }], |
| 112 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | 117 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
| 113 'export_dependent_settings': [ | 118 'export_dependent_settings': [ |
| 114 'libpng.gyp:libpng', | 119 'libpng.gyp:libpng', |
| 115 'giflib.gyp:giflib' | |
| 116 ], | 120 ], |
| 117 'dependencies': [ | 121 'dependencies': [ |
| 118 'libpng.gyp:libpng', | 122 'libpng.gyp:libpng', |
| 119 'giflib.gyp:giflib' | |
| 120 ], | 123 ], |
| 121 # end libpng/libgif stuff | 124 # end libpng stuff |
| 122 }], | 125 }], |
| 123 # FIXME: NaCl should be just like linux, etc, above, but it currently is
separated out | 126 # FIXME: NaCl should be just like linux, etc, above, but it currently is
separated out |
| 124 # to remove gif. Once gif is supported by naclports, this can be merged
into the above | 127 # to remove gif. Once gif is supported by naclports, this can be merged
into the above |
| 125 # condition. | 128 # condition. |
| 126 [ 'skia_os == "nacl"', { | 129 [ 'skia_os == "nacl"', { |
| 127 'sources!': [ | 130 'sources!': [ |
| 128 '../src/images/SkImageDecoder_libgif.cpp', | 131 '../src/images/SkImageDecoder_libgif.cpp', |
| 129 '../src/images/SkMovie_gif.cpp', | 132 '../src/images/SkMovie_gif.cpp', |
| 130 ], | 133 ], |
| 134 'dependencies!': [ |
| 135 'giflib.gyp:giflib' |
| 136 ], |
| 131 }], | 137 }], |
| 132 [ 'skia_os == "android"', { | 138 [ 'skia_os == "android"', { |
| 133 'include_dirs': [ | 139 'include_dirs': [ |
| 134 '../src/utils', | 140 '../src/utils', |
| 135 ], | 141 ], |
| 136 'dependencies': [ | 142 'dependencies': [ |
| 137 'android_deps.gyp:gif', | |
| 138 'android_deps.gyp:png', | 143 'android_deps.gyp:png', |
| 139 ], | 144 ], |
| 140 'conditions': [ | 145 'conditions': [ |
| 141 [ 'skia_android_framework == 0', { | 146 [ 'skia_android_framework == 0', { |
| 142 'export_dependent_settings': [ | 147 'export_dependent_settings': [ |
| 143 'android_deps.gyp:png', | 148 'android_deps.gyp:png', |
| 144 'libjpeg.gyp:*' | 149 'libjpeg.gyp:*' |
| 145 ], | 150 ], |
| 146 }, { | 151 }, { |
| 147 # The android framework disables these decoders as they are of lit
tle use to | 152 # The android framework disables these decoders as they are of lit
tle use to |
| 148 # Java applications that can't take advantage of the compressed fo
rmats. | 153 # Java applications that can't take advantage of the compressed fo
rmats. |
| 149 'sources!': [ | 154 'sources!': [ |
| 150 '../src/images/SkImageDecoder_pkm.cpp', | 155 '../src/images/SkImageDecoder_pkm.cpp', |
| 151 '../src/images/SkImageDecoder_ktx.cpp', | 156 '../src/images/SkImageDecoder_ktx.cpp', |
| 152 '../src/images/SkImageDecoder_astc.cpp', | 157 '../src/images/SkImageDecoder_astc.cpp', |
| 153 ], | 158 ], |
| 154 }], | 159 }], |
| 155 ], | 160 ], |
| 156 }], | 161 }], |
| 157 [ 'skia_os == "chromeos"', { | 162 [ 'skia_os == "chromeos"', { |
| 158 'dependencies': [ | 163 'dependencies': [ |
| 159 'chromeos_deps.gyp:gif', | 164 'libpng.gyp:libpng', |
| 160 'libpng.gyp:libpng', | |
| 161 ], | 165 ], |
| 162 }], | 166 }], |
| 163 [ 'skia_os == "ios"', { | 167 [ 'skia_os == "ios"', { |
| 164 'include_dirs': [ | 168 'include_dirs': [ |
| 165 '../include/utils/mac', | 169 '../include/utils/mac', |
| 166 ], | 170 ], |
| 167 }], | 171 }], |
| 168 ], | 172 ], |
| 169 'direct_dependent_settings': { | 173 'direct_dependent_settings': { |
| 170 'include_dirs': [ | 174 'include_dirs': [ |
| 171 '../include/images', | 175 '../include/images', |
| 172 ], | 176 ], |
| 173 }, | 177 }, |
| 174 }, | 178 }, |
| 175 ], | 179 ], |
| 176 } | 180 } |
| OLD | NEW |