Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Unified Diff: gyp/codec.gyp

Issue 1520403003: Prototype of RAW decoding in Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Set big endian explicitly for arm Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/android_deps.gyp ('k') | gyp/common_variables.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/codec.gyp
diff --git a/gyp/codec.gyp b/gyp/codec.gyp
index 8a35b09d6c02f7bd805050837dda170e5e692447..d7272e2a7a9b80f340aa209e1b865151d9fbb09a 100644
--- a/gyp/codec.gyp
+++ b/gyp/codec.gyp
@@ -66,6 +66,63 @@
'defines': [
'TURBO_HAS_SKIP',
],
+ 'conditions': [
+ # FIXME: fix the support for Windows. (Issue with _hypot in DNG SDK).
+ ['skia_codec_decodes_raw and skia_os != "win" and skia_os != "chromeos"', {
+ 'dependencies': [
+ 'raw_codec',
+ ],
+ },],
+ ],
+ }, {
+ # RAW codec needs exceptions. Due to that, it is a separate target. Its usage can be
+ # controlled 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': [
+ ['skia_arch_type == "x86" or skia_arch_type == "arm"', {
+ 'defines': [
+ 'qDNGBigEndian=0',
+ ],
+ }],
+ ['skia_os == "ios" or skia_os == "mac"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': ['-fexceptions'],
+ 'OTHER_CPLUSPLUSFLAGS': ['-fexceptions'],
+ },
+ }],
+ ],
},
],
}
« no previous file with comments | « gyp/android_deps.gyp ('k') | gyp/common_variables.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698