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 |
Ethan Yonker | 6c41bfd | 2014-11-08 15:12:25 -0600 | [diff] [blame] | 6 | LOCAL_SRC_FILES:= src/oaes.c |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 12 | LOCAL_MODULE_TAGS:= optional |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 13 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 14 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 21 | LOCAL_MODULE_TAGS := optional |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 |
Ethan Yonker | 6c41bfd | 2014-11-08 15:12:25 -0600 | [diff] [blame] | 25 | LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c src/ftime.c |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 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 |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 32 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 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 | 6c41bfd | 2014-11-08 15:12:25 -0600 | [diff] [blame] | 36 | LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c src/ftime.c |
Ethan Yonker | c590e7b | 2014-02-11 11:43:29 -0600 | [diff] [blame] | 37 | LOCAL_STATIC_LIBRARIES = libc |
| 38 | include $(BUILD_STATIC_LIBRARY) |
Dees_Troy | 83bd483 | 2013-05-04 12:39:56 +0000 | [diff] [blame] | 39 | endif |