diff options
author | Brian Carlstrom <bdc@google.com> | 2016-01-13 10:36:17 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-01-13 16:02:52 -0800 |
commit | 32c8d370d778a13ce094ac08470aa2a4aa6e9a0d (patch) | |
tree | 796b7e9be0a225e772efa1c86a2de7870ea4ed37 | |
parent | 06f1087a94f1e48298e89d77ccc51a0ced871958 (diff) | |
download | libpng-32c8d370d778a13ce094ac08470aa2a4aa6e9a0d.tar.gz |
Add libpng_ndk variant
Bug: 26513978
Change-Id: Ib4aa2276159d27414c7a8303556ae2646fbf4016
-rw-r--r-- | Android.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk index e96c2242c..7745eb0bf 100644 --- a/Android.mk +++ b/Android.mk @@ -48,7 +48,26 @@ LOCAL_MODULE_HOST_OS := darwin linux windows include $(BUILD_HOST_STATIC_LIBRARY) -# For the device (static) +# For the device (static) for NDK +# ===================================================== + +include $(CLEAR_VARS) +LOCAL_CLANG := true +LOCAL_SRC_FILES := $(common_SRC_FILES) +LOCAL_CFLAGS += $(common_CFLAGS) -ftrapv +LOCAL_CFLAGS_arm := $(my_cflags_arm) +LOCAL_ASFLAGS += $(common_ASFLAGS) +LOCAL_SRC_FILES_arm := $(my_src_files_arm) +LOCAL_CFLAGS_arm64 := $(my_cflags_arm64) +LOCAL_SRC_FILES_arm64 := $(my_src_files_arm) +LOCAL_SANITIZE := never +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) +LOCAL_SHARED_LIBRARIES := libz +LOCAL_MODULE:= libpng_ndk +LOCAL_SDK_VERSION := 14 +include $(BUILD_STATIC_LIBRARY) + +# For the device (static) for platform (retains fortify support) # ===================================================== include $(CLEAR_VARS) |