blob: 48df6134fbd3e61205912fcaeb05731a6840cf30 [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 \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080036 libhardware_legacy \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070037 libcrypto
38
San Mehatf1b736b2009-10-10 17:22:08 -070039include $(CLEAR_VARS)
40
Kenny Rootacc9e7d2010-06-18 19:06:50 -070041LOCAL_MODULE := libvold
42
43LOCAL_SRC_FILES := $(common_src_files)
44
45LOCAL_C_INCLUDES := $(common_c_includes)
46
47LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
48
49LOCAL_MODULE_TAGS := eng tests
50
51include $(BUILD_STATIC_LIBRARY)
52
53include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070054
55LOCAL_MODULE:= vold
56
Kenny Rootacc9e7d2010-06-18 19:06:50 -070057LOCAL_SRC_FILES := \
58 main.cpp \
59 $(common_src_files)
60
61LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070062
63LOCAL_CFLAGS :=
64
Kenny Rootacc9e7d2010-06-18 19:06:50 -070065LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070066
67include $(BUILD_EXECUTABLE)
68
69include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070070
71LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070072
73LOCAL_MODULE:= vdc
74
75LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
76
77LOCAL_CFLAGS :=
78
79LOCAL_SHARED_LIBRARIES := libcutils
80
81include $(BUILD_EXECUTABLE)
82
83endif # ifeq ($(BUILD_VOLD,true)