blob: c7fc0df1bdcfb0f624fbd9f566a9dfca2c33eaff [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 Rootc4c70f12013-06-14 12:11:38 -070025 external/openssl/include \
26 external/scrypt/lib/crypto
Kenny Rootacc9e7d2010-06-18 19:06:50 -070027
28common_shared_libraries := \
29 libsysutils \
30 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070031 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070032 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080033 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080034 liblogwrap \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070035 libcrypto
36
Kenny Rootc4c70f12013-06-14 12:11:38 -070037common_static_libraries := \
38 libfs_mgr \
Geremy Condrac49f0f22013-08-07 13:12:41 -070039 libscrypt_static \
40 libmincrypt \
41 libext4_utils_static
Kenny Rootc4c70f12013-06-14 12:11:38 -070042
San Mehatf1b736b2009-10-10 17:22:08 -070043include $(CLEAR_VARS)
44
Kenny Rootacc9e7d2010-06-18 19:06:50 -070045LOCAL_MODULE := libvold
46
47LOCAL_SRC_FILES := $(common_src_files)
48
49LOCAL_C_INCLUDES := $(common_c_includes)
50
51LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
52
Kenny Rootc4c70f12013-06-14 12:11:38 -070053LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070054
Kenny Rootacc9e7d2010-06-18 19:06:50 -070055LOCAL_MODULE_TAGS := eng tests
56
57include $(BUILD_STATIC_LIBRARY)
58
59include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070060
61LOCAL_MODULE:= vold
62
Kenny Rootacc9e7d2010-06-18 19:06:50 -070063LOCAL_SRC_FILES := \
64 main.cpp \
65 $(common_src_files)
66
67LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070068
Nick Kralevich9713ed42012-02-23 13:20:30 -080069LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070070
Kenny Rootacc9e7d2010-06-18 19:06:50 -070071LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070072
Kenny Rootc4c70f12013-06-14 12:11:38 -070073LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070074
San Mehatf1b736b2009-10-10 17:22:08 -070075include $(BUILD_EXECUTABLE)
76
77include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070078
79LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070080
81LOCAL_MODULE:= vdc
82
83LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
84
85LOCAL_CFLAGS :=
86
87LOCAL_SHARED_LIBRARIES := libcutils
88
89include $(BUILD_EXECUTABLE)