OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 Google Inc. |
| 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 # The Adobe DNG SDK, an API for reading and writing DNG files. |
| 6 { |
| 7 'variables': { |
| 8 'skia_warnings_as_errors': 0, |
| 9 }, |
| 10 'targets': [{ |
| 11 'target_name': 'dng_sdk-selector', |
| 12 'type': 'none', |
| 13 'conditions': [ |
| 14 [ 'skia_android_framework', { |
| 15 'dependencies': [ 'android_deps.gyp:dng_sdk' ], |
| 16 'export_dependent_settings': [ 'android_deps.gyp:dng_sdk' ], |
| 17 }, { |
| 18 'dependencies': [ 'dng_sdk' ], |
| 19 'export_dependent_settings': [ 'dng_sdk' ], |
| 20 }] |
| 21 ] |
| 22 },{ |
| 23 'target_name': 'dng_sdk', |
| 24 'type': 'static_library', |
| 25 'cflags_cc': [ '-fexceptions' ], |
| 26 'cflags': ['-fexceptions'], |
| 27 'dependencies': [ |
| 28 'dng_dont_report_errors_flags', |
| 29 'dng_flags', |
| 30 'dng_frame_larger_than_flags', |
| 31 'dng_srcs', |
| 32 'linux_flags', |
| 33 ], |
| 34 'direct_dependent_settings': { |
| 35 'include_dirs': [ |
| 36 '../third_party/externals/dng_sdk/source', |
| 37 ], |
| 38 }, |
| 39 }, { |
| 40 'target_name': 'dng_srcs', |
| 41 'type': 'none', |
| 42 'variables': { |
| 43 'headers': [ |
| 44 '../third_party/externals/dng_sdk/source/RawEnvironment.h', |
| 45 '../third_party/externals/dng_sdk/source/dng_1d_function.h', |
| 46 '../third_party/externals/dng_sdk/source/dng_1d_table.h', |
| 47 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.h', |
| 48 '../third_party/externals/dng_sdk/source/dng_area_task.h', |
| 49 '../third_party/externals/dng_sdk/source/dng_assertions.h', |
| 50 '../third_party/externals/dng_sdk/source/dng_auto_ptr.h', |
| 51 '../third_party/externals/dng_sdk/source/dng_bad_pixels.h', |
| 52 '../third_party/externals/dng_sdk/source/dng_bottlenecks.h', |
| 53 '../third_party/externals/dng_sdk/source/dng_camera_profile.h', |
| 54 '../third_party/externals/dng_sdk/source/dng_classes.h', |
| 55 '../third_party/externals/dng_sdk/source/dng_color_space.h', |
| 56 '../third_party/externals/dng_sdk/source/dng_color_spec.h', |
| 57 '../third_party/externals/dng_sdk/source/dng_date_time.h', |
| 58 '../third_party/externals/dng_sdk/source/dng_errors.h', |
| 59 '../third_party/externals/dng_sdk/source/dng_exceptions.h', |
| 60 '../third_party/externals/dng_sdk/source/dng_exif.h', |
| 61 '../third_party/externals/dng_sdk/source/dng_fast_module.h', |
| 62 '../third_party/externals/dng_sdk/source/dng_file_stream.h', |
| 63 '../third_party/externals/dng_sdk/source/dng_filter_task.h', |
| 64 '../third_party/externals/dng_sdk/source/dng_fingerprint.h', |
| 65 '../third_party/externals/dng_sdk/source/dng_flags.h', |
| 66 '../third_party/externals/dng_sdk/source/dng_gain_map.h', |
| 67 '../third_party/externals/dng_sdk/source/dng_globals.h', |
| 68 '../third_party/externals/dng_sdk/source/dng_host.h', |
| 69 '../third_party/externals/dng_sdk/source/dng_hue_sat_map.h', |
| 70 '../third_party/externals/dng_sdk/source/dng_ifd.h', |
| 71 '../third_party/externals/dng_sdk/source/dng_image.h', |
| 72 '../third_party/externals/dng_sdk/source/dng_image_writer.h', |
| 73 '../third_party/externals/dng_sdk/source/dng_info.h', |
| 74 '../third_party/externals/dng_sdk/source/dng_iptc.h', |
| 75 '../third_party/externals/dng_sdk/source/dng_jpeg_image.h', |
| 76 '../third_party/externals/dng_sdk/source/dng_lens_correction.h', |
| 77 '../third_party/externals/dng_sdk/source/dng_linearization_info.h', |
| 78 '../third_party/externals/dng_sdk/source/dng_lossless_jpeg.h', |
| 79 '../third_party/externals/dng_sdk/source/dng_matrix.h', |
| 80 '../third_party/externals/dng_sdk/source/dng_memory.h', |
| 81 '../third_party/externals/dng_sdk/source/dng_memory_stream.h', |
| 82 '../third_party/externals/dng_sdk/source/dng_misc_opcodes.h', |
| 83 '../third_party/externals/dng_sdk/source/dng_mosaic_info.h', |
| 84 '../third_party/externals/dng_sdk/source/dng_mutex.h', |
| 85 '../third_party/externals/dng_sdk/source/dng_negative.h', |
| 86 '../third_party/externals/dng_sdk/source/dng_opcode_list.h', |
| 87 '../third_party/externals/dng_sdk/source/dng_opcodes.h', |
| 88 '../third_party/externals/dng_sdk/source/dng_orientation.h', |
| 89 '../third_party/externals/dng_sdk/source/dng_parse_utils.h', |
| 90 '../third_party/externals/dng_sdk/source/dng_pixel_buffer.h', |
| 91 '../third_party/externals/dng_sdk/source/dng_point.h', |
| 92 '../third_party/externals/dng_sdk/source/dng_preview.h', |
| 93 '../third_party/externals/dng_sdk/source/dng_pthread.h', |
| 94 '../third_party/externals/dng_sdk/source/dng_rational.h', |
| 95 '../third_party/externals/dng_sdk/source/dng_read_image.h', |
| 96 '../third_party/externals/dng_sdk/source/dng_rect.h', |
| 97 '../third_party/externals/dng_sdk/source/dng_ref_counted_block.h', |
| 98 '../third_party/externals/dng_sdk/source/dng_reference.h', |
| 99 '../third_party/externals/dng_sdk/source/dng_render.h', |
| 100 '../third_party/externals/dng_sdk/source/dng_resample.h', |
| 101 '../third_party/externals/dng_sdk/source/dng_sdk_limits.h', |
| 102 '../third_party/externals/dng_sdk/source/dng_shared.h', |
| 103 '../third_party/externals/dng_sdk/source/dng_simple_image.h', |
| 104 '../third_party/externals/dng_sdk/source/dng_spline.h', |
| 105 '../third_party/externals/dng_sdk/source/dng_stream.h', |
| 106 '../third_party/externals/dng_sdk/source/dng_string.h', |
| 107 '../third_party/externals/dng_sdk/source/dng_string_list.h', |
| 108 '../third_party/externals/dng_sdk/source/dng_tag_codes.h', |
| 109 '../third_party/externals/dng_sdk/source/dng_tag_types.h', |
| 110 '../third_party/externals/dng_sdk/source/dng_tag_values.h', |
| 111 '../third_party/externals/dng_sdk/source/dng_temperature.h', |
| 112 '../third_party/externals/dng_sdk/source/dng_tile_iterator.h', |
| 113 '../third_party/externals/dng_sdk/source/dng_tone_curve.h', |
| 114 '../third_party/externals/dng_sdk/source/dng_types.h', |
| 115 '../third_party/externals/dng_sdk/source/dng_uncopyable.h', |
| 116 '../third_party/externals/dng_sdk/source/dng_utils.h', |
| 117 '../third_party/externals/dng_sdk/source/dng_xy_coord.h', |
| 118 '../third_party/externals/dng_sdk/source/dng_jpeg_memory_source.h', |
| 119 '../third_party/externals/dng_sdk/source/dng_jpeglib.h', |
| 120 '../third_party/externals/dng_sdk/source/dng_safe_arithmetic.h', |
| 121 ], |
| 122 }, |
| 123 'dependencies': [ |
| 124 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 125 'zlib.gyp:zlib', |
| 126 ], |
| 127 'export_dependent_settings': [ |
| 128 'libjpeg-turbo.gyp:libjpeg-turbo', |
| 129 'zlib.gyp:zlib', |
| 130 ], |
| 131 'direct_dependent_settings': { |
| 132 'sources': [ |
| 133 '../third_party/externals/dng_sdk/source/dng_1d_function.cpp', |
| 134 '../third_party/externals/dng_sdk/source/dng_1d_table.cpp', |
| 135 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.cpp', |
| 136 '../third_party/externals/dng_sdk/source/dng_area_task.cpp', |
| 137 '../third_party/externals/dng_sdk/source/dng_bad_pixels.cpp', |
| 138 '../third_party/externals/dng_sdk/source/dng_bottlenecks.cpp', |
| 139 '../third_party/externals/dng_sdk/source/dng_camera_profile.cpp', |
| 140 '../third_party/externals/dng_sdk/source/dng_color_space.cpp', |
| 141 '../third_party/externals/dng_sdk/source/dng_color_spec.cpp', |
| 142 '../third_party/externals/dng_sdk/source/dng_date_time.cpp', |
| 143 '../third_party/externals/dng_sdk/source/dng_exceptions.cpp', |
| 144 '../third_party/externals/dng_sdk/source/dng_exif.cpp', |
| 145 '../third_party/externals/dng_sdk/source/dng_file_stream.cpp', |
| 146 '../third_party/externals/dng_sdk/source/dng_filter_task.cpp', |
| 147 '../third_party/externals/dng_sdk/source/dng_fingerprint.cpp', |
| 148 '../third_party/externals/dng_sdk/source/dng_gain_map.cpp', |
| 149 '../third_party/externals/dng_sdk/source/dng_globals.cpp', |
| 150 '../third_party/externals/dng_sdk/source/dng_host.cpp', |
| 151 '../third_party/externals/dng_sdk/source/dng_hue_sat_map.cpp', |
| 152 '../third_party/externals/dng_sdk/source/dng_ifd.cpp', |
| 153 '../third_party/externals/dng_sdk/source/dng_image.cpp', |
| 154 '../third_party/externals/dng_sdk/source/dng_image_writer.cpp', |
| 155 '../third_party/externals/dng_sdk/source/dng_info.cpp', |
| 156 '../third_party/externals/dng_sdk/source/dng_iptc.cpp', |
| 157 '../third_party/externals/dng_sdk/source/dng_jpeg_image.cpp', |
| 158 '../third_party/externals/dng_sdk/source/dng_lens_correction.cpp', |
| 159 '../third_party/externals/dng_sdk/source/dng_linearization_info.cpp', |
| 160 '../third_party/externals/dng_sdk/source/dng_lossless_jpeg.cpp', |
| 161 '../third_party/externals/dng_sdk/source/dng_matrix.cpp', |
| 162 '../third_party/externals/dng_sdk/source/dng_memory.cpp', |
| 163 '../third_party/externals/dng_sdk/source/dng_memory_stream.cpp', |
| 164 '../third_party/externals/dng_sdk/source/dng_misc_opcodes.cpp', |
| 165 '../third_party/externals/dng_sdk/source/dng_mosaic_info.cpp', |
| 166 '../third_party/externals/dng_sdk/source/dng_mutex.cpp', |
| 167 '../third_party/externals/dng_sdk/source/dng_negative.cpp', |
| 168 '../third_party/externals/dng_sdk/source/dng_opcode_list.cpp', |
| 169 '../third_party/externals/dng_sdk/source/dng_opcodes.cpp', |
| 170 '../third_party/externals/dng_sdk/source/dng_orientation.cpp', |
| 171 '../third_party/externals/dng_sdk/source/dng_parse_utils.cpp', |
| 172 '../third_party/externals/dng_sdk/source/dng_pixel_buffer.cpp', |
| 173 '../third_party/externals/dng_sdk/source/dng_point.cpp', |
| 174 '../third_party/externals/dng_sdk/source/dng_preview.cpp', |
| 175 '../third_party/externals/dng_sdk/source/dng_pthread.cpp', |
| 176 '../third_party/externals/dng_sdk/source/dng_rational.cpp', |
| 177 '../third_party/externals/dng_sdk/source/dng_read_image.cpp', |
| 178 '../third_party/externals/dng_sdk/source/dng_rect.cpp', |
| 179 '../third_party/externals/dng_sdk/source/dng_ref_counted_block.cpp', |
| 180 '../third_party/externals/dng_sdk/source/dng_reference.cpp', |
| 181 '../third_party/externals/dng_sdk/source/dng_render.cpp', |
| 182 '../third_party/externals/dng_sdk/source/dng_resample.cpp', |
| 183 '../third_party/externals/dng_sdk/source/dng_shared.cpp', |
| 184 '../third_party/externals/dng_sdk/source/dng_simple_image.cpp', |
| 185 '../third_party/externals/dng_sdk/source/dng_spline.cpp', |
| 186 '../third_party/externals/dng_sdk/source/dng_stream.cpp', |
| 187 '../third_party/externals/dng_sdk/source/dng_string.cpp', |
| 188 '../third_party/externals/dng_sdk/source/dng_string_list.cpp', |
| 189 '../third_party/externals/dng_sdk/source/dng_tag_types.cpp', |
| 190 '../third_party/externals/dng_sdk/source/dng_temperature.cpp', |
| 191 '../third_party/externals/dng_sdk/source/dng_tile_iterator.cpp', |
| 192 '../third_party/externals/dng_sdk/source/dng_tone_curve.cpp', |
| 193 '../third_party/externals/dng_sdk/source/dng_utils.cpp', |
| 194 '../third_party/externals/dng_sdk/source/dng_xy_coord.cpp', |
| 195 '../third_party/externals/dng_sdk/source/dng_jpeg_memory_source.cpp', |
| 196 '../third_party/externals/dng_sdk/source/dng_safe_arithmetic.cpp', |
| 197 ], |
| 198 'include_dirs': [ |
| 199 '../third_party/externals/dng_sdk/source', |
| 200 '../third_party/externals/libjpeg-turbo', |
| 201 ], |
| 202 'conditions': [ |
| 203 ['skia_os != "linux"', { |
| 204 'sources': ['<@(headers)'], |
| 205 }], |
| 206 ], |
| 207 }, |
| 208 }, { |
| 209 'target_name': 'dng_flags', |
| 210 'type': 'none', |
| 211 'direct_dependent_settings': { |
| 212 'cflags_cc!': [ '-fno-rtti' ], |
| 213 'cflags': [ |
| 214 '-DqDNGThreadSafe=1', |
| 215 '-DqDNGUseLibJPEG=1', |
| 216 '-DqDNGValidateTarget=1', |
| 217 '-DqDNGUseXMP=0', |
| 218 '-DqDNGBigEndian=0', |
| 219 '-w', |
| 220 '-fexceptions', |
| 221 '-frtti', |
| 222 ], |
| 223 'conditions': [ |
| 224 ['skia_os == "ios" or skia_os == "mac"', { |
| 225 'xcode_settings': { |
| 226 'OTHER_CFLAGS': [ |
| 227 '-DqDNGThreadSafe=1', |
| 228 '-DqDNGUseLibJPEG=1', |
| 229 '-DqDNGValidateTarget=1', |
| 230 '-DqDNGUseXMP=0', |
| 231 '-DqDNGBigEndian=0', |
| 232 '-w', |
| 233 '-fexceptions', |
| 234 '-frtti', |
| 235 ], |
| 236 'OTHER_CPLUSPLUSFLAGS': [ |
| 237 '-DqDNGThreadSafe=1', |
| 238 '-DqDNGUseLibJPEG=1', |
| 239 '-DqDNGValidateTarget=1', |
| 240 '-DqDNGUseXMP=0', |
| 241 '-DqDNGBigEndian=0', |
| 242 '-w', |
| 243 '-fexceptions', |
| 244 '-frtti', |
| 245 ], |
| 246 }, |
| 247 }], |
| 248 ], |
| 249 }, |
| 250 }, { |
| 251 'target_name': 'linux_flags', |
| 252 'type': 'none', |
| 253 'direct_dependent_settings': { |
| 254 'cflags': ['-DUNIX_ENV=1'], |
| 255 }, |
| 256 }, { |
| 257 'target_name': 'dng_dont_report_errors_flags', |
| 258 'type': 'none', |
| 259 'direct_dependent_settings': { |
| 260 'cflags': [ |
| 261 '-DqDNGReportErrors=0', |
| 262 '-DqDNGValidate=0', |
| 263 ], |
| 264 }, |
| 265 }, { |
| 266 'target_name': 'dng_frame_larger_than_flags', |
| 267 'type': 'none', |
| 268 'direct_dependent_settings': { |
| 269 'cflags': ['-Wframe-larger-than=20000'], |
| 270 }, |
| 271 }], |
| 272 } |
OLD | NEW |