Dees_Troy | b9d88ac | 2012-09-14 14:34:19 -0400 | [diff] [blame] | 1 | # This provides a rule to make libmincrypt as a shared library. |
| 2 | # As a static library, zip signature verification was crashing. |
| 3 | # Making it as a shared library seems to fix that issue. |
| 4 | |
| 5 | LOCAL_PATH := $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | LOCAL_MODULE_TAGS:= eng |
| 9 | LOCAL_MODULE := libmincrypt |
| 10 | LOCAL_SRC_FILES := ../../../system/core/libmincrypt/rsa.c ../../../system/core/libmincrypt/sha.c |
Dees_Troy | e515565 | 2013-01-07 21:06:50 +0000 | [diff] [blame] | 11 | |
| 12 | ifneq ($(wildcard system/core/libmincrypt/rsa_e_3.c),) |
| 13 | LOCAL_SRC_FILES += ../../../system/core/libmincrypt/rsa_e_3.c ../../../system/core/libmincrypt/rsa_e_f4.c |
| 14 | endif |
| 15 | |
Dees_Troy | b9d88ac | 2012-09-14 14:34:19 -0400 | [diff] [blame] | 16 | include $(BUILD_SHARED_LIBRARY) |