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 # Copyright 2015 Google Inc. | 5 # Copyright 2015 Google Inc. |
6 # | 6 # |
7 # Use of this source code is governed by a BSD-style license that can be | 7 # Use of this source code is governed by a BSD-style license that can be |
8 # found in the LICENSE file. | 8 # found in the LICENSE file. |
9 | 9 |
10 # GYP file for codec project. | 10 # GYP file for codec project. |
11 { | 11 { |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'codec', | 14 'target_name': 'codec', |
15 'product_name': 'skia_codec', | 15 'product_name': 'skia_codec', |
16 'type': 'static_library', | 16 'type': 'static_library', |
17 'standalone_static_library': 1, | 17 'standalone_static_library': 1, |
18 'dependencies': [ | 18 'dependencies': [ |
19 'core.gyp:*', | 19 'core.gyp:*', |
20 'giflib.gyp:giflib', | 20 'giflib.gyp:giflib', |
21 'libpng.gyp:libpng', | |
22 ], | 21 ], |
23 'cflags':[ | 22 'cflags':[ |
24 # FIXME: This gets around a longjmp warning. See | 23 # FIXME: This gets around a longjmp warning. See |
25 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio | 24 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
26 '-Wno-clobbered', | 25 '-Wno-clobbered', |
27 ], | 26 ], |
28 'include_dirs': [ | 27 'include_dirs': [ |
29 '../include/codec', | 28 '../include/codec', |
30 '../src/codec', | 29 '../src/codec', |
31 '../src/core', | 30 '../src/core', |
32 ], | 31 ], |
33 'sources': [ | 32 'sources': [ |
34 '../src/codec/SkCodec.cpp', | 33 '../src/codec/SkCodec.cpp', |
35 '../src/codec/SkCodec_libbmp.cpp', | 34 '../src/codec/SkCodec_libbmp.cpp', |
36 '../src/codec/SkCodec_libgif.cpp', | 35 '../src/codec/SkCodec_libgif.cpp', |
37 '../src/codec/SkCodec_libico.cpp', | 36 '../src/codec/SkCodec_libico.cpp', |
38 '../src/codec/SkCodec_libpng.cpp', | 37 '../src/codec/SkCodec_libpng.cpp', |
39 '../src/codec/SkCodec_wbmp.cpp', | 38 '../src/codec/SkCodec_wbmp.cpp', |
40 '../src/codec/SkGifInterlaceIter.cpp', | 39 '../src/codec/SkGifInterlaceIter.cpp', |
41 '../src/codec/SkMaskSwizzler.cpp', | 40 '../src/codec/SkMaskSwizzler.cpp', |
42 '../src/codec/SkMasks.cpp', | 41 '../src/codec/SkMasks.cpp', |
43 '../src/codec/SkSwizzler.cpp', | 42 '../src/codec/SkSwizzler.cpp', |
44 ], | 43 ], |
45 'direct_dependent_settings': { | 44 'direct_dependent_settings': { |
46 'include_dirs': [ | 45 'include_dirs': [ |
47 '../include/codec', | 46 '../include/codec', |
48 ], | 47 ], |
49 }, | 48 }, |
| 49 'conditions': [ |
| 50 [ 'skia_android_framework == 1', |
| 51 { |
| 52 # TODO(djsollen): this is a temporary dependency until we can update |
| 53 # the android framework to a more recent version of libpng. |
| 54 'dependencies': [ |
| 55 'libpng.gyp:libpng', |
| 56 ], |
| 57 }, { # !skia_android_framework |
| 58 'dependencies': [ |
| 59 'libpng.gyp:libpng_static', |
| 60 ], |
| 61 } |
| 62 ] |
| 63 ] |
50 }, | 64 }, |
51 ], | 65 ], |
52 } | 66 } |
OLD | NEW |