blob: da25eac30ac656f57f813fc88b674a6afdaa637a [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 \
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
54include $(CLEAR_VARS)
55
56LOCAL_SHARED_LIBRARIES := libcutils liblog
57
58LOCAL_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)\libminhardware
59
60LOCAL_CFLAGS += -DQEMU_HARDWARE
61QEMU_HARDWARE := true
62
63LOCAL_SHARED_LIBRARIES += libdl
64
65LOCAL_SRC_FILES += libminhardware/hardware.c
66
67LOCAL_MODULE:= libminhardware
Ethan Yonker4eca40d2014-11-11 14:52:28 -060068
69include $(BUILD_SHARED_LIBRARY)
70endif