blob: ba9b0a1a948d14fc5990bb9e04e6bae7c07c2a25 [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 \
39 libscrypt_static
40
San Mehatf1b736b2009-10-10 17:22:08 -070041include $(CLEAR_VARS)
42
Kenny Rootacc9e7d2010-06-18 19:06:50 -070043LOCAL_MODULE := libvold
44
45LOCAL_SRC_FILES := $(common_src_files)
46
47LOCAL_C_INCLUDES := $(common_c_includes)
48
49LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
50
Kenny Rootc4c70f12013-06-14 12:11:38 -070051LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070052
Kenny Rootacc9e7d2010-06-18 19:06:50 -070053LOCAL_MODULE_TAGS := eng tests
54
55include $(BUILD_STATIC_LIBRARY)
56
57include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070058
59LOCAL_MODULE:= vold
60
Kenny Rootacc9e7d2010-06-18 19:06:50 -070061LOCAL_SRC_FILES := \
62 main.cpp \
63 $(common_src_files)
64
65LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070066
Nick Kralevich9713ed42012-02-23 13:20:30 -080067LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070068
Kenny Rootacc9e7d2010-06-18 19:06:50 -070069LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070070
Kenny Rootc4c70f12013-06-14 12:11:38 -070071LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070072
San Mehatf1b736b2009-10-10 17:22:08 -070073include $(BUILD_EXECUTABLE)
74
75include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070076
77LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070078
79LOCAL_MODULE:= vdc
80
81LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
82
83LOCAL_CFLAGS :=
84
85LOCAL_SHARED_LIBRARIES := libcutils
86
87include $(BUILD_EXECUTABLE)