2017-09-29 10:32:27 -07:00
|
|
|
cc_defaults {
|
|
|
|
|
name: "piex_default_cflags",
|
|
|
|
|
cflags: ["-Wall", "-Werror", "-Wsign-compare"],
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-01 17:37:01 -08:00
|
|
|
cc_library_static {
|
|
|
|
|
name: "libbinary_parse",
|
2018-07-10 16:07:54 +01:00
|
|
|
host_supported: true,
|
2017-09-29 10:32:27 -07:00
|
|
|
defaults: ["piex_default_cflags"],
|
2017-06-14 19:03:15 +09:00
|
|
|
vendor_available: true,
|
2016-12-01 17:37:01 -08:00
|
|
|
srcs: [
|
|
|
|
|
"src/binary_parse/cached_paged_byte_array.cc",
|
|
|
|
|
"src/binary_parse/range_checked_byte_ptr.cc",
|
|
|
|
|
],
|
2018-11-29 14:50:11 +00:00
|
|
|
target: {
|
|
|
|
|
windows: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-12-01 17:37:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
name: "libimage_type_recognition",
|
2018-07-10 16:07:54 +01:00
|
|
|
host_supported: true,
|
2017-09-29 10:32:27 -07:00
|
|
|
defaults: ["piex_default_cflags"],
|
2017-06-14 19:03:15 +09:00
|
|
|
vendor_available: true,
|
2016-12-01 17:37:01 -08:00
|
|
|
srcs: [
|
|
|
|
|
"src/image_type_recognition/image_type_recognition_lite.cc",
|
|
|
|
|
],
|
|
|
|
|
static_libs: ["libbinary_parse"],
|
2018-11-29 14:50:11 +00:00
|
|
|
target: {
|
|
|
|
|
windows: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-12-01 17:37:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
name: "libtiff_directory",
|
2018-07-10 16:07:54 +01:00
|
|
|
host_supported: true,
|
2017-09-29 10:32:27 -07:00
|
|
|
defaults: ["piex_default_cflags"],
|
2017-06-14 19:03:15 +09:00
|
|
|
vendor_available: true,
|
2016-12-01 17:37:01 -08:00
|
|
|
srcs: [
|
|
|
|
|
"src/tiff_directory/tiff_directory.cc",
|
|
|
|
|
],
|
|
|
|
|
static_libs: ["libbinary_parse"],
|
2018-11-29 14:50:11 +00:00
|
|
|
target: {
|
|
|
|
|
windows: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-12-01 17:37:01 -08:00
|
|
|
}
|
|
|
|
|
|
2019-06-27 19:31:37 +01:00
|
|
|
cc_library {
|
2016-12-01 17:37:01 -08:00
|
|
|
name: "libpiex",
|
2018-07-10 16:07:54 +01:00
|
|
|
host_supported: true,
|
2017-09-29 10:32:27 -07:00
|
|
|
defaults: ["piex_default_cflags"],
|
2017-05-17 14:31:25 -07:00
|
|
|
vendor_available: true,
|
2017-07-24 15:19:44 +09:00
|
|
|
vndk: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
2016-12-01 17:37:01 -08:00
|
|
|
srcs: [
|
|
|
|
|
"src/tiff_parser.cc",
|
|
|
|
|
"src/piex.cc",
|
|
|
|
|
],
|
2016-12-05 13:52:47 -08:00
|
|
|
export_include_dirs: ["."],
|
2016-12-01 17:37:01 -08:00
|
|
|
static_libs: [
|
|
|
|
|
"libbinary_parse",
|
|
|
|
|
"libimage_type_recognition",
|
|
|
|
|
"libtiff_directory",
|
|
|
|
|
],
|
2018-11-29 14:50:11 +00:00
|
|
|
target: {
|
|
|
|
|
windows: {
|
|
|
|
|
enabled: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-12-01 17:37:01 -08:00
|
|
|
}
|