blob: 3b96aab0caa3bc3a37592654f9a63a11eb893811 [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 \
Ken Sumrall8f869aa2010-12-03 03:47:09 -080024 Xwarp.cpp \
25 cryptfs.c
Kenny Rootacc9e7d2010-06-18 19:06:50 -070026
27common_c_includes := \
28 $(KERNEL_HEADERS) \
Ken Sumrall3ed82362011-01-28 23:31:16 -080029 system/extras/ext4_utils \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070030 external/openssl/include
31
32common_shared_libraries := \
33 libsysutils \
34 libcutils \
35 libdiskconfig \
36 libcrypto
37
San Mehatf1b736b2009-10-10 17:22:08 -070038include $(CLEAR_VARS)
39
Kenny Rootacc9e7d2010-06-18 19:06:50 -070040LOCAL_MODULE := libvold
41
42LOCAL_SRC_FILES := $(common_src_files)
43
44LOCAL_C_INCLUDES := $(common_c_includes)
45
46LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
47
48LOCAL_MODULE_TAGS := eng tests
49
50include $(BUILD_STATIC_LIBRARY)
51
52include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070053
54LOCAL_MODULE:= vold
55
Kenny Rootacc9e7d2010-06-18 19:06:50 -070056LOCAL_SRC_FILES := \
57 main.cpp \
58 $(common_src_files)
59
60LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070061
62LOCAL_CFLAGS :=
63
Kenny Rootacc9e7d2010-06-18 19:06:50 -070064LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070065
66include $(BUILD_EXECUTABLE)
67
68include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070069
70LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070071
72LOCAL_MODULE:= vdc
73
74LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
75
76LOCAL_CFLAGS :=
77
78LOCAL_SHARED_LIBRARIES := libcutils
79
80include $(BUILD_EXECUTABLE)
81
82endif # ifeq ($(BUILD_VOLD,true)