1 LOCAL_PATH:= $(call my-dir) 2 3 common_src_files := \ 4 VolumeManager.cpp \ 5 CommandListener.cpp \ 6 VoldCommand.cpp \ 7 NetlinkManager.cpp \ 8 NetlinkHandler.cpp \ 9 Volume.cpp \ 10 DirectVolume.cpp \ 11 Process.cpp \ 12 Ext4.cpp \ 13 Fat.cpp \ 14 Loop.cpp \ 15 Devmapper.cpp \ 16 ResponseCode.cpp \ 17 Xwarp.cpp \ 18 VoldUtil.c \ 19 fstrim.c \ 20 cryptfs.c 21 22 common_c_includes := \ 23 $(KERNEL_HEADERS) \ 24 system/extras/ext4_utils \ 25 external/openssl/include \ 26 external/stlport/stlport \ 27 bionic \ 28 external/scrypt/lib/crypto 29 30 common_shared_libraries := \ 31 libsysutils \ 32 libstlport \ 33 libcutils \ 34 liblog \ 35 libdiskconfig \ 36 libhardware_legacy \ 37 liblogwrap \ 38 libext4_utils \ 39 libcrypto 40 41 common_static_libraries := \ 42 libfs_mgr \ 43 libscrypt_static \ 44 libmincrypt 45 46 include $(CLEAR_VARS) 47 48 LOCAL_MODULE := libvold 49 50 LOCAL_SRC_FILES := $(common_src_files) 51 52 LOCAL_C_INCLUDES := $(common_c_includes) 53 54 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 55 56 LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 57 58 LOCAL_MODULE_TAGS := eng tests 59 60 include $(BUILD_STATIC_LIBRARY) 61 62 include $(CLEAR_VARS) 63 64 LOCAL_MODULE:= vold 65 66 LOCAL_SRC_FILES := \ 67 main.cpp \ 68 $(common_src_files) 69 70 LOCAL_C_INCLUDES := $(common_c_includes) 71 72 LOCAL_CFLAGS := -Werror=format 73 74 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 75 76 LOCAL_STATIC_LIBRARIES := $(common_static_libraries) 77 78 include $(BUILD_EXECUTABLE) 79 80 include $(CLEAR_VARS) 81 82 LOCAL_SRC_FILES:= vdc.c 83 84 LOCAL_MODULE:= vdc 85 86 LOCAL_C_INCLUDES := $(KERNEL_HEADERS) 87 88 LOCAL_CFLAGS := 89 90 LOCAL_SHARED_LIBRARIES := libcutils 91 92 include $(BUILD_EXECUTABLE) 93