Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
Trevor Drake | 27fab9b | 2013-05-16 01:58:13 +0100 | [diff] [blame] | 2 | ifeq ($(TW_INCLUDE_CRYPTO), true) |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | LOCAL_MODULE := libcryptfsics |
| 6 | LOCAL_MODULE_TAGS := eng |
| 7 | LOCAL_MODULES_TAGS = optional |
| 8 | LOCAL_CFLAGS = |
Dees_Troy | 2c4e443 | 2013-04-18 16:38:28 +0000 | [diff] [blame] | 9 | LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\" |
| 10 | ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true) |
| 11 | LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO_SAMSUNG=\"$(TW_INCLUDE_CRYPTO_SAMSUNG)\" |
| 12 | LOCAL_LDFLAGS += -ldl |
| 13 | LOCAL_STATIC_LIBRARIES += libcrypt_samsung |
| 14 | endif |
| 15 | ifneq ($(TW_INTERNAL_STORAGE_PATH),) |
| 16 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) |
| 17 | endif |
| 18 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 19 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 20 | endif |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 21 | LOCAL_SRC_FILES = cryptfs.c |
| 22 | LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include |
| 23 | LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto |
| 24 | |
| 25 | include $(BUILD_SHARED_LIBRARY) |
Trevor Drake | 27fab9b | 2013-05-16 01:58:13 +0100 | [diff] [blame] | 26 | endif |