blob: 40b4d5f952350ed113bf412f1e405f46fbcacf1b [file] [log] [blame]
Ethan Yonker4eca40d2014-11-11 14:52:28 -06001LOCAL_PATH := $(call my-dir)
2ifeq ($(TW_INCLUDE_L_CRYPTO), true)
3include $(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 \
11 external/scrypt/lib/crypto \
12 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 \
24 libhardware_legacy \
25 liblogwrap \
26 libext4_utils \
27 libf2fs_sparseblock \
28 libcrypto \
29 libselinux \
30 libutils \
31 libhardware \
32 libsoftkeymaster
33
34LOCAL_MODULE := libcryptfslollipop
35LOCAL_MODULE_TAGS := eng optional
36LOCAL_CFLAGS :=
37LOCAL_SRC_FILES = cryptfs.c
38#LOCAL_C_INCLUDES += \
39# system/extras/ext4_utils \
40# external/openssl/include \
41# system/extras/f2fs_utils \
42# external/scrypt/lib/crypto \
43# system/security/keystore \
44# hardware/libhardware/include/hardware \
45# system/security/softkeymaster/include/keymaster
46#LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto libext4_utils
Ethan Yonker560e65f2014-11-17 11:37:00 -060047LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libmincrypttwrp liblogwrap
Ethan Yonker4eca40d2014-11-11 14:52:28 -060048LOCAL_C_INCLUDES := external/openssl/include $(common_c_includes)
Ethan Yonker560e65f2014-11-17 11:37:00 -060049LOCAL_WHOLE_STATIC_LIBRARIES += libfs_mgr libscrypt_static
Ethan Yonker4eca40d2014-11-11 14:52:28 -060050
51include $(BUILD_SHARED_LIBRARY)
52endif