Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
that | ceb7b8e | 2014-12-09 23:15:16 +0100 | [diff] [blame^] | 2 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | common_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 | |
| 17 | common_shared_libraries := \ |
| 18 | libsysutils \ |
| 19 | libstlport \ |
| 20 | libbinder \ |
| 21 | libcutils \ |
| 22 | liblog \ |
| 23 | libdiskconfig \ |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 24 | liblogwrap \ |
| 25 | libext4_utils \ |
| 26 | libf2fs_sparseblock \ |
| 27 | libcrypto \ |
| 28 | libselinux \ |
| 29 | libutils \ |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 30 | libminhardware \ |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 31 | libsoftkeymaster |
| 32 | |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 33 | common_shared_libraries := libcrypto libselinux libhardware libsoftkeymaster libcutils |
| 34 | |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 35 | LOCAL_MODULE := libcryptfslollipop |
| 36 | LOCAL_MODULE_TAGS := eng optional |
| 37 | LOCAL_CFLAGS := |
| 38 | LOCAL_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 Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 48 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libmincrypttwrp |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 49 | LOCAL_C_INCLUDES := external/openssl/include $(common_c_includes) |
Ethan Yonker | 253368a | 2014-11-25 15:00:52 -0600 | [diff] [blame] | 50 | LOCAL_WHOLE_STATIC_LIBRARIES += libscrypttwrp_static |
| 51 | |
| 52 | include $(BUILD_SHARED_LIBRARY) |
| 53 | |
| 54 | include $(CLEAR_VARS) |
| 55 | |
| 56 | LOCAL_SHARED_LIBRARIES := libcutils liblog |
| 57 | |
| 58 | LOCAL_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)\libminhardware |
| 59 | |
| 60 | LOCAL_CFLAGS += -DQEMU_HARDWARE |
| 61 | QEMU_HARDWARE := true |
| 62 | |
| 63 | LOCAL_SHARED_LIBRARIES += libdl |
| 64 | |
| 65 | LOCAL_SRC_FILES += libminhardware/hardware.c |
| 66 | |
| 67 | LOCAL_MODULE:= libminhardware |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 68 | |
| 69 | include $(BUILD_SHARED_LIBRARY) |
| 70 | endif |