blob: 669d9afa0cafa49028190c895189fffdfad879c6 [file] [log] [blame]
San Mehatf1b736b2009-10-10 17:22:08 -07001LOCAL_PATH:= $(call my-dir)
2
Kenny Rootacc9e7d2010-06-18 19:06:50 -07003common_src_files := \
4 VolumeManager.cpp \
5 CommandListener.cpp \
6 VoldCommand.cpp \
7 NetlinkManager.cpp \
8 NetlinkHandler.cpp \
9 Volume.cpp \
10 DirectVolume.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070011 Process.cpp \
Kenny Root344ca102012-04-03 17:23:01 -070012 Ext4.cpp \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070013 Fat.cpp \
14 Loop.cpp \
15 Devmapper.cpp \
16 ResponseCode.cpp \
Ken Sumrall8f869aa2010-12-03 03:47:09 -080017 Xwarp.cpp \
Ken Sumrallb87937c2013-03-19 21:46:39 -070018 fstrim.c \
Ken Sumrall8f869aa2010-12-03 03:47:09 -080019 cryptfs.c
Kenny Rootacc9e7d2010-06-18 19:06:50 -070020
21common_c_includes := \
22 $(KERNEL_HEADERS) \
Ken Sumrall3ed82362011-01-28 23:31:16 -080023 system/extras/ext4_utils \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070024 external/openssl/include
25
26common_shared_libraries := \
27 libsysutils \
28 libcutils \
29 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080030 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080031 liblogwrap \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070032 libcrypto
33
San Mehatf1b736b2009-10-10 17:22:08 -070034include $(CLEAR_VARS)
35
Kenny Rootacc9e7d2010-06-18 19:06:50 -070036LOCAL_MODULE := libvold
37
38LOCAL_SRC_FILES := $(common_src_files)
39
40LOCAL_C_INCLUDES := $(common_c_includes)
41
42LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
43
Ken Sumrallf0679f02012-04-01 23:58:44 -070044LOCAL_STATIC_LIBRARIES := libfs_mgr
45
Kenny Rootacc9e7d2010-06-18 19:06:50 -070046LOCAL_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
Nick Kralevich9713ed42012-02-23 13:20:30 -080060LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070061
Kenny Rootacc9e7d2010-06-18 19:06:50 -070062LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070063
Ken Sumrallf0679f02012-04-01 23:58:44 -070064LOCAL_STATIC_LIBRARIES := libfs_mgr
65
San Mehatf1b736b2009-10-10 17:22:08 -070066include $(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)