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 |
Matt Mower | db22044 | 2014-10-31 22:43:59 -0500 | [diff] [blame] | 6 | LOCAL_MODULE_TAGS := eng optional |
| 7 | LOCAL_CFLAGS := |
Dees_Troy | 2c4e443 | 2013-04-18 16:38:28 +0000 | [diff] [blame] | 8 | LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\" |
| 9 | ifeq ($(TW_INCLUDE_CRYPTO_SAMSUNG), true) |
| 10 | LOCAL_CFLAGS += -DTW_INCLUDE_CRYPTO_SAMSUNG=\"$(TW_INCLUDE_CRYPTO_SAMSUNG)\" |
| 11 | LOCAL_LDFLAGS += -ldl |
| 12 | LOCAL_STATIC_LIBRARIES += libcrypt_samsung |
| 13 | endif |
| 14 | ifneq ($(TW_INTERNAL_STORAGE_PATH),) |
| 15 | LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH) |
| 16 | endif |
| 17 | ifneq ($(TW_EXTERNAL_STORAGE_PATH),) |
| 18 | LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH) |
| 19 | endif |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 20 | LOCAL_SRC_FILES = cryptfs.c |
| 21 | LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include |
| 22 | LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto |
| 23 | |
| 24 | include $(BUILD_SHARED_LIBRARY) |
Trevor Drake | 27fab9b | 2013-05-16 01:58:13 +0100 | [diff] [blame] | 25 | endif |