blob: 098c3d0c9b72ff8b3c24fd6fef3b0219fe92a0b4 [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 \
Ying Wang741a1692013-04-09 22:05:28 -070029 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070030 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080031 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080032 liblogwrap \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070033 libcrypto
34
San Mehatf1b736b2009-10-10 17:22:08 -070035include $(CLEAR_VARS)
36
Kenny Rootacc9e7d2010-06-18 19:06:50 -070037LOCAL_MODULE := libvold
38
39LOCAL_SRC_FILES := $(common_src_files)
40
41LOCAL_C_INCLUDES := $(common_c_includes)
42
43LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
44
Ken Sumrallf0679f02012-04-01 23:58:44 -070045LOCAL_STATIC_LIBRARIES := libfs_mgr
46
Kenny Rootacc9e7d2010-06-18 19:06:50 -070047LOCAL_MODULE_TAGS := eng tests
48
49include $(BUILD_STATIC_LIBRARY)
50
51include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070052
53LOCAL_MODULE:= vold
54
Kenny Rootacc9e7d2010-06-18 19:06:50 -070055LOCAL_SRC_FILES := \
56 main.cpp \
57 $(common_src_files)
58
59LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070060
Nick Kralevich9713ed42012-02-23 13:20:30 -080061LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070062
Kenny Rootacc9e7d2010-06-18 19:06:50 -070063LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070064
Ken Sumrallf0679f02012-04-01 23:58:44 -070065LOCAL_STATIC_LIBRARIES := libfs_mgr
66
San Mehatf1b736b2009-10-10 17:22:08 -070067include $(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)