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 'libjpeg-turbo.gyp:libjpeg-turbo', | |
22 'libwebp.gyp:libwebp', | 21 'libwebp.gyp:libwebp', |
23 ], | 22 ], |
24 'export_dependent_settings': [ | |
25 'libjpeg-turbo.gyp:libjpeg-turbo', | |
26 ], | |
27 'cflags':[ | 23 'cflags':[ |
28 # FIXME: This gets around a longjmp warning. See | 24 # FIXME: This gets around a longjmp warning. See |
29 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio | 25 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
30 '-Wno-clobbered', | 26 '-Wno-clobbered', |
31 ], | 27 ], |
32 'include_dirs': [ | 28 'include_dirs': [ |
33 '../include/codec', | 29 '../include/codec', |
34 '../src/codec', | 30 '../src/codec', |
35 '../src/core', | 31 '../src/core', |
36 ], | 32 ], |
(...skipping 19 matching lines...) Expand all Loading... |
56 ], | 52 ], |
57 }, | 53 }, |
58 'conditions': [ | 54 'conditions': [ |
59 [ 'skia_android_framework == 1', | 55 [ 'skia_android_framework == 1', |
60 { | 56 { |
61 # TODO(djsollen): this is a temporary dependency until we can update | 57 # TODO(djsollen): this is a temporary dependency until we can update |
62 # the android framework to a more recent version of libpng. | 58 # the android framework to a more recent version of libpng. |
63 'dependencies': [ | 59 'dependencies': [ |
64 'libpng.gyp:libpng', | 60 'libpng.gyp:libpng', |
65 ], | 61 ], |
66 # TODO(msarett): update libjpeg-turbo on Android so we can compile S
kJpegCodec | 62 # TODO(msarett): Add libjpeg-turbo to Android so we can compile SkJp
egCodec |
67 # for the framework. | 63 # for the framework. |
68 'sources!': [ | 64 'sources!': [ |
69 '../src/codec/SkJpegCodec.cpp', | 65 '../src/codec/SkJpegCodec.cpp', |
70 '../src/codec/SkJpegDecoderMgr.cpp', | 66 '../src/codec/SkJpegDecoderMgr.cpp', |
71 '../src/codec/SkJpegUtility_codec.cpp', | 67 '../src/codec/SkJpegUtility_codec.cpp', |
72 ], | 68 ], |
73 'dependencies!': [ | |
74 'libjpeg-turbo.gyp:libjpeg-turbo', | |
75 ], | |
76 }, { # !skia_android_framework | 69 }, { # !skia_android_framework |
77 'dependencies': [ | 70 'dependencies': [ |
| 71 # TODO(msarett): Add libjpeg-turbo to Android so this can be a glo
bal |
| 72 # dependency. |
| 73 'libjpeg-turbo.gyp:libjpeg-turbo', |
78 'libpng.gyp:libpng_static', | 74 'libpng.gyp:libpng_static', |
79 ], | 75 ], |
| 76 'export_dependent_settings': [ |
| 77 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 78 ], |
80 'cflags': [ | 79 'cflags': [ |
81 '-DTURBO_HAS_SKIP', | 80 '-DTURBO_HAS_SKIP', |
82 ], | 81 ], |
83 } | 82 } |
84 ] | 83 ] |
85 ] | 84 ] |
86 }, | 85 }, |
87 ], | 86 ], |
88 } | 87 } |
OLD | NEW |