Index: gyp/codec.gyp |
diff --git a/gyp/codec.gyp b/gyp/codec.gyp |
index 109c21637df5c4d226fc0481cdf1274a7a1e5610..9b9aef9f18fb82ff68210844fbae10c00f6a5972 100644 |
--- a/gyp/codec.gyp |
+++ b/gyp/codec.gyp |
@@ -63,6 +63,57 @@ |
'defines': [ |
'TURBO_HAS_SKIP', |
], |
+ 'conditions': [ |
+ ['skia_codec_decodes_raw', { |
+ 'dependencies': [ |
+ 'raw_codec', |
+ ], |
+ },], |
+ ], |
+ }, { |
+ # RAW codec needs exceptions. Dut to that, it is a separate target. Its usage can be controlled |
msarett
2016/01/15 15:15:32
nit: 100 chars
yujieqin
2016/01/15 15:47:17
Done.
|
+ # by SK_CODEC_DECODES_RAW flag. |
+ 'target_name': 'raw_codec', |
+ 'product_name': 'raw_codec', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'core.gyp:*', |
+ 'dng_sdk.gyp:dng_sdk-selector', |
+ 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
+ 'piex.gyp:piex-selector', |
+ ], |
+ 'cflags':[ |
+ '-fexceptions', |
+ ], |
+ 'include_dirs': [ |
+ '../include/codec', |
+ '../include/private', |
+ '../src/codec', |
+ '../src/core', |
+ ], |
+ 'sources': [ |
+ '../src/codec/SkRawAdapterCodec.cpp', |
+ '../src/codec/SkRawCodec.cpp', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'include_dirs': [ |
+ '../include/codec', |
+ ], |
+ 'defines': [ |
+ 'SK_CODEC_DECODES_RAW', |
+ ], |
+ }, |
+ 'defines': [ |
+ 'SK_CODEC_DECODES_RAW', |
+ ], |
+ 'conditions': [ |
+ ['OS == "ios" or OS == "mac"', { |
+ 'xcode_settings': { |
+ 'OTHER_CFLAGS': ['-fexceptions'], |
+ 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], |
+ }, |
+ }], |
+ ], |
}, |
], |
} |