blob: 71113dfc5d759c68be819aa9e3b46d81f139b678 [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 Sumrall9caab762013-06-11 19:10:20 -070018 VoldUtil.c \
Ken Sumrallb87937c2013-03-19 21:46:39 -070019 fstrim.c \
Ken Sumrall8f869aa2010-12-03 03:47:09 -080020 cryptfs.c
Kenny Rootacc9e7d2010-06-18 19:06:50 -070021
22common_c_includes := \
23 $(KERNEL_HEADERS) \
Ken Sumrall3ed82362011-01-28 23:31:16 -080024 system/extras/ext4_utils \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070025 external/openssl/include
26
27common_shared_libraries := \
28 libsysutils \
29 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070030 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070031 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080032 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080033 liblogwrap \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070034 libcrypto
35
San Mehatf1b736b2009-10-10 17:22:08 -070036include $(CLEAR_VARS)
37
Kenny Rootacc9e7d2010-06-18 19:06:50 -070038LOCAL_MODULE := libvold
39
40LOCAL_SRC_FILES := $(common_src_files)
41
42LOCAL_C_INCLUDES := $(common_c_includes)
43
44LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
45
Ken Sumrallf0679f02012-04-01 23:58:44 -070046LOCAL_STATIC_LIBRARIES := libfs_mgr
47
Kenny Rootacc9e7d2010-06-18 19:06:50 -070048LOCAL_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
Nick Kralevich9713ed42012-02-23 13:20:30 -080062LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070063
Kenny Rootacc9e7d2010-06-18 19:06:50 -070064LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070065
Ken Sumrallf0679f02012-04-01 23:58:44 -070066LOCAL_STATIC_LIBRARIES := libfs_mgr
67
San Mehatf1b736b2009-10-10 17:22:08 -070068include $(BUILD_EXECUTABLE)
69
70include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070071
72LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070073
74LOCAL_MODULE:= vdc
75
76LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
77
78LOCAL_CFLAGS :=
79
80LOCAL_SHARED_LIBRARIES := libcutils
81
82include $(BUILD_EXECUTABLE)