1 BUILD_VOLD2 := false 2 ifneq ($(TARGET_SIMULATOR),true) 3 BUILD_VOLD2 := true 4 endif 5 6 ifeq ($(BUILD_VOLD2),true) 7 8 LOCAL_PATH:= $(call my-dir) 9 10 common_src_files := \ 11 VolumeManager.cpp \ 12 CommandListener.cpp \ 13 VoldCommand.cpp \ 14 NetlinkManager.cpp \ 15 NetlinkHandler.cpp \ 16 Volume.cpp \ 17 DirectVolume.cpp \ 18 logwrapper.c \ 19 Process.cpp \ 20 Fat.cpp \ 21 Loop.cpp \ 22 Devmapper.cpp \ 23 ResponseCode.cpp \ 24 Xwarp.cpp 25 26 common_c_includes := \ 27 $(KERNEL_HEADERS) \ 28 external/openssl/include 29 30 common_shared_libraries := \ 31 libsysutils \ 32 libcutils \ 33 libdiskconfig \ 34 libcrypto 35 36 include $(CLEAR_VARS) 37 38 LOCAL_MODULE := libvold 39 40 LOCAL_SRC_FILES := $(common_src_files) 41 42 LOCAL_C_INCLUDES := $(common_c_includes) 43 44 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 45 46 LOCAL_MODULE_TAGS := eng tests 47 48 include $(BUILD_STATIC_LIBRARY) 49 50 include $(CLEAR_VARS) 51 52 LOCAL_MODULE:= vold 53 54 LOCAL_SRC_FILES := \ 55 main.cpp \ 56 $(common_src_files) 57 58 LOCAL_C_INCLUDES := $(common_c_includes) 59 60 LOCAL_CFLAGS := 61 62 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) 63 64 include $(BUILD_EXECUTABLE) 65 66 include $(CLEAR_VARS) 67 68 LOCAL_SRC_FILES:= vdc.c 69 70 LOCAL_MODULE:= vdc 71 72 LOCAL_C_INCLUDES := $(KERNEL_HEADERS) 73 74 LOCAL_CFLAGS := 75 76 LOCAL_SHARED_LIBRARIES := libcutils 77 78 include $(BUILD_EXECUTABLE) 79 80 endif # ifeq ($(BUILD_VOLD,true) 81