blob: e353a4f0a9b8598bfa84fab7c5854bce4e45fecc [file] [log] [blame]
San Mehat11f78c12010-01-03 08:59:37 -08001BUILD_VOLD2 := false
2ifneq ($(TARGET_SIMULATOR),true)
3 BUILD_VOLD2 := true
4endif
5
San Mehatf1b736b2009-10-10 17:22:08 -07006ifeq ($(BUILD_VOLD2),true)
7
8LOCAL_PATH:= $(call my-dir)
9
Kenny Rootacc9e7d2010-06-18 19:06:50 -070010common_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
26common_c_includes := \
27 $(KERNEL_HEADERS) \
28 external/openssl/include
29
30common_shared_libraries := \
31 libsysutils \
32 libcutils \
33 libdiskconfig \
34 libcrypto
35
San Mehatf1b736b2009-10-10 17:22:08 -070036include $(CLEAR_VARS)
37
Kenny Rootacc9e7d2010-06-18 19:06:50 -070038LOCAL_MODULE := libvold
39
40LOCAL_SRC_FILES := $(common_src_files)
41
42LOCAL_C_INCLUDES := $(common_c_includes)
43
44LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
45
46LOCAL_MODULE_TAGS := eng tests
47
48include $(BUILD_STATIC_LIBRARY)
49
50include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070051
52LOCAL_MODULE:= vold
53
Kenny Rootacc9e7d2010-06-18 19:06:50 -070054LOCAL_SRC_FILES := \
55 main.cpp \
56 $(common_src_files)
57
58LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070059
60LOCAL_CFLAGS :=
61
Kenny Rootacc9e7d2010-06-18 19:06:50 -070062LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070063
64include $(BUILD_EXECUTABLE)
65
66include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070067
68LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070069
70LOCAL_MODULE:= vdc
71
72LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
73
74LOCAL_CFLAGS :=
75
76LOCAL_SHARED_LIBRARIES := libcutils
77
78include $(BUILD_EXECUTABLE)
79
80endif # ifeq ($(BUILD_VOLD,true)