| 1 |
load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| 2 |
|
| 3 |
cc_library( |
| 4 |
name = "dng_sdk", |
| 5 |
srcs = [ |
| 6 |
"source/dng_1d_function.cpp", |
| 7 |
"source/dng_1d_table.cpp", |
| 8 |
"source/dng_abort_sniffer.cpp", |
| 9 |
"source/dng_area_task.cpp", |
| 10 |
"source/dng_bad_pixels.cpp", |
| 11 |
"source/dng_bottlenecks.cpp", |
| 12 |
"source/dng_camera_profile.cpp", |
| 13 |
"source/dng_color_space.cpp", |
| 14 |
"source/dng_color_spec.cpp", |
| 15 |
"source/dng_date_time.cpp", |
| 16 |
"source/dng_exceptions.cpp", |
| 17 |
"source/dng_exif.cpp", |
| 18 |
"source/dng_file_stream.cpp", |
| 19 |
"source/dng_filter_task.cpp", |
| 20 |
"source/dng_fingerprint.cpp", |
| 21 |
"source/dng_gain_map.cpp", |
| 22 |
"source/dng_globals.cpp", |
| 23 |
"source/dng_host.cpp", |
| 24 |
"source/dng_hue_sat_map.cpp", |
| 25 |
"source/dng_ifd.cpp", |
| 26 |
"source/dng_image.cpp", |
| 27 |
"source/dng_image_writer.cpp", |
| 28 |
"source/dng_info.cpp", |
| 29 |
"source/dng_iptc.cpp", |
| 30 |
"source/dng_jpeg_image.cpp", |
| 31 |
"source/dng_jpeg_memory_source.cpp", |
| 32 |
"source/dng_lens_correction.cpp", |
| 33 |
"source/dng_linearization_info.cpp", |
| 34 |
"source/dng_lossless_jpeg.cpp", |
| 35 |
"source/dng_matrix.cpp", |
| 36 |
"source/dng_memory.cpp", |
| 37 |
"source/dng_memory_stream.cpp", |
| 38 |
"source/dng_misc_opcodes.cpp", |
| 39 |
"source/dng_mosaic_info.cpp", |
| 40 |
"source/dng_mutex.cpp", |
| 41 |
"source/dng_negative.cpp", |
| 42 |
"source/dng_opcode_list.cpp", |
| 43 |
"source/dng_opcodes.cpp", |
| 44 |
"source/dng_orientation.cpp", |
| 45 |
"source/dng_parse_utils.cpp", |
| 46 |
"source/dng_pixel_buffer.cpp", |
| 47 |
"source/dng_point.cpp", |
| 48 |
"source/dng_preview.cpp", |
| 49 |
"source/dng_pthread.cpp", |
| 50 |
"source/dng_rational.cpp", |
| 51 |
"source/dng_read_image.cpp", |
| 52 |
"source/dng_rect.cpp", |
| 53 |
"source/dng_ref_counted_block.cpp", |
| 54 |
"source/dng_reference.cpp", |
| 55 |
"source/dng_render.cpp", |
| 56 |
"source/dng_resample.cpp", |
| 57 |
"source/dng_safe_arithmetic.cpp", |
| 58 |
"source/dng_shared.cpp", |
| 59 |
"source/dng_simple_image.cpp", |
| 60 |
"source/dng_spline.cpp", |
| 61 |
"source/dng_stream.cpp", |
| 62 |
"source/dng_string.cpp", |
| 63 |
"source/dng_string_list.cpp", |
| 64 |
"source/dng_tag_types.cpp", |
| 65 |
"source/dng_temperature.cpp", |
| 66 |
"source/dng_tile_iterator.cpp", |
| 67 |
"source/dng_tone_curve.cpp", |
| 68 |
"source/dng_utils.cpp", |
| 69 |
"source/dng_xy_coord.cpp", |
| 70 |
], |
| 71 |
hdrs = [ |
| 72 |
"source/RawEnvironment.h", |
| 73 |
"source/dng_1d_function.h", |
| 74 |
"source/dng_1d_table.h", |
| 75 |
"source/dng_abort_sniffer.h", |
| 76 |
"source/dng_area_task.h", |
| 77 |
"source/dng_assertions.h", |
| 78 |
"source/dng_auto_ptr.h", |
| 79 |
"source/dng_bad_pixels.h", |
| 80 |
"source/dng_bottlenecks.h", |
| 81 |
"source/dng_camera_profile.h", |
| 82 |
"source/dng_classes.h", |
| 83 |
"source/dng_color_space.h", |
| 84 |
"source/dng_color_spec.h", |
| 85 |
"source/dng_date_time.h", |
| 86 |
"source/dng_errors.h", |
| 87 |
"source/dng_exceptions.h", |
| 88 |
"source/dng_exif.h", |
| 89 |
"source/dng_fast_module.h", |
| 90 |
"source/dng_file_stream.h", |
| 91 |
"source/dng_filter_task.h", |
| 92 |
"source/dng_fingerprint.h", |
| 93 |
"source/dng_flags.h", |
| 94 |
"source/dng_gain_map.h", |
| 95 |
"source/dng_globals.h", |
| 96 |
"source/dng_host.h", |
| 97 |
"source/dng_hue_sat_map.h", |
| 98 |
"source/dng_ifd.h", |
| 99 |
"source/dng_image.h", |
| 100 |
"source/dng_image_writer.h", |
| 101 |
"source/dng_info.h", |
| 102 |
"source/dng_iptc.h", |
| 103 |
"source/dng_jpeg_image.h", |
| 104 |
"source/dng_jpeg_memory_source.h", |
| 105 |
"source/dng_jpeglib.h", |
| 106 |
"source/dng_lens_correction.h", |
| 107 |
"source/dng_linearization_info.h", |
| 108 |
"source/dng_lossless_jpeg.h", |
| 109 |
"source/dng_matrix.h", |
| 110 |
"source/dng_memory.h", |
| 111 |
"source/dng_memory_stream.h", |
| 112 |
"source/dng_misc_opcodes.h", |
| 113 |
"source/dng_mosaic_info.h", |
| 114 |
"source/dng_mutex.h", |
| 115 |
"source/dng_negative.h", |
| 116 |
"source/dng_opcode_list.h", |
| 117 |
"source/dng_opcodes.h", |
| 118 |
"source/dng_orientation.h", |
| 119 |
"source/dng_parse_utils.h", |
| 120 |
"source/dng_pixel_buffer.h", |
| 121 |
"source/dng_point.h", |
| 122 |
"source/dng_preview.h", |
| 123 |
"source/dng_pthread.h", |
| 124 |
"source/dng_rational.h", |
| 125 |
"source/dng_read_image.h", |
| 126 |
"source/dng_rect.h", |
| 127 |
"source/dng_ref_counted_block.h", |
| 128 |
"source/dng_reference.h", |
| 129 |
"source/dng_render.h", |
| 130 |
"source/dng_resample.h", |
| 131 |
"source/dng_safe_arithmetic.h", |
| 132 |
"source/dng_sdk_limits.h", |
| 133 |
"source/dng_shared.h", |
| 134 |
"source/dng_simple_image.h", |
| 135 |
"source/dng_spline.h", |
| 136 |
"source/dng_stream.h", |
| 137 |
"source/dng_string.h", |
| 138 |
"source/dng_string_list.h", |
| 139 |
"source/dng_tag_codes.h", |
| 140 |
"source/dng_tag_types.h", |
| 141 |
"source/dng_tag_values.h", |
| 142 |
"source/dng_temperature.h", |
| 143 |
"source/dng_tile_iterator.h", |
| 144 |
"source/dng_tone_curve.h", |
| 145 |
"source/dng_types.h", |
| 146 |
"source/dng_uncopyable.h", |
| 147 |
"source/dng_utils.h", |
| 148 |
"source/dng_xy_coord.h", |
| 149 |
], |
| 150 |
defines = [ |
| 151 |
"qDNGBigEndian=0", # The GN rules had this defined publicly |
| 152 |
], |
| 153 |
includes = ["source"], |
| 154 |
local_defines = [ |
| 155 |
"qDNGReportErrors=0", |
| 156 |
"qDNGThreadSafe=1", |
| 157 |
"qDNGUseLibJPEG=1", |
| 158 |
"qDNGUseXMP=0", |
| 159 |
"qDNGValidate=0", |
| 160 |
"qDNGValidateTarget=1", |
| 161 |
"UNIX_ENV=1", |
| 162 |
], |
| 163 |
visibility = ["//visibility:public"], |
| 164 |
deps = [ |
| 165 |
"@libjpeg_turbo", |
| 166 |
"@zlib", |
| 167 |
], |
| 168 |
) |