1LOCAL_PATH:= $(call my-dir) 2 3common_src_files := \ 4 VolumeManager.cpp \ 5 CommandListener.cpp \ 6 CryptCommandListener.cpp \ 7 VoldCommand.cpp \ 8 NetlinkManager.cpp \ 9 NetlinkHandler.cpp \ 10 Process.cpp \ 11 fs/Ext4.cpp \ 12 fs/F2fs.cpp \ 13 fs/Vfat.cpp \ 14 Loop.cpp \ 15 Devmapper.cpp \ 16 ResponseCode.cpp \ 17 CheckBattery.cpp \ 18 Ext4Crypt.cpp \ 19 VoldUtil.c \ 20 cryptfs.c \ 21 Disk.cpp \ 22 VolumeBase.cpp \ 23 PublicVolume.cpp \ 24 PrivateVolume.cpp \ 25 EmulatedVolume.cpp \ 26 Utils.cpp \ 27 MoveTask.cpp \ 28 Benchmark.cpp \ 29 TrimTask.cpp \ 30 31common_c_includes := \ 32 system/extras/ext4_utils \ 33 system/extras/f2fs_utils \ 34 external/scrypt/lib/crypto \ 35 frameworks/native/include \ 36 system/security/keystore \ 37 hardware/libhardware/include/hardware \ 38 system/security/softkeymaster/include/keymaster 39 40common_shared_libraries := \ 41 libsysutils \ 42 libbinder \ 43 libcutils \ 44 liblog \ 45 libdiskconfig \ 46 libhardware_legacy \ 47 liblogwrap \ 48 libext4_utils \ 49 libf2fs_sparseblock \ 50 libcrypto \ 51 libselinux \ 52 libutils \ 53 libhardware \ 54 libsoftkeymaster \ 55 libbase \ 56 57common_static_libraries := \ 58 libfs_mgr \ 59 libsquashfs_utils \ 60 libscrypt_static \ 61 libmincrypt \ 62 libbatteryservice 63 64vold_conlyflags := -std=c11 65vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter 66 67include $(CLEAR_VARS) 68 69LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 70LOCAL_MODULE := libvold 71LOCAL_CLANG := true 72LOCAL_SRC_FILES := $(common_src_files) 73LOCAL_C_INCLUDES := $(common_c_includes) 74LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 75LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 76LOCAL_MODULE_TAGS := eng tests 77LOCAL_CFLAGS := $(vold_cflags) 78LOCAL_CONLYFLAGS := $(vold_conlyflags) 79 80include $(BUILD_STATIC_LIBRARY) 81 82include $(CLEAR_VARS) 83 84LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 85LOCAL_MODULE:= vold 86LOCAL_CLANG := true 87LOCAL_SRC_FILES := \ 88 main.cpp \ 89 $(common_src_files) 90 91LOCAL_C_INCLUDES := $(common_c_includes) 92LOCAL_CFLAGS := $(vold_cflags) 93LOCAL_CONLYFLAGS := $(vold_conlyflags) 94 95ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) 96LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH) 97common_shared_libraries += libcryptfs_hw 98LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION 99endif 100 101LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 102LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 103 104include $(BUILD_EXECUTABLE) 105 106include $(CLEAR_VARS) 107 108LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 109LOCAL_CLANG := true 110LOCAL_SRC_FILES:= vdc.c 111LOCAL_MODULE:= vdc 112LOCAL_SHARED_LIBRARIES := libcutils 113LOCAL_CFLAGS := $(vold_cflags) 114LOCAL_CONLYFLAGS := $(vold_conlyflags) 115 116include $(BUILD_EXECUTABLE) 117