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', | |
| 12 'type': 'static_library', | |
| 13 'cflags': ['-Wsign-compare'], | |
|
msarett
2015/11/19 16:45:01
I'm fine with this if it allows you to share a gyp
ebrauer
2015/11/19 16:58:47
Right, this is relic of our original gyp file.
| |
| 14 'dependencies': [ | |
| 15 'dng_dont_report_errors_flags', | |
| 16 'dng_flags', | |
| 17 'dng_frame_larger_than_flags', | |
| 18 'dng_srcs', | |
| 19 'linux_flags', | |
| 20 ], | |
| 21 'direct_dependent_settings': { | |
| 22 'include_dirs': [ | |
| 23 '../third_party/externals/dng_sdk/source', | |
| 24 ], | |
| 25 }, | |
| 26 }, { | |
| 27 'target_name': 'dng_sdk_report_errors', | |
| 28 'type': 'static_library', | |
| 29 'dependencies': [ | |
| 30 'dng_report_errors_flags', | |
| 31 'dng_flags', | |
| 32 'dng_frame_larger_than_flags', | |
| 33 'dng_srcs', | |
| 34 'linux_flags', | |
| 35 ], | |
| 36 }, { | |
| 37 'target_name': 'dng_validate', | |
| 38 'type': 'executable', | |
| 39 'sources': ['../third_party/externals/dng_sdk/source/dng_validate.cpp'], | |
| 40 'dependencies': [ | |
| 41 'dng_flags', | |
| 42 'dng_report_errors_flags', | |
| 43 'dng_sdk_report_errors', | |
| 44 'linux_flags', | |
| 45 ], | |
| 46 }, { | |
| 47 'target_name': 'dng_srcs', | |
| 48 'type': 'none', | |
| 49 'variables': { | |
| 50 'headers': [ | |
| 51 '../third_party/externals/dng_sdk/source/RawEnvironment.h', | |
|
msarett
2015/11/19 16:45:01
I'm guessing there is a change to the DEPS file th
ebrauer
2015/11/19 16:58:47
Not yet, but that is the idea basically.
| |
| 52 '../third_party/externals/dng_sdk/source/dng_1d_function.h', | |
| 53 '../third_party/externals/dng_sdk/source/dng_1d_table.h', | |
| 54 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.h', | |
| 55 '../third_party/externals/dng_sdk/source/dng_area_task.h', | |
| 56 '../third_party/externals/dng_sdk/source/dng_assertions.h', | |
| 57 '../third_party/externals/dng_sdk/source/dng_auto_ptr.h', | |
| 58 '../third_party/externals/dng_sdk/source/dng_bad_pixels.h', | |
| 59 '../third_party/externals/dng_sdk/source/dng_bottlenecks.h', | |
| 60 '../third_party/externals/dng_sdk/source/dng_camera_profile.h', | |
| 61 '../third_party/externals/dng_sdk/source/dng_classes.h', | |
| 62 '../third_party/externals/dng_sdk/source/dng_color_space.h', | |
| 63 '../third_party/externals/dng_sdk/source/dng_color_spec.h', | |
| 64 '../third_party/externals/dng_sdk/source/dng_date_time.h', | |
| 65 '../third_party/externals/dng_sdk/source/dng_errors.h', | |
| 66 '../third_party/externals/dng_sdk/source/dng_exceptions.h', | |
| 67 '../third_party/externals/dng_sdk/source/dng_exif.h', | |
| 68 '../third_party/externals/dng_sdk/source/dng_fast_module.h', | |
| 69 '../third_party/externals/dng_sdk/source/dng_file_stream.h', | |
| 70 '../third_party/externals/dng_sdk/source/dng_filter_task.h', | |
| 71 '../third_party/externals/dng_sdk/source/dng_fingerprint.h', | |
| 72 '../third_party/externals/dng_sdk/source/dng_flags.h', | |
| 73 '../third_party/externals/dng_sdk/source/dng_gain_map.h', | |
| 74 '../third_party/externals/dng_sdk/source/dng_globals.h', | |
| 75 '../third_party/externals/dng_sdk/source/dng_host.h', | |
| 76 '../third_party/externals/dng_sdk/source/dng_hue_sat_map.h', | |
| 77 '../third_party/externals/dng_sdk/source/dng_ifd.h', | |
| 78 '../third_party/externals/dng_sdk/source/dng_image.h', | |
| 79 '../third_party/externals/dng_sdk/source/dng_image_writer.h', | |
| 80 '../third_party/externals/dng_sdk/source/dng_info.h', | |
| 81 '../third_party/externals/dng_sdk/source/dng_iptc.h', | |
| 82 '../third_party/externals/dng_sdk/source/dng_jpeg_image.h', | |
| 83 '../third_party/externals/dng_sdk/source/dng_lens_correction.h', | |
| 84 '../third_party/externals/dng_sdk/source/dng_linearization_info.h', | |
| 85 '../third_party/externals/dng_sdk/source/dng_lossless_jpeg.h', | |
| 86 '../third_party/externals/dng_sdk/source/dng_matrix.h', | |
| 87 '../third_party/externals/dng_sdk/source/dng_memory.h', | |
| 88 '../third_party/externals/dng_sdk/source/dng_memory_stream.h', | |
| 89 '../third_party/externals/dng_sdk/source/dng_misc_opcodes.h', | |
| 90 '../third_party/externals/dng_sdk/source/dng_mosaic_info.h', | |
| 91 '../third_party/externals/dng_sdk/source/dng_mutex.h', | |
| 92 '../third_party/externals/dng_sdk/source/dng_negative.h', | |
| 93 '../third_party/externals/dng_sdk/source/dng_opcode_list.h', | |
| 94 '../third_party/externals/dng_sdk/source/dng_opcodes.h', | |
| 95 '../third_party/externals/dng_sdk/source/dng_orientation.h', | |
| 96 '../third_party/externals/dng_sdk/source/dng_parse_utils.h', | |
| 97 '../third_party/externals/dng_sdk/source/dng_pixel_buffer.h', | |
| 98 '../third_party/externals/dng_sdk/source/dng_point.h', | |
| 99 '../third_party/externals/dng_sdk/source/dng_preview.h', | |
| 100 '../third_party/externals/dng_sdk/source/dng_pthread.h', | |
| 101 '../third_party/externals/dng_sdk/source/dng_rational.h', | |
| 102 '../third_party/externals/dng_sdk/source/dng_read_image.h', | |
| 103 '../third_party/externals/dng_sdk/source/dng_rect.h', | |
| 104 '../third_party/externals/dng_sdk/source/dng_ref_counted_block.h', | |
| 105 '../third_party/externals/dng_sdk/source/dng_reference.h', | |
| 106 '../third_party/externals/dng_sdk/source/dng_render.h', | |
| 107 '../third_party/externals/dng_sdk/source/dng_resample.h', | |
| 108 '../third_party/externals/dng_sdk/source/dng_sdk_limits.h', | |
| 109 '../third_party/externals/dng_sdk/source/dng_shared.h', | |
| 110 '../third_party/externals/dng_sdk/source/dng_simple_image.h', | |
| 111 '../third_party/externals/dng_sdk/source/dng_spline.h', | |
| 112 '../third_party/externals/dng_sdk/source/dng_stream.h', | |
| 113 '../third_party/externals/dng_sdk/source/dng_string.h', | |
| 114 '../third_party/externals/dng_sdk/source/dng_string_list.h', | |
| 115 '../third_party/externals/dng_sdk/source/dng_tag_codes.h', | |
| 116 '../third_party/externals/dng_sdk/source/dng_tag_types.h', | |
| 117 '../third_party/externals/dng_sdk/source/dng_tag_values.h', | |
| 118 '../third_party/externals/dng_sdk/source/dng_temperature.h', | |
| 119 '../third_party/externals/dng_sdk/source/dng_tile_iterator.h', | |
| 120 '../third_party/externals/dng_sdk/source/dng_tone_curve.h', | |
| 121 '../third_party/externals/dng_sdk/source/dng_types.h', | |
| 122 '../third_party/externals/dng_sdk/source/dng_uncopyable.h', | |
| 123 '../third_party/externals/dng_sdk/source/dng_utils.h', | |
| 124 '../third_party/externals/dng_sdk/source/dng_xy_coord.h', | |
| 125 '../third_party/externals/dng_sdk/source/google_additions/dng_jpeg_memory_ source.h', | |
| 126 '../third_party/externals/dng_sdk/source/google_additions/jpeglib.h', | |
| 127 '../third_party/externals/dng_sdk/source/google_additions/safe_arithmetic. h', | |
| 128 ], | |
| 129 }, | |
| 130 'dependencies': [ | |
| 131 'libjpeg-turbo.gyp:libjpeg-turbo', | |
| 132 'zlib.gyp:zlib', | |
| 133 ], | |
| 134 'export_dependent_settings': [ | |
| 135 'libjpeg-turbo.gyp:libjpeg-turbo', | |
| 136 'zlib.gyp:zlib', | |
| 137 ], | |
| 138 'direct_dependent_settings': { | |
| 139 'sources': [ | |
| 140 '../third_party/externals/dng_sdk/source/dng_1d_function.cpp', | |
| 141 '../third_party/externals/dng_sdk/source/dng_1d_table.cpp', | |
| 142 '../third_party/externals/dng_sdk/source/dng_abort_sniffer.cpp', | |
| 143 '../third_party/externals/dng_sdk/source/dng_area_task.cpp', | |
| 144 '../third_party/externals/dng_sdk/source/dng_bad_pixels.cpp', | |
| 145 '../third_party/externals/dng_sdk/source/dng_bottlenecks.cpp', | |
| 146 '../third_party/externals/dng_sdk/source/dng_camera_profile.cpp', | |
| 147 '../third_party/externals/dng_sdk/source/dng_color_space.cpp', | |
| 148 '../third_party/externals/dng_sdk/source/dng_color_spec.cpp', | |
| 149 '../third_party/externals/dng_sdk/source/dng_date_time.cpp', | |
| 150 '../third_party/externals/dng_sdk/source/dng_exceptions.cpp', | |
| 151 '../third_party/externals/dng_sdk/source/dng_exif.cpp', | |
| 152 '../third_party/externals/dng_sdk/source/dng_file_stream.cpp', | |
| 153 '../third_party/externals/dng_sdk/source/dng_filter_task.cpp', | |
| 154 '../third_party/externals/dng_sdk/source/dng_fingerprint.cpp', | |
| 155 '../third_party/externals/dng_sdk/source/dng_gain_map.cpp', | |
| 156 '../third_party/externals/dng_sdk/source/dng_globals.cpp', | |
| 157 '../third_party/externals/dng_sdk/source/dng_host.cpp', | |
| 158 '../third_party/externals/dng_sdk/source/dng_hue_sat_map.cpp', | |
| 159 '../third_party/externals/dng_sdk/source/dng_ifd.cpp', | |
| 160 '../third_party/externals/dng_sdk/source/dng_image.cpp', | |
| 161 '../third_party/externals/dng_sdk/source/dng_image_writer.cpp', | |
| 162 '../third_party/externals/dng_sdk/source/dng_info.cpp', | |
| 163 '../third_party/externals/dng_sdk/source/dng_iptc.cpp', | |
| 164 '../third_party/externals/dng_sdk/source/dng_jpeg_image.cpp', | |
| 165 '../third_party/externals/dng_sdk/source/dng_lens_correction.cpp', | |
| 166 '../third_party/externals/dng_sdk/source/dng_linearization_info.cpp', | |
| 167 '../third_party/externals/dng_sdk/source/dng_lossless_jpeg.cpp', | |
| 168 '../third_party/externals/dng_sdk/source/dng_matrix.cpp', | |
| 169 '../third_party/externals/dng_sdk/source/dng_memory.cpp', | |
| 170 '../third_party/externals/dng_sdk/source/dng_memory_stream.cpp', | |
| 171 '../third_party/externals/dng_sdk/source/dng_misc_opcodes.cpp', | |
| 172 '../third_party/externals/dng_sdk/source/dng_mosaic_info.cpp', | |
| 173 '../third_party/externals/dng_sdk/source/dng_mutex.cpp', | |
| 174 '../third_party/externals/dng_sdk/source/dng_negative.cpp', | |
| 175 '../third_party/externals/dng_sdk/source/dng_opcode_list.cpp', | |
| 176 '../third_party/externals/dng_sdk/source/dng_opcodes.cpp', | |
| 177 '../third_party/externals/dng_sdk/source/dng_orientation.cpp', | |
| 178 '../third_party/externals/dng_sdk/source/dng_parse_utils.cpp', | |
| 179 '../third_party/externals/dng_sdk/source/dng_pixel_buffer.cpp', | |
| 180 '../third_party/externals/dng_sdk/source/dng_point.cpp', | |
| 181 '../third_party/externals/dng_sdk/source/dng_preview.cpp', | |
| 182 '../third_party/externals/dng_sdk/source/dng_pthread.cpp', | |
| 183 '../third_party/externals/dng_sdk/source/dng_rational.cpp', | |
| 184 '../third_party/externals/dng_sdk/source/dng_read_image.cpp', | |
| 185 '../third_party/externals/dng_sdk/source/dng_rect.cpp', | |
| 186 '../third_party/externals/dng_sdk/source/dng_ref_counted_block.cpp', | |
| 187 '../third_party/externals/dng_sdk/source/dng_reference.cpp', | |
| 188 '../third_party/externals/dng_sdk/source/dng_render.cpp', | |
| 189 '../third_party/externals/dng_sdk/source/dng_resample.cpp', | |
| 190 '../third_party/externals/dng_sdk/source/dng_shared.cpp', | |
| 191 '../third_party/externals/dng_sdk/source/dng_simple_image.cpp', | |
| 192 '../third_party/externals/dng_sdk/source/dng_spline.cpp', | |
| 193 '../third_party/externals/dng_sdk/source/dng_stream.cpp', | |
| 194 '../third_party/externals/dng_sdk/source/dng_string.cpp', | |
| 195 '../third_party/externals/dng_sdk/source/dng_string_list.cpp', | |
| 196 '../third_party/externals/dng_sdk/source/dng_tag_types.cpp', | |
| 197 '../third_party/externals/dng_sdk/source/dng_temperature.cpp', | |
| 198 '../third_party/externals/dng_sdk/source/dng_tile_iterator.cpp', | |
| 199 '../third_party/externals/dng_sdk/source/dng_tone_curve.cpp', | |
| 200 '../third_party/externals/dng_sdk/source/dng_utils.cpp', | |
| 201 '../third_party/externals/dng_sdk/source/dng_xy_coord.cpp', | |
| 202 '../third_party/externals/dng_sdk/source/google_additions/dng_jpeg_memory_ source.cpp', | |
| 203 '../third_party/externals/dng_sdk/source/google_additions/safe_arithmetic. cpp', | |
| 204 ], | |
| 205 'include_dirs': [ | |
| 206 '../third_party/externals/dng_sdk/source', | |
| 207 '../third_party/externals/libjpeg-turbo', | |
| 208 ], | |
| 209 'google3': { | |
| 210 'hdrs': ['<@(headers)'], | |
| 211 'select': { | |
| 212 'deps': { | |
| 213 '//conditions:default': ['//third_party/jpeg'], | |
| 214 '//tools/cc_target_os:android_32': [ | |
| 215 '//third_party/android/libjpeg_turbo', | |
| 216 ], | |
| 217 '//tools/cc_target_os:android_64': [ | |
| 218 '//third_party/android/libjpeg_turbo', | |
| 219 ], | |
| 220 }, | |
| 221 }, | |
| 222 }, | |
| 223 'conditions': [ | |
| 224 ['OS != "linux"', { | |
|
msarett
2015/11/19 16:45:01
Does this work? I think skia defines "skia_os", b
ebrauer
2015/11/19 16:58:47
Hmm, I don't know how it works. This is also from
scroggo
2015/11/19 22:16:54
I think skia_os is the device, so if you're buildi
| |
| 225 'sources': ['<@(headers)'], | |
| 226 }], | |
| 227 ], | |
| 228 }, | |
| 229 }, { | |
| 230 'target_name': 'dng_flags', | |
| 231 'type': 'none', | |
| 232 'direct_dependent_settings': { | |
| 233 'cflags_cc!': [ '-fno-rtti' ], | |
| 234 'cflags': [ | |
| 235 '-DqDNGThreadSafe=1', | |
| 236 '-DqDNGUseLibJPEG=1', | |
| 237 '-DqDNGValidateTarget=1', | |
| 238 '-DqDNGUseXMP=0', | |
| 239 '-DqDNGBigEndian=0', | |
| 240 '-w', | |
| 241 '-fexceptions', | |
| 242 ], | |
| 243 }, | |
| 244 }, { | |
| 245 'target_name': 'linux_flags', | |
| 246 'type': 'none', | |
| 247 'direct_dependent_settings': { | |
| 248 'cflags': ['-DUNIX_ENV=1'], | |
| 249 }, | |
| 250 }, { | |
| 251 'target_name': 'dng_dont_report_errors_flags', | |
| 252 'type': 'none', | |
| 253 'direct_dependent_settings': { | |
| 254 'cflags': [ | |
| 255 '-DqDNGReportErrors=0', | |
| 256 '-DqDNGValidate=0', | |
| 257 ], | |
| 258 }, | |
| 259 }, { | |
| 260 'target_name': 'dng_report_errors_flags', | |
| 261 'type': 'none', | |
| 262 'direct_dependent_settings': { | |
| 263 'cflags': ['-DqDNGReportErrors=1'], | |
| 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 |