Android.mk revision e82df164e8128ec9df0072c4a4f3d92e79a0f5f4
1LOCAL_PATH:= $(call my-dir)
2
3common_src_files := \
4	VolumeManager.cpp \
5	CommandListener.cpp \
6	VoldCommand.cpp \
7	NetlinkManager.cpp \
8	NetlinkHandler.cpp \
9	Volume.cpp \
10	DirectVolume.cpp \
11	Process.cpp \
12	Ext4.cpp \
13	Fat.cpp \
14	Loop.cpp \
15	Devmapper.cpp \
16	ResponseCode.cpp \
17	CheckBattery.cpp \
18	VoldUtil.c \
19	fstrim.c \
20	cryptfs.c
21
22common_c_includes := \
23	system/extras/ext4_utils \
24	system/extras/f2fs_utils \
25	external/openssl/include \
26	external/stlport/stlport \
27	bionic \
28	external/scrypt/lib/crypto \
29	frameworks/native/include \
30	system/security/keystore \
31	hardware/libhardware/include/hardware \
32	system/security/softkeymaster/include/keymaster
33
34common_shared_libraries := \
35	libsysutils \
36	libstlport \
37	libbinder \
38	libcutils \
39	liblog \
40	libdiskconfig \
41	libhardware_legacy \
42	liblogwrap \
43	libext4_utils \
44	libf2fs_sparseblock \
45	libcrypto \
46	libselinux \
47	libutils \
48	libhardware \
49	libsoftkeymaster
50
51common_static_libraries := \
52	libfs_mgr \
53	libscrypt_static \
54	libmincrypt \
55	libbatteryservice
56
57include $(CLEAR_VARS)
58
59LOCAL_MODULE := libvold
60
61LOCAL_SRC_FILES := $(common_src_files)
62
63LOCAL_C_INCLUDES := $(common_c_includes)
64
65LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
66
67LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
68
69LOCAL_MODULE_TAGS := eng tests
70
71include $(BUILD_STATIC_LIBRARY)
72
73include $(CLEAR_VARS)
74
75LOCAL_MODULE:= vold
76
77LOCAL_SRC_FILES := \
78	main.cpp \
79	$(common_src_files)
80
81LOCAL_C_INCLUDES := $(common_c_includes)
82
83LOCAL_CFLAGS := -Werror=format
84
85LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
86
87LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
88
89include $(BUILD_EXECUTABLE)
90
91include $(CLEAR_VARS)
92
93LOCAL_SRC_FILES:= vdc.c
94
95LOCAL_MODULE:= vdc
96
97LOCAL_C_INCLUDES :=
98
99LOCAL_CFLAGS := 
100
101LOCAL_SHARED_LIBRARIES := libcutils
102
103include $(BUILD_EXECUTABLE)
104