blob: fb8449db2fd9b3d8abe74b251dfdeb0249615715 [file] [log] [blame]
Dees_Troy2673cec2013-04-02 20:22:16 +00001LOCAL_PATH := $(call my-dir)
Trevor Drake27fab9b2013-05-16 01:58:13 +01002ifeq ($(TW_INCLUDE_CRYPTO), true)
Dees_Troy2673cec2013-04-02 20:22:16 +00003include $(CLEAR_VARS)
4
5LOCAL_MODULE := libcryptfsics
6LOCAL_MODULE_TAGS := eng
7LOCAL_MODULES_TAGS = optional
8LOCAL_CFLAGS =
Dees_Troy2c4e4432013-04-18 16:38:28 +00009LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\"
10ifeq ($(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
14endif
15ifneq ($(TW_INTERNAL_STORAGE_PATH),)
16 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH)
17endif
18ifneq ($(TW_EXTERNAL_STORAGE_PATH),)
19 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH)
20endif
Dees_Troy2673cec2013-04-02 20:22:16 +000021LOCAL_SRC_FILES = cryptfs.c
22LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
23LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto
24
25include $(BUILD_SHARED_LIBRARY)
Trevor Drake27fab9b2013-05-16 01:58:13 +010026endif