blob: 7c6b5bd4a15670de147e99f4fad27607758afb9b [file] [log] [blame]
Dees_Troy83bd4832013-05-04 12:39:56 +00001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true)
Ethan Yonkerc590e7b2014-02-11 11:43:29 -06005 # Build shared binary
Ethan Yonker6c41bfd2014-11-08 15:12:25 -06006 LOCAL_SRC_FILES:= src/oaes.c
Dees_Troy83bd4832013-05-04 12:39:56 +00007 LOCAL_C_INCLUDES := \
Matt Mower55c75ca2014-08-31 11:30:15 -05008 $(commands_recovery_local_path)/openaes/src/isaac \
9 $(commands_recovery_local_path)/openaes/inc
Dees_Troy83bd4832013-05-04 12:39:56 +000010 LOCAL_CFLAGS:= -g -c -W
11 LOCAL_MODULE:=openaes
bigbiffd58ba182020-03-23 10:02:29 -040012 LOCAL_MODULE_TAGS:= optional
bigbiff673c7ae2020-12-02 19:44:56 -050013 LOCAL_MODULE_CLASS := EXECUTABLES
bigbiffad58e1b2020-07-06 20:24:34 -040014 LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin
Dees_Troy83bd4832013-05-04 12:39:56 +000015 LOCAL_SHARED_LIBRARIES = libopenaes libc
16 include $(BUILD_EXECUTABLE)
17
Ethan Yonkerc590e7b2014-02-11 11:43:29 -060018 # Build shared library
Dees_Troy83bd4832013-05-04 12:39:56 +000019 include $(CLEAR_VARS)
20 LOCAL_MODULE := libopenaes
bigbiffd58ba182020-03-23 10:02:29 -040021 LOCAL_MODULE_TAGS := optional
Dees_Troy83bd4832013-05-04 12:39:56 +000022 LOCAL_C_INCLUDES := \
Matt Mower55c75ca2014-08-31 11:30:15 -050023 $(commands_recovery_local_path)/openaes/src/isaac \
24 $(commands_recovery_local_path)/openaes/inc
Ethan Yonker6c41bfd2014-11-08 15:12:25 -060025 LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c src/ftime.c
Dees_Troy83bd4832013-05-04 12:39:56 +000026 LOCAL_SHARED_LIBRARIES = libc
27 include $(BUILD_SHARED_LIBRARY)
Ethan Yonkerc590e7b2014-02-11 11:43:29 -060028
29 # Build static library
30 include $(CLEAR_VARS)
31 LOCAL_MODULE := libopenaes_static
bigbiffd58ba182020-03-23 10:02:29 -040032 LOCAL_MODULE_TAGS := optional
Ethan Yonkerc590e7b2014-02-11 11:43:29 -060033 LOCAL_C_INCLUDES := \
Matt Mower55c75ca2014-08-31 11:30:15 -050034 $(commands_recovery_local_path)/openaes/src/isaac \
35 $(commands_recovery_local_path)/openaes/inc
Ethan Yonker6c41bfd2014-11-08 15:12:25 -060036 LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c src/ftime.c
Ethan Yonkerc590e7b2014-02-11 11:43:29 -060037 LOCAL_STATIC_LIBRARIES = libc
38 include $(BUILD_STATIC_LIBRARY)
Dees_Troy83bd4832013-05-04 12:39:56 +000039endif