Android.mk revision b9e3ba56cb4075f894a73b02ee70571456494ac1
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	Xwarp.cpp \
18	VoldUtil.c \
19	fstrim.c \
20	cryptfs.c
21
22common_c_includes := \
23	system/extras/ext4_utils \
24	external/openssl/include \
25	external/stlport/stlport \
26	bionic \
27	external/scrypt/lib/crypto
28
29common_shared_libraries := \
30	libsysutils \
31	libstlport \
32	libcutils \
33	liblog \
34	libdiskconfig \
35	libhardware_legacy \
36	liblogwrap \
37	libext4_utils \
38	libcrypto \
39	libselinux
40
41common_static_libraries := \
42	libfs_mgr \
43	libscrypt_static \
44	libmincrypt
45
46include $(CLEAR_VARS)
47
48LOCAL_MODULE := libvold
49
50LOCAL_SRC_FILES := $(common_src_files)
51
52LOCAL_C_INCLUDES := $(common_c_includes)
53
54LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
55
56LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
57
58LOCAL_MODULE_TAGS := eng tests
59
60include $(BUILD_STATIC_LIBRARY)
61
62include $(CLEAR_VARS)
63
64LOCAL_MODULE:= vold
65
66LOCAL_SRC_FILES := \
67	main.cpp \
68	$(common_src_files)
69
70LOCAL_C_INCLUDES := $(common_c_includes)
71
72LOCAL_CFLAGS := -Werror=format
73
74LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
75
76LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
77
78include $(BUILD_EXECUTABLE)
79
80include $(CLEAR_VARS)
81
82LOCAL_SRC_FILES:= vdc.c
83
84LOCAL_MODULE:= vdc
85
86LOCAL_C_INCLUDES :=
87
88LOCAL_CFLAGS := 
89
90LOCAL_SHARED_LIBRARIES := libcutils
91
92include $(BUILD_EXECUTABLE)
93