diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-03-30 13:21:04 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-03-30 13:21:04 -0700 |
commit | 500c64aef290348a1c833983b7297bdc3f3262c4 (patch) | |
tree | 3df4d875c3a828a93ec30fabc467ea8230bdb534 /android/jni/Application.mk | |
parent | 95bbfb6023877ca25720f04203ef2aa2f691e995 (diff) | |
download | libusb-500c64aef290348a1c833983b7297bdc3f3262c4.tar.gz |
android: Update makefiles to include recent autobuild changes
Add C11, thread and visibility compiler flags. Enable additional
warnings and errors. Unify spacing amongst the makefiles.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'android/jni/Application.mk')
-rw-r--r-- | android/jni/Application.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/android/jni/Application.mk b/android/jni/Application.mk index f972a9e..12e57d1 100644 --- a/android/jni/Application.mk +++ b/android/jni/Application.mk @@ -18,6 +18,22 @@ APP_ABI := all +APP_CFLAGS := \ + -std=gnu11 \ + -Wall \ + -Wextra \ + -Wshadow \ + -Wunused \ + -Wwrite-strings \ + -Werror=format-security \ + -Werror=implicit-function-declaration \ + -Werror=implicit-int \ + -Werror=init-self \ + -Werror=missing-prototypes \ + -Werror=strict-prototypes \ + -Werror=undef \ + -Werror=unintialized + # Workaround for MIPS toolchain linker being unable to find liblog dependency # of shared object in NDK versions at least up to r9. # |