blob: 336ebddeb6a9968cc7a1c34b112a0043f2873344 [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
Dees_Troy83bd4832013-05-04 12:39:56 +00006 LOCAL_SRC_FILES:= src/oaes.c \
7 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
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 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
21 LOCAL_MODULE_TAGS := eng
22 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
Dees_Troy83bd4832013-05-04 12:39:56 +000025 LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c
26 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
32 LOCAL_MODULE_TAGS := eng
33 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 Yonkerc590e7b2014-02-11 11:43:29 -060036 LOCAL_SRC_FILES = src/oaes_lib.c src/isaac/rand.c
37 LOCAL_STATIC_LIBRARIES = libc
38 include $(BUILD_STATIC_LIBRARY)
Dees_Troy83bd4832013-05-04 12:39:56 +000039endif