Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | ifeq ($(TW_INCLUDE_L_CRYPTO), true) |
| 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 \ |
| 24 | libhardware_legacy \ |
| 25 | liblogwrap \ |
| 26 | libext4_utils \ |
| 27 | libf2fs_sparseblock \ |
| 28 | libcrypto \ |
| 29 | libselinux \ |
| 30 | libutils \ |
| 31 | libhardware \ |
| 32 | libsoftkeymaster |
| 33 | |
| 34 | LOCAL_MODULE := libcryptfslollipop |
| 35 | LOCAL_MODULE_TAGS := eng optional |
| 36 | LOCAL_CFLAGS := |
| 37 | LOCAL_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 Yonker | 560e65f | 2014-11-17 11:37:00 -0600 | [diff] [blame] | 47 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libmincrypttwrp liblogwrap |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 48 | LOCAL_C_INCLUDES := external/openssl/include $(common_c_includes) |
Ethan Yonker | 560e65f | 2014-11-17 11:37:00 -0600 | [diff] [blame] | 49 | LOCAL_WHOLE_STATIC_LIBRARIES += libfs_mgr libscrypt_static |
Ethan Yonker | 4eca40d | 2014-11-11 14:52:28 -0600 | [diff] [blame] | 50 | |
| 51 | include $(BUILD_SHARED_LIBRARY) |
| 52 | endif |