1 cc_defaults { 2 name: "libdng_sdk-defaults", 3 srcs: [ 4 "source/dng_1d_function.cpp", 5 "source/dng_1d_table.cpp", 6 "source/dng_abort_sniffer.cpp", 7 "source/dng_area_task.cpp", 8 "source/dng_bad_pixels.cpp", 9 "source/dng_bottlenecks.cpp", 10 "source/dng_camera_profile.cpp", 11 "source/dng_color_space.cpp", 12 "source/dng_color_spec.cpp", 13 "source/dng_date_time.cpp", 14 "source/dng_exceptions.cpp", 15 "source/dng_exif.cpp", 16 "source/dng_file_stream.cpp", 17 "source/dng_filter_task.cpp", 18 "source/dng_fingerprint.cpp", 19 "source/dng_gain_map.cpp", 20 "source/dng_globals.cpp", 21 "source/dng_host.cpp", 22 "source/dng_hue_sat_map.cpp", 23 "source/dng_ifd.cpp", 24 "source/dng_image.cpp", 25 "source/dng_image_writer.cpp", 26 "source/dng_info.cpp", 27 "source/dng_iptc.cpp", 28 "source/dng_jpeg_image.cpp", 29 "source/dng_jpeg_memory_source.cpp", 30 "source/dng_lens_correction.cpp", 31 "source/dng_linearization_info.cpp", 32 "source/dng_lossless_jpeg.cpp", 33 "source/dng_matrix.cpp", 34 "source/dng_memory.cpp", 35 "source/dng_memory_stream.cpp", 36 "source/dng_misc_opcodes.cpp", 37 "source/dng_mosaic_info.cpp", 38 "source/dng_mutex.cpp", 39 "source/dng_negative.cpp", 40 "source/dng_opcode_list.cpp", 41 "source/dng_opcodes.cpp", 42 "source/dng_orientation.cpp", 43 "source/dng_parse_utils.cpp", 44 "source/dng_pixel_buffer.cpp", 45 "source/dng_point.cpp", 46 "source/dng_preview.cpp", 47 "source/dng_pthread.cpp", 48 "source/dng_rational.cpp", 49 "source/dng_read_image.cpp", 50 "source/dng_rect.cpp", 51 "source/dng_ref_counted_block.cpp", 52 "source/dng_reference.cpp", 53 "source/dng_render.cpp", 54 "source/dng_resample.cpp", 55 "source/dng_safe_arithmetic.cpp", 56 "source/dng_shared.cpp", 57 "source/dng_simple_image.cpp", 58 "source/dng_spline.cpp", 59 "source/dng_stream.cpp", 60 "source/dng_string.cpp", 61 "source/dng_string_list.cpp", 62 "source/dng_tag_types.cpp", 63 "source/dng_temperature.cpp", 64 "source/dng_tile_iterator.cpp", 65 "source/dng_tone_curve.cpp", 66 "source/dng_utils.cpp", 67 "source/dng_xy_coord.cpp", 68 "source/dng_xmp.cpp", 69 ], 70 cflags: [ 71 "-DUNIX_ENV=1", 72 "-DqDNGBigEndian=0", 73 "-DqDNGThreadSafe=1", 74 "-DqDNGUseLibJPEG=1", 75 "-DqDNGUseXMP=0", 76 "-DqDNGValidateTarget=1", 77 "-DqAndroid=1", 78 "-Wsign-compare", 79 "-Wno-reorder", 80 "-Wframe-larger-than=20000", 81 82 // Ignore unused parameters. 83 "-Wno-unused-parameter", 84 85 // Some integral return types are annotated with "const." 86 "-Wno-ignored-qualifiers", 87 ], 88 89 rtti: true, 90 cppflags: ["-fexceptions"], 91 92 clang: true, 93 sanitize: { 94 misc_undefined: [ 95 "unsigned-integer-overflow", 96 "signed-integer-overflow", 97 ], 98 }, 99 } 100 101 cc_library{ 102 name: "libdng_sdk", 103 defaults: ["libdng_sdk-defaults"], 104 105 cflags: ["-DqDNGValidate=0"], 106 107 shared_libs: [ 108 "libz", 109 "libjpeg", 110 ], 111 112 export_include_dirs: ["source"], 113 } 114 115 // dng sdk validating version static library 116 // This version will print out validation warnings/errors to stderr 117 // and is built against the NDK for use with CTS 118 // ======================================================== 119 120 cc_library_static { 121 name: "libdng_sdk_validate", 122 defaults: ["libdng_sdk-defaults"], 123 124 cflags: ["-DqDNGValidate=1"], 125 126 static_libs: ["libjpeg_static_ndk"], 127 shared_libs: ["libz"], 128 129 export_include_dirs: ["source"], 130 131 sdk_version: "24", 132 stl: "c++_static", 133 } 134 135 // dng sdk unittests for target 136 // ======================================================== 137 138 cc_binary { 139 name: "dng_validate", 140 defaults: ["libdng_sdk-defaults"], 141 srcs: ["source/dng_validate.cpp"], 142 143 cflags: ["-DqDNGValidate=1"], 144 145 shared_libs: [ 146 "libz", 147 "libjpeg", 148 ], 149 } 150