Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 5 | # Build shared binary |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 6 | LOCAL_SRC_FILES:= src/oaes.c \ |
| 7 | LOCAL_C_INCLUDES := \ |
| 8 | bootable/recovery/openaes/src/isaac \ |
| 9 | bootable/recovery/openaes/inc |
| 10 | LOCAL_CFLAGS:= -g -c -W |
| 11 | LOCAL_MODULE:=openaes |
| 12 | LOCAL_MODULE_TAGS:= eng |
| 13 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 14 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 15 | LOCAL_SHARED_LIBRARIES = libopenaes libc |
| 16 | include $(BUILD_EXECUTABLE) |
| 17 | |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 18 | # Build shared library |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
| 20 | LOCAL_MODULE := libopenaes |
| 21 | LOCAL_MODULE_TAGS := eng |
| 22 | LOCAL_C_INCLUDES := \ |
| 23 | bootable/recovery/openaes/src/isaac \ |
| 24 | bootable/recovery/openaes/inc |
| 25 | LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c |
| 26 | LOCAL_SHARED_LIBRARIES = libc |
| 27 | include $(BUILD_SHARED_LIBRARY) |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 28 | |
| 29 | # Build static library |
| 30 | include $(CLEAR_VARS) |
| 31 | LOCAL_MODULE := libopenaes_static |
| 32 | LOCAL_MODULE_TAGS := eng |
| 33 | LOCAL_C_INCLUDES := \ |
| 34 | bootable/recovery/openaes/src/isaac \ |
| 35 | bootable/recovery/openaes/inc |
| 36 | LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c |
| 37 | LOCAL_STATIC_LIBRARIES = libc |
| 38 | include $(BUILD_STATIC_LIBRARY) |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 39 | endif |