| Index: gyp/codec.gyp | 
| diff --git a/gyp/codec.gyp b/gyp/codec.gyp | 
| index 109c21637df5c4d226fc0481cdf1274a7a1e5610..f5d9d80582c9434d9248a6c37d8b4a820e82f9ad 100644 | 
| --- a/gyp/codec.gyp | 
| +++ b/gyp/codec.gyp | 
| @@ -17,6 +17,7 @@ | 
| 'standalone_static_library': 1, | 
| 'dependencies': [ | 
| 'core.gyp:*', | 
| +        'raw_codec', | 
| 'giflib.gyp:giflib', | 
| 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 
| 'libpng.gyp:libpng', | 
| @@ -63,6 +64,45 @@ | 
| 'defines': [ | 
| 'TURBO_HAS_SKIP', | 
| ], | 
| +    }, { | 
| +      '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': [ | 
| +        'TURBO_HAS_SKIP', | 
| +      ], | 
| +      'conditions': [ | 
| +        ['OS == "ios" or OS == "mac"', { | 
| +          'xcode_settings': { | 
| +            'OTHER_CFLAGS': ['-fexceptions'], | 
| +            'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'], | 
| +          }, | 
| +        }], | 
| +      ], | 
| }, | 
| ], | 
| } | 
|  |