blob: 1203db423f81fd215dfe3c2cd9eeb16c2b575b0b [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 \
Paul Lawrence87999172014-02-20 12:21:31 -080017 CheckBattery.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 \
Paul Lawrence87999172014-02-20 12:21:31 -080027 external/scrypt/lib/crypto \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070028 frameworks/native/include \
29 system/security/keystore \
30 hardware/libhardware/include/hardware \
31 system/security/softkeymaster/include/keymaster
Kenny Rootacc9e7d2010-06-18 19:06:50 -070032
33common_shared_libraries := \
34 libsysutils \
Jeff Sharkey0de365f2013-10-16 16:24:19 -070035 libstlport \
Paul Lawrence87999172014-02-20 12:21:31 -080036 libbinder \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070037 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070038 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070039 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080040 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080041 liblogwrap \
Ken Sumrall5cf759a2013-08-14 20:15:17 -070042 libext4_utils \
Robert Craigb9e3ba52014-02-04 10:53:00 -050043 libcrypto \
Paul Lawrence87999172014-02-20 12:21:31 -080044 libselinux \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070045 libutils \
46 libhardware \
47 libsoftkeymaster
Kenny Rootacc9e7d2010-06-18 19:06:50 -070048
Kenny Rootc4c70f12013-06-14 12:11:38 -070049common_static_libraries := \
50 libfs_mgr \
Geremy Condrac49f0f22013-08-07 13:12:41 -070051 libscrypt_static \
Paul Lawrence87999172014-02-20 12:21:31 -080052 libmincrypt \
53 libbatteryservice
Kenny Rootc4c70f12013-06-14 12:11:38 -070054
San Mehatf1b736b2009-10-10 17:22:08 -070055include $(CLEAR_VARS)
56
Kenny Rootacc9e7d2010-06-18 19:06:50 -070057LOCAL_MODULE := libvold
58
59LOCAL_SRC_FILES := $(common_src_files)
60
61LOCAL_C_INCLUDES := $(common_c_includes)
62
63LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
64
Kenny Rootc4c70f12013-06-14 12:11:38 -070065LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070066
Kenny Rootacc9e7d2010-06-18 19:06:50 -070067LOCAL_MODULE_TAGS := eng tests
68
69include $(BUILD_STATIC_LIBRARY)
70
71include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070072
73LOCAL_MODULE:= vold
74
Kenny Rootacc9e7d2010-06-18 19:06:50 -070075LOCAL_SRC_FILES := \
76 main.cpp \
77 $(common_src_files)
78
79LOCAL_C_INCLUDES := $(common_c_includes)
San Mehatf1b736b2009-10-10 17:22:08 -070080
Nick Kralevich9713ed42012-02-23 13:20:30 -080081LOCAL_CFLAGS := -Werror=format
San Mehatf1b736b2009-10-10 17:22:08 -070082
Kenny Rootacc9e7d2010-06-18 19:06:50 -070083LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
San Mehatf1b736b2009-10-10 17:22:08 -070084
Kenny Rootc4c70f12013-06-14 12:11:38 -070085LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070086
San Mehatf1b736b2009-10-10 17:22:08 -070087include $(BUILD_EXECUTABLE)
88
89include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070090
91LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070092
93LOCAL_MODULE:= vdc
94
Colin Cross23b571b2014-01-22 23:59:16 -080095LOCAL_C_INCLUDES :=
San Mehatf1b736b2009-10-10 17:22:08 -070096
97LOCAL_CFLAGS :=
98
99LOCAL_SHARED_LIBRARIES := libcutils
100
101include $(BUILD_EXECUTABLE)