blob: c98d42875e7d784af0ade416cc4862ec1d2bcc75 [file] [log] [blame]
Ethan Yonker4eca40d2014-11-11 14:52:28 -06001LOCAL_PATH := $(call my-dir)
thatceb7b8e2014-12-09 23:15:16 +01002ifeq ($(TW_INCLUDE_CRYPTO), true)
Ethan Yonker4eca40d2014-11-11 14:52:28 -06003include $(CLEAR_VARS)
4
5common_c_includes := \
6 system/extras/ext4_utils \
7 system/extras/f2fs_utils \
8 external/openssl/include \
9 external/stlport/stlport \
10 bionic \
Dees Troy87da4242014-12-12 18:50:07 +000011 bootable/recovery/crypto/scrypt/lib/crypto \
Ethan Yonker4eca40d2014-11-11 14:52:28 -060012 frameworks/native/include \
13 system/security/keystore \
14 hardware/libhardware/include/hardware \
15 system/security/softkeymaster/include/keymaster
16
17common_shared_libraries := \
18 libsysutils \
19 libstlport \
20 libbinder \
21 libcutils \
22 liblog \
23 libdiskconfig \
Ethan Yonker4eca40d2014-11-11 14:52:28 -060024 liblogwrap \
25 libext4_utils \
26 libf2fs_sparseblock \
27 libcrypto \
28 libselinux \
29 libutils \
Ethan Yonker253368a2014-11-25 15:00:52 -060030 libminhardware \
Ethan Yonker4eca40d2014-11-11 14:52:28 -060031 libsoftkeymaster
32
Ethan Yonker253368a2014-11-25 15:00:52 -060033common_shared_libraries := libcrypto libselinux libhardware libsoftkeymaster libcutils
34
Ethan Yonker4eca40d2014-11-11 14:52:28 -060035LOCAL_MODULE := libcryptfslollipop
36LOCAL_MODULE_TAGS := eng optional
37LOCAL_CFLAGS :=
38LOCAL_SRC_FILES = cryptfs.c
39#LOCAL_C_INCLUDES += \
40# system/extras/ext4_utils \
41# external/openssl/include \
42# system/extras/f2fs_utils \
43# external/scrypt/lib/crypto \
44# system/security/keystore \
45# hardware/libhardware/include/hardware \
46# system/security/softkeymaster/include/keymaster
47#LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto libext4_utils
Ethan Yonker253368a2014-11-25 15:00:52 -060048LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libmincrypttwrp
Ethan Yonker4eca40d2014-11-11 14:52:28 -060049LOCAL_C_INCLUDES := external/openssl/include $(common_c_includes)
Ethan Yonker253368a2014-11-25 15:00:52 -060050LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static
51
52include $(BUILD_SHARED_LIBRARY)
53
Ethan Yonker4eca40d2014-11-11 14:52:28 -060054endif