mirror of
https://github.com/Evolution-X/external_piex
synced 2026-01-27 16:24:09 +00:00
Use -Werror in external/piex
Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib4d60122a7cd072d03206f53eb89e4f686f45c1f
This commit is contained in:
13
Android.bp
13
Android.bp
@@ -1,35 +1,41 @@
|
||||
cc_defaults {
|
||||
name: "piex_default_cflags",
|
||||
cflags: ["-Wall", "-Werror", "-Wsign-compare"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libbinary_parse",
|
||||
defaults: ["piex_default_cflags"],
|
||||
vendor_available: true,
|
||||
srcs: [
|
||||
"src/binary_parse/cached_paged_byte_array.cc",
|
||||
"src/binary_parse/range_checked_byte_ptr.cc",
|
||||
],
|
||||
cppflags: ["-Wsign-compare"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libimage_type_recognition",
|
||||
defaults: ["piex_default_cflags"],
|
||||
vendor_available: true,
|
||||
srcs: [
|
||||
"src/image_type_recognition/image_type_recognition_lite.cc",
|
||||
],
|
||||
static_libs: ["libbinary_parse"],
|
||||
cppflags: ["-Wsign-compare"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libtiff_directory",
|
||||
defaults: ["piex_default_cflags"],
|
||||
vendor_available: true,
|
||||
srcs: [
|
||||
"src/tiff_directory/tiff_directory.cc",
|
||||
],
|
||||
static_libs: ["libbinary_parse"],
|
||||
cppflags: ["-Wsign-compare"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libpiex",
|
||||
defaults: ["piex_default_cflags"],
|
||||
vendor_available: true,
|
||||
vndk: {
|
||||
enabled: true,
|
||||
@@ -44,5 +50,4 @@ cc_library_shared {
|
||||
"libimage_type_recognition",
|
||||
"libtiff_directory",
|
||||
],
|
||||
cppflags: ["-Wsign-compare"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user