OLD | NEW |
1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 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 # The Adobe DNG SDK, an API for reading and writing DNG files. | 5 # The Adobe DNG SDK, an API for reading and writing DNG files. |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'other_cflags': [ | 8 'other_cflags': [ |
9 '-DqDNGBigEndian=0', | 9 '-DqDNGBigEndian=0', |
10 '-DqDNGReportErrors=0', | 10 '-DqDNGReportErrors=0', |
11 '-DqDNGThreadSafe=1', | 11 '-DqDNGThreadSafe=1', |
12 '-DqDNGUseLibJPEG=1', | 12 '-DqDNGUseLibJPEG=1', |
13 '-DqDNGUseXMP=0', | 13 '-DqDNGUseXMP=0', |
14 '-DqDNGValidate=0', | 14 '-DqDNGValidate=0', |
15 '-DqDNGValidateTarget=1', | 15 '-DqDNGValidateTarget=1', |
16 '-fexceptions', | 16 '-fexceptions', |
17 '-frtti', | 17 '-frtti', |
18 '-w', | 18 '-w', |
19 '-Wframe-larger-than=20000', | 19 '-Wframe-larger-than=20000', |
20 '-DUNIX_ENV=1', | 20 '-DUNIX_ENV=1', |
21 | |
22 # FIXME: only disable ::posix_memalign() when needed. | |
23 '-DNO_POSIX_MEMALIGN', | |
24 ], | 21 ], |
25 'headers': [ | 22 'headers': [ |
26 '../third_party/externals/dng_sdk/source/RawEnvironment.h', | 23 '../third_party/externals/dng_sdk/source/RawEnvironment.h', |
27 '../third_party/externals/dng_sdk/source/dng_1d_function.h', | 24 '../third_party/externals/dng_sdk/source/dng_1d_function.h', |
28 '../third_party/externals/dng_sdk/source/dng_1d_table.h', | 25 '../third_party/externals/dng_sdk/source/dng_1d_table.h', |
29 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.h', | 26 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.h', |
30 '../third_party/externals/dng_sdk/source/dng_area_task.h', | 27 '../third_party/externals/dng_sdk/source/dng_area_task.h', |
31 '../third_party/externals/dng_sdk/source/dng_assertions.h', | 28 '../third_party/externals/dng_sdk/source/dng_assertions.h', |
32 '../third_party/externals/dng_sdk/source/dng_auto_ptr.h', | 29 '../third_party/externals/dng_sdk/source/dng_auto_ptr.h', |
33 '../third_party/externals/dng_sdk/source/dng_bad_pixels.h', | 30 '../third_party/externals/dng_sdk/source/dng_bad_pixels.h', |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 'dependencies': [ 'dng_sdk.gyp:dng_sdk' ], | 110 'dependencies': [ 'dng_sdk.gyp:dng_sdk' ], |
114 'export_dependent_settings': [ 'dng_sdk.gyp:dng_sdk' ], | 111 'export_dependent_settings': [ 'dng_sdk.gyp:dng_sdk' ], |
115 }] | 112 }] |
116 ] | 113 ] |
117 },{ | 114 },{ |
118 'target_name': 'dng_sdk', | 115 'target_name': 'dng_sdk', |
119 'type': 'static_library', | 116 'type': 'static_library', |
120 'cflags_cc!': [ '-fno-rtti' ], | 117 'cflags_cc!': [ '-fno-rtti' ], |
121 'cflags': [ '<@(other_cflags)' ], | 118 'cflags': [ '<@(other_cflags)' ], |
122 'conditions': [ | 119 'conditions': [ |
| 120 ['skia_os == "android"', { |
| 121 'cflags': [ |
| 122 # FIXME: only disable ::posix_memalign() when needed. |
| 123 '-DNO_POSIX_MEMALIGN', |
| 124 ], |
| 125 }], |
123 ['skia_os == "ios" or skia_os == "mac"', { | 126 ['skia_os == "ios" or skia_os == "mac"', { |
124 'xcode_settings': { | 127 'xcode_settings': { |
125 'OTHER_CFLAGS': [ '<@(other_cflags)' ], | 128 'OTHER_CFLAGS': [ '<@(other_cflags)' ], |
126 'OTHER_CPLUSPLUSFLAGS': [ '<@(other_cflags)' ], | 129 'OTHER_CPLUSPLUSFLAGS': [ '<@(other_cflags)' ], |
127 }, | 130 }, |
128 }], | 131 }], |
| 132 ['skia_os == "win"', { |
| 133 'msvs_settings': { |
| 134 'VCCLCompilerTool': { |
| 135 'WarningLevel': '0', |
| 136 'AdditionalOptions': ['/wd4189', ], |
| 137 }, |
| 138 }, |
| 139 }], |
129 ['skia_os != "linux"', { | 140 ['skia_os != "linux"', { |
130 'sources': ['<@(headers)'], | 141 'sources': ['<@(headers)'], |
131 }], | 142 }], |
132 ], | 143 ], |
133 'msvs_settings': { | |
134 'VCCLCompilerTool': { | |
135 'WarningLevel': '0', | |
136 'AdditionalOptions': ['/wd4189', ], | |
137 }, | |
138 }, | |
139 'dependencies': [ | 144 'dependencies': [ |
140 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', | 145 'libjpeg-turbo-selector.gyp:libjpeg-turbo-selector', |
141 'zlib.gyp:zlib', | 146 'zlib.gyp:zlib', |
142 ], | 147 ], |
143 'include_dirs': [ | 148 'include_dirs': [ |
144 '../third_party/externals/dng_sdk/source', | 149 '../third_party/externals/dng_sdk/source', |
145 '../third_party/externals/libjpeg-turbo', | 150 '../third_party/externals/libjpeg-turbo', |
146 ], | 151 ], |
147 'direct_dependent_settings': { | 152 'direct_dependent_settings': { |
148 'include_dirs': [ | 153 'include_dirs': [ |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 '../third_party/externals/dng_sdk/source/dng_temperature.cpp', | 215 '../third_party/externals/dng_sdk/source/dng_temperature.cpp', |
211 '../third_party/externals/dng_sdk/source/dng_tile_iterator.cpp', | 216 '../third_party/externals/dng_sdk/source/dng_tile_iterator.cpp', |
212 '../third_party/externals/dng_sdk/source/dng_tone_curve.cpp', | 217 '../third_party/externals/dng_sdk/source/dng_tone_curve.cpp', |
213 '../third_party/externals/dng_sdk/source/dng_utils.cpp', | 218 '../third_party/externals/dng_sdk/source/dng_utils.cpp', |
214 '../third_party/externals/dng_sdk/source/dng_xy_coord.cpp', | 219 '../third_party/externals/dng_sdk/source/dng_xy_coord.cpp', |
215 '../third_party/externals/dng_sdk/source/dng_jpeg_memory_source.cpp', | 220 '../third_party/externals/dng_sdk/source/dng_jpeg_memory_source.cpp', |
216 '../third_party/externals/dng_sdk/source/dng_safe_arithmetic.cpp', | 221 '../third_party/externals/dng_sdk/source/dng_safe_arithmetic.cpp', |
217 ], | 222 ], |
218 }], | 223 }], |
219 } | 224 } |
OLD | NEW |