blob: 360cf6ccc7ec3e1f7d53b8352b2a99cdbf825ee2 [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 := \
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 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 := \
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 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 := \
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_Troy83bd4832013-05-04 12:39:56 +000039endif