diff options
-rw-r--r-- | Android.bp | 99 | ||||
-rw-r--r-- | METADATA | 19 | ||||
-rw-r--r-- | MODULE_LICENSE_APACHE2 | 0 |
3 files changed, 118 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..d376d8f --- /dev/null +++ b/Android.bp @@ -0,0 +1,99 @@ +package { + default_applicable_licenses: ["external_piex_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "external_piex_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "LICENSE", + ], +} + +cc_defaults { + name: "piex_default_cflags", + cflags: ["-Wall", "-Werror", "-Wsign-compare"], +} + +cc_library_static { + name: "libbinary_parse", + host_supported: true, + defaults: ["piex_default_cflags"], + vendor_available: true, + product_available: true, + srcs: [ + "src/binary_parse/cached_paged_byte_array.cc", + "src/binary_parse/range_checked_byte_ptr.cc", + ], + target: { + windows: { + enabled: true, + }, + }, +} + +cc_library_static { + name: "libimage_type_recognition", + host_supported: true, + defaults: ["piex_default_cflags"], + vendor_available: true, + product_available: true, + srcs: [ + "src/image_type_recognition/image_type_recognition_lite.cc", + ], + static_libs: ["libbinary_parse"], + target: { + windows: { + enabled: true, + }, + }, +} + +cc_library_static { + name: "libtiff_directory", + host_supported: true, + defaults: ["piex_default_cflags"], + vendor_available: true, + product_available: true, + srcs: [ + "src/tiff_directory/tiff_directory.cc", + ], + static_libs: ["libbinary_parse"], + target: { + windows: { + enabled: true, + }, + }, +} + +cc_library { + name: "libpiex", + host_supported: true, + defaults: ["piex_default_cflags"], + vendor_available: true, + product_available: true, + vndk: { + enabled: true, + }, + srcs: [ + "src/piex.cc", + "src/piex_cr3.cc", + "src/tiff_parser.cc", + ], + export_include_dirs: ["."], + static_libs: [ + "libbinary_parse", + "libimage_type_recognition", + "libtiff_directory", + ], + target: { + windows: { + enabled: true, + }, + }, +} diff --git a/METADATA b/METADATA new file mode 100644 index 0000000..6af984a --- /dev/null +++ b/METADATA @@ -0,0 +1,19 @@ +name: "piex" +description: "The Preview Image Extractor (PIEX) is designed to find and extract the largest JPEG compressed preview image contained in a RAW file." +third_party { + url { + type: HOMEPAGE + value: "https://github.com/google/piex" + } + url { + type: GIT + value: "https://github.com/google/piex/" + } + version: "v0.27" + license_type: NOTICE + last_upgrade_date { + year: 2022 + month: 9 + day: 20 + } +} diff --git a/MODULE_LICENSE_APACHE2 b/MODULE_LICENSE_APACHE2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/MODULE_LICENSE_APACHE2 |