| 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 |
| 6 # GYP file for images project. | 6 # GYP file for images project. |
| 7 { | 7 { |
| 8 'targets': [ | 8 'targets': [ |
| 9 { | 9 { |
| 10 'target_name': 'images', | 10 'target_name': 'images', |
| 11 'product_name': 'skia_images', | 11 'product_name': 'skia_images', |
| 12 'type': 'static_library', | 12 'type': 'static_library', |
| 13 'standalone_static_library': 1, | 13 'standalone_static_library': 1, |
| 14 'dependencies': [ | 14 'dependencies': [ |
| 15 'core.gyp:*', | 15 'core.gyp:*', |
| 16 'giflib.gyp:giflib', | 16 'giflib.gyp:giflib', |
| 17 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 17 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 18 'etc1.gyp:libetc1', | 18 'etc1.gyp:libetc1', |
| 19 'ktx.gyp:libSkKTX', | 19 'ktx.gyp:libSkKTX', |
| 20 'libpng.gyp:libpng', |
| 20 'libwebp.gyp:libwebp', | 21 'libwebp.gyp:libwebp', |
| 21 'utils.gyp:utils', | 22 'utils.gyp:utils', |
| 22 ], | 23 ], |
| 23 'include_dirs': [ | 24 'include_dirs': [ |
| 24 '../include/images', | 25 '../include/images', |
| 25 '../include/private', | 26 '../include/private', |
| 26 '../src/lazy', | 27 '../src/lazy', |
| 27 # for access to SkErrorInternals.h | 28 # for access to SkErrorInternals.h |
| 28 '../src/core/', | 29 '../src/core/', |
| 29 # for access to SkImagePriv.h | 30 # for access to SkImagePriv.h |
| (...skipping 20 matching lines...) Expand all Loading... |
| 50 '../src/images/SkJPEGWriteUtility.cpp', | 51 '../src/images/SkJPEGWriteUtility.cpp', |
| 51 '../src/images/SkMovie.cpp', | 52 '../src/images/SkMovie.cpp', |
| 52 '../src/images/SkGIFMovie.cpp', | 53 '../src/images/SkGIFMovie.cpp', |
| 53 | 54 |
| 54 '../src/ports/SkImageEncoder_CG.cpp', | 55 '../src/ports/SkImageEncoder_CG.cpp', |
| 55 '../src/ports/SkImageEncoder_WIC.cpp', | 56 '../src/ports/SkImageEncoder_WIC.cpp', |
| 56 ], | 57 ], |
| 57 'conditions': [ | 58 'conditions': [ |
| 58 [ 'skia_os == "win"', { | 59 [ 'skia_os == "win"', { |
| 59 'sources!': [ | 60 'sources!': [ |
| 60 '../src/images/SkPNGImageEncoder.cpp', | |
| 61 '../src/images/SkGIFMovie.cpp', | 61 '../src/images/SkGIFMovie.cpp', |
| 62 ], | 62 ], |
| 63 'dependencies!': [ | 63 'dependencies!': [ |
| 64 'giflib.gyp:giflib' | 64 'giflib.gyp:giflib' |
| 65 ], | 65 ], |
| 66 'link_settings': { | 66 'link_settings': { |
| 67 'libraries': [ | 67 'libraries': [ |
| 68 '-lwindowscodecs.lib', | 68 '-lwindowscodecs.lib', |
| 69 ], | 69 ], |
| 70 }, | 70 }, |
| 71 },{ #else if skia_os != win | 71 },{ #else if skia_os != win |
| 72 'sources!': [ | 72 'sources!': [ |
| 73 '../src/ports/SkImageEncoder_WIC.cpp', | 73 '../src/ports/SkImageEncoder_WIC.cpp', |
| 74 ], | 74 ], |
| 75 }], | 75 }], |
| 76 [ 'skia_os in ["mac", "ios"]', { | 76 [ 'skia_os in ["mac", "ios"]', { |
| 77 'sources!': [ | 77 'sources!': [ |
| 78 '../src/images/SkPNGImageEncoder.cpp', | |
| 79 '../src/images/SkGIFMovie.cpp', | 78 '../src/images/SkGIFMovie.cpp', |
| 80 ], | 79 ], |
| 81 },{ #else if skia_os != mac | 80 },{ #else if skia_os != mac |
| 82 'sources!': [ | 81 'sources!': [ |
| 83 '../src/ports/SkImageEncoder_CG.cpp', | 82 '../src/ports/SkImageEncoder_CG.cpp', |
| 84 ], | 83 ], |
| 85 }], | 84 }], |
| 86 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { | |
| 87 'dependencies': [ | |
| 88 'libpng.gyp:libpng', | |
| 89 ], | |
| 90 # end libpng stuff | |
| 91 }], | |
| 92 [ 'skia_os == "android"', { | 85 [ 'skia_os == "android"', { |
| 93 'include_dirs': [ | 86 'include_dirs': [ |
| 94 '../src/utils', | 87 '../src/utils', |
| 95 ], | 88 ], |
| 96 'dependencies': [ | 89 'dependencies': [ |
| 97 'libpng.gyp:libpng', | 90 'libpng.gyp:libpng', |
| 98 ], | 91 ], |
| 99 'conditions': [ | 92 'conditions': [ |
| 100 [ 'skia_android_framework == 1', { | 93 [ 'skia_android_framework == 1', { |
| 101 # The android framework disables these decoders as they are of lit
tle use to | 94 # The android framework disables these decoders as they are of lit
tle use to |
| (...skipping 11 matching lines...) Expand all Loading... |
| 113 }], | 106 }], |
| 114 ], | 107 ], |
| 115 'direct_dependent_settings': { | 108 'direct_dependent_settings': { |
| 116 'include_dirs': [ | 109 'include_dirs': [ |
| 117 '../include/images', | 110 '../include/images', |
| 118 ], | 111 ], |
| 119 }, | 112 }, |
| 120 }, | 113 }, |
| 121 ], | 114 ], |
| 122 } | 115 } |
| OLD | NEW |