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 'dng_sdk.gyp:dng_sdk', | |
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', |
25 'piex.gyp:piex', | |
24 ], | 26 ], |
25 'cflags':[ | 27 'cflags':[ |
26 # FIXME: This gets around a longjmp warning. See | 28 # 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 | 29 # 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', | 30 '-Wno-clobbered -Wno-error', |
31 '-fexceptions', | |
djsollen
2015/12/16 20:35:34
I think we will want to create a separate build ta
yujieqin
2016/01/06 18:47:18
Done.
| |
29 ], | 32 ], |
30 'include_dirs': [ | 33 'include_dirs': [ |
31 '../include/codec', | 34 '../include/codec', |
32 '../include/private', | 35 '../include/private', |
33 '../src/codec', | 36 '../src/codec', |
34 '../src/core', | 37 '../src/core', |
35 ], | 38 ], |
36 'sources': [ | 39 'sources': [ |
37 '../src/codec/SkAndroidCodec.cpp', | 40 '../src/codec/SkAndroidCodec.cpp', |
41 '../src/codec/SkAndroidRawCodec.cpp', | |
38 '../src/codec/SkBmpCodec.cpp', | 42 '../src/codec/SkBmpCodec.cpp', |
39 '../src/codec/SkBmpMaskCodec.cpp', | 43 '../src/codec/SkBmpMaskCodec.cpp', |
40 '../src/codec/SkBmpRLECodec.cpp', | 44 '../src/codec/SkBmpRLECodec.cpp', |
41 '../src/codec/SkBmpStandardCodec.cpp', | 45 '../src/codec/SkBmpStandardCodec.cpp', |
42 '../src/codec/SkCodec.cpp', | 46 '../src/codec/SkCodec.cpp', |
43 '../src/codec/SkCodec_libgif.cpp', | 47 '../src/codec/SkCodec_libgif.cpp', |
44 '../src/codec/SkCodec_libico.cpp', | 48 '../src/codec/SkCodec_libico.cpp', |
45 '../src/codec/SkCodec_libpng.cpp', | 49 '../src/codec/SkCodec_libpng.cpp', |
46 '../src/codec/SkCodec_wbmp.cpp', | 50 '../src/codec/SkCodec_wbmp.cpp', |
47 '../src/codec/SkJpegCodec.cpp', | 51 '../src/codec/SkJpegCodec.cpp', |
48 '../src/codec/SkJpegDecoderMgr.cpp', | 52 '../src/codec/SkJpegDecoderMgr.cpp', |
49 '../src/codec/SkJpegUtility_codec.cpp', | 53 '../src/codec/SkJpegUtility_codec.cpp', |
50 '../src/codec/SkMaskSwizzler.cpp', | 54 '../src/codec/SkMaskSwizzler.cpp', |
51 '../src/codec/SkMasks.cpp', | 55 '../src/codec/SkMasks.cpp', |
56 '../src/codec/SkRawCodec.cpp', | |
52 '../src/codec/SkSampler.cpp', | 57 '../src/codec/SkSampler.cpp', |
53 '../src/codec/SkSampledCodec.cpp', | 58 '../src/codec/SkSampledCodec.cpp', |
54 '../src/codec/SkSwizzler.cpp', | 59 '../src/codec/SkSwizzler.cpp', |
55 '../src/codec/SkWebpAdapterCodec.cpp', | 60 '../src/codec/SkWebpAdapterCodec.cpp', |
56 '../src/codec/SkWebpCodec.cpp', | 61 '../src/codec/SkWebpCodec.cpp', |
57 ], | 62 ], |
58 'direct_dependent_settings': { | 63 'direct_dependent_settings': { |
59 'include_dirs': [ | 64 'include_dirs': [ |
60 '../include/codec', | 65 '../include/codec', |
61 ], | 66 ], |
62 }, | 67 }, |
63 'defines': [ | 68 'defines': [ |
64 'TURBO_HAS_SKIP', | 69 'TURBO_HAS_SKIP', |
65 ], | 70 ], |
71 'conditions': [ | |
72 ['OS == "ios" or OS == "mac"', { | |
73 'xcode_settings': { | |
74 'OTHER_CFLAGS': ['-fexceptions'], | |
75 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | |
76 }, | |
77 }], | |
78 ], | |
66 }, | 79 }, |
67 ], | 80 ], |
68 } | 81 } |
OLD | NEW |