2010-01-03 17:59:37 +01:00
|
|
|
BUILD_VOLD2 := false
|
|
|
|
ifneq ($(TARGET_SIMULATOR),true)
|
|
|
|
BUILD_VOLD2 := true
|
|
|
|
endif
|
|
|
|
|
2009-10-11 02:22:08 +02:00
|
|
|
ifeq ($(BUILD_VOLD2),true)
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
common_src_files := \
|
|
|
|
VolumeManager.cpp \
|
|
|
|
CommandListener.cpp \
|
|
|
|
VoldCommand.cpp \
|
|
|
|
NetlinkManager.cpp \
|
|
|
|
NetlinkHandler.cpp \
|
|
|
|
Volume.cpp \
|
|
|
|
DirectVolume.cpp \
|
|
|
|
logwrapper.c \
|
|
|
|
Process.cpp \
|
|
|
|
Fat.cpp \
|
|
|
|
Loop.cpp \
|
|
|
|
Devmapper.cpp \
|
|
|
|
ResponseCode.cpp \
|
|
|
|
Xwarp.cpp
|
|
|
|
|
|
|
|
common_c_includes := \
|
|
|
|
$(KERNEL_HEADERS) \
|
|
|
|
external/openssl/include
|
|
|
|
|
|
|
|
common_shared_libraries := \
|
|
|
|
libsysutils \
|
|
|
|
libcutils \
|
|
|
|
libdiskconfig \
|
|
|
|
libcrypto
|
|
|
|
|
2009-10-11 02:22:08 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_MODULE := libvold
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(common_src_files)
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
|
|
|
|
|
|
|
LOCAL_MODULE_TAGS := eng tests
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
LOCAL_MODULE:= vold
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.cpp \
|
|
|
|
$(common_src_files)
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(common_c_includes)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
LOCAL_CFLAGS :=
|
|
|
|
|
2010-06-19 04:06:50 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2010-03-15 21:13:41 +01:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= vdc.c
|
2009-10-11 02:22:08 +02:00
|
|
|
|
|
|
|
LOCAL_MODULE:= vdc
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
|
|
|
|
|
|
|
|
LOCAL_CFLAGS :=
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
endif # ifeq ($(BUILD_VOLD,true)
|