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 'raw_codec', |
20 'giflib.gyp:giflib', | 21 'giflib.gyp:giflib', |
21 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 22 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
22 'libpng.gyp:libpng', | 23 'libpng.gyp:libpng', |
23 'libwebp.gyp:libwebp', | 24 'libwebp.gyp:libwebp', |
24 ], | 25 ], |
25 'cflags':[ | 26 'cflags':[ |
26 # FIXME: This gets around a longjmp warning. See | 27 # FIXME: This gets around a longjmp warning. See |
27 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio | 28 # http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-
GCC-x86_64-Release-Trybot/builds/113/steps/build%20most/logs/stdio |
28 '-Wno-clobbered -Wno-error', | 29 '-Wno-clobbered -Wno-error', |
29 ], | 30 ], |
(...skipping 26 matching lines...) Expand all Loading... |
56 '../src/codec/SkWebpCodec.cpp', | 57 '../src/codec/SkWebpCodec.cpp', |
57 ], | 58 ], |
58 'direct_dependent_settings': { | 59 'direct_dependent_settings': { |
59 'include_dirs': [ | 60 'include_dirs': [ |
60 '../include/codec', | 61 '../include/codec', |
61 ], | 62 ], |
62 }, | 63 }, |
63 'defines': [ | 64 'defines': [ |
64 'TURBO_HAS_SKIP', | 65 'TURBO_HAS_SKIP', |
65 ], | 66 ], |
| 67 }, { |
| 68 'target_name': 'raw_codec', |
| 69 'product_name': 'raw_codec', |
| 70 'type': 'static_library', |
| 71 'dependencies': [ |
| 72 'core.gyp:*', |
| 73 'dng_sdk.gyp:dng_sdk-selector', |
| 74 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
| 75 'piex.gyp:piex-selector', |
| 76 ], |
| 77 'cflags':[ |
| 78 '-fexceptions', |
| 79 ], |
| 80 'include_dirs': [ |
| 81 '../include/codec', |
| 82 '../include/private', |
| 83 '../src/codec', |
| 84 '../src/core', |
| 85 ], |
| 86 'sources': [ |
| 87 '../src/codec/SkRawAdapterCodec.cpp', |
| 88 '../src/codec/SkRawCodec.cpp', |
| 89 ], |
| 90 'direct_dependent_settings': { |
| 91 'include_dirs': [ |
| 92 '../include/codec', |
| 93 ], |
| 94 }, |
| 95 'defines': [ |
| 96 'TURBO_HAS_SKIP', |
| 97 ], |
| 98 'conditions': [ |
| 99 ['OS == "ios" or OS == "mac"', { |
| 100 'xcode_settings': { |
| 101 'OTHER_CFLAGS': ['-fexceptions'], |
| 102 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
| 103 }, |
| 104 }], |
| 105 ], |
66 }, | 106 }, |
67 ], | 107 ], |
68 } | 108 } |
OLD | NEW |