blob: 9ad0edd0ac3d6dcd2245448a3648ab7eeb68f3b7 [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 := \
Ken Sumrall3ed82362011-01-28 23:31:16 -080023 system/extras/ext4_utils \
Kenny Rootc4c70f12013-06-14 12:11:38 -070024 external/openssl/include \
Jeff Sharkey0de365f2013-10-16 16:24:19 -070025 external/stlport/stlport \
26 bionic \
Kenny Rootc4c70f12013-06-14 12:11:38 -070027 external/scrypt/lib/crypto
Kenny Rootacc9e7d2010-06-18 19:06:50 -070028
29common_shared_libraries := \
30 libsysutils \
Jeff Sharkey0de365f2013-10-16 16:24:19 -070031 libstlport \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070032 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070033 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070034 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080035 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080036 liblogwrap \
Ken Sumrall5cf759a2013-08-14 20:15:17 -070037 libext4_utils \
Robert Craigb9e3ba52014-02-04 10:53:00 -050038 libcrypto \
39 libselinux
Kenny Rootacc9e7d2010-06-18 19:06:50 -070040
Kenny Rootc4c70f12013-06-14 12:11:38 -070041common_static_libraries := \
42 libfs_mgr \
Geremy Condrac49f0f22013-08-07 13:12:41 -070043 libscrypt_static \
Ken Sumrall5cf759a2013-08-14 20:15:17 -070044 libmincrypt
Kenny Rootc4c70f12013-06-14 12:11:38 -070045
San Mehatf1b736b2009-10-10 17:22:08 -070046include $(CLEAR_VARS)
47
Kenny Rootacc9e7d2010-06-18 19:06:50 -070048LOCAL_MODULE := libvold
49
50LOCAL_SRC_FILES := $(common_src_files)
51
52LOCAL_C_INCLUDES := $(common_c_includes)
53
54LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
55
Kenny Rootc4c70f12013-06-14 12:11:38 -070056LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070057
Kenny Rootacc9e7d2010-06-18 19:06:50 -070058LOCAL_MODULE_TAGS := eng tests
59
60include $(BUILD_STATIC_LIBRARY)
61
62include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070063
64LOCAL_MODULE:= vold
65
Kenny Rootacc9e7d2010-06-18 19:06:50 -070066LOCAL_SRC_FILES := \
67 main.cpp \
68 $(common_src_files)
69
70LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070071
Nick Kralevich9713ed42012-02-23 13:20:30 -080072LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070073
Kenny Rootacc9e7d2010-06-18 19:06:50 -070074LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070075
Kenny Rootc4c70f12013-06-14 12:11:38 -070076LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070077
San Mehatf1b736b2009-10-10 17:22:08 -070078include $(BUILD_EXECUTABLE)
79
80include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070081
82LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070083
84LOCAL_MODULE:= vdc
85
Colin Cross23b571b2014-01-22 23:59:16 -080086LOCAL_C_INCLUDES :=
San Mehatf1b736b2009-10-10 17:22:08 -070087
88LOCAL_CFLAGS :=
89
90LOCAL_SHARED_LIBRARIES := libcutils
91
92include $(BUILD_EXECUTABLE)