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