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 := \ |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 8 | $(commands_recovery_local_path)/openaes/src/isaac \ |
| 9 | $(commands_recovery_local_path)/openaes/inc |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 := \ |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 23 | $(commands_recovery_local_path)/openaes/src/isaac \ |
| 24 | $(commands_recovery_local_path)/openaes/inc |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 := \ |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 34 | $(commands_recovery_local_path)/openaes/src/isaac \ |
| 35 | $(commands_recovery_local_path)/openaes/inc |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 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 |