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. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 '../src/codec/SkWebpCodec.cpp', | 56 '../src/codec/SkWebpCodec.cpp', |
57 ], | 57 ], |
58 'direct_dependent_settings': { | 58 'direct_dependent_settings': { |
59 'include_dirs': [ | 59 'include_dirs': [ |
60 '../include/codec', | 60 '../include/codec', |
61 ], | 61 ], |
62 }, | 62 }, |
63 'defines': [ | 63 'defines': [ |
64 'TURBO_HAS_SKIP', | 64 'TURBO_HAS_SKIP', |
65 ], | 65 ], |
66 'conditions': [ | |
67 ['skia_codec_decodes_raw', { | |
68 'dependencies': [ | |
69 'raw_codec', | |
70 ], | |
71 },], | |
72 ], | |
73 }, { | |
74 # RAW codec needs exceptions. Dut to that, it is a separate target. Its us age can be controlled | |
msarett
2016/01/15 15:15:32
nit: 100 chars
yujieqin
2016/01/15 15:47:17
Done.
| |
75 # by SK_CODEC_DECODES_RAW flag. | |
76 'target_name': 'raw_codec', | |
77 'product_name': 'raw_codec', | |
78 'type': 'static_library', | |
79 'dependencies': [ | |
80 'core.gyp:*', | |
81 'dng_sdk.gyp:dng_sdk-selector', | |
82 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | |
83 'piex.gyp:piex-selector', | |
84 ], | |
85 'cflags':[ | |
86 '-fexceptions', | |
87 ], | |
88 'include_dirs': [ | |
89 '../include/codec', | |
90 '../include/private', | |
91 '../src/codec', | |
92 '../src/core', | |
93 ], | |
94 'sources': [ | |
95 '../src/codec/SkRawAdapterCodec.cpp', | |
96 '../src/codec/SkRawCodec.cpp', | |
97 ], | |
98 'direct_dependent_settings': { | |
99 'include_dirs': [ | |
100 '../include/codec', | |
101 ], | |
102 'defines': [ | |
103 'SK_CODEC_DECODES_RAW', | |
104 ], | |
105 }, | |
106 'defines': [ | |
107 'SK_CODEC_DECODES_RAW', | |
108 ], | |
109 'conditions': [ | |
110 ['OS == "ios" or OS == "mac"', { | |
111 'xcode_settings': { | |
112 'OTHER_CFLAGS': ['-fexceptions'], | |
113 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | |
114 }, | |
115 }], | |
116 ], | |
66 }, | 117 }, |
67 ], | 118 ], |
68 } | 119 } |
OLD | NEW |