blob: 5616c195ac223d2cf0194b6aee284031c0a6b413 [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
Matt Mowerdb220442014-10-31 22:43:59 -05006LOCAL_MODULE_TAGS := eng optional
7LOCAL_CFLAGS :=
Dees_Troy2c4e4432013-04-18 16:38:28 +00008LOCAL_CFLAGS += -DCRYPTO_FS_TYPE=\"$(TW_CRYPTO_FS_TYPE)\"
9ifeq ($(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
13endif
14ifneq ($(TW_INTERNAL_STORAGE_PATH),)
15 LOCAL_CFLAGS += -DTW_INTERNAL_STORAGE_PATH=$(TW_INTERNAL_STORAGE_PATH)
16endif
17ifneq ($(TW_EXTERNAL_STORAGE_PATH),)
18 LOCAL_CFLAGS += -DTW_EXTERNAL_STORAGE_PATH=$(TW_EXTERNAL_STORAGE_PATH)
19endif
Dees_Troy2673cec2013-04-02 20:22:16 +000020LOCAL_SRC_FILES = cryptfs.c
21LOCAL_C_INCLUDES += system/extras/ext4_utils external/openssl/include
22LOCAL_SHARED_LIBRARIES += libc liblog libcutils libcrypto
23
24include $(BUILD_SHARED_LIBRARY)
Trevor Drake27fab9b2013-05-16 01:58:13 +010025endif