blob: f4ba3f334ec524c56d0b021384501f5e4cf6aa19 [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 \
Daniel Rosenberge82df162014-08-15 22:19:23 +000024 system/extras/f2fs_utils \
Kenny Rootc4c70f12013-06-14 12:11:38 -070025 external/openssl/include \
Paul Lawrence87999172014-02-20 12:21:31 -080026 external/scrypt/lib/crypto \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070027 frameworks/native/include \
28 system/security/keystore \
29 hardware/libhardware/include/hardware \
30 system/security/softkeymaster/include/keymaster
Kenny Rootacc9e7d2010-06-18 19:06:50 -070031
32common_shared_libraries := \
33 libsysutils \
Paul Lawrence87999172014-02-20 12:21:31 -080034 libbinder \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070035 libcutils \
Ying Wang741a1692013-04-09 22:05:28 -070036 liblog \
Kenny Rootacc9e7d2010-06-18 19:06:50 -070037 libdiskconfig \
Ken Sumrall5d4c68e2011-01-30 19:06:03 -080038 libhardware_legacy \
Rom Lemarchand2ba45aa2013-01-16 12:29:28 -080039 liblogwrap \
Ken Sumrall5cf759a2013-08-14 20:15:17 -070040 libext4_utils \
Daniel Rosenberge82df162014-08-15 22:19:23 +000041 libf2fs_sparseblock \
Robert Craigb9e3ba52014-02-04 10:53:00 -050042 libcrypto \
Paul Lawrence87999172014-02-20 12:21:31 -080043 libselinux \
Paul Lawrence69f4ebd2014-04-14 12:17:14 -070044 libutils \
45 libhardware \
46 libsoftkeymaster
Kenny Rootacc9e7d2010-06-18 19:06:50 -070047
Kenny Rootc4c70f12013-06-14 12:11:38 -070048common_static_libraries := \
49 libfs_mgr \
Geremy Condrac49f0f22013-08-07 13:12:41 -070050 libscrypt_static \
Paul Lawrence87999172014-02-20 12:21:31 -080051 libmincrypt \
52 libbatteryservice
Kenny Rootc4c70f12013-06-14 12:11:38 -070053
San Mehatf1b736b2009-10-10 17:22:08 -070054include $(CLEAR_VARS)
55
Dan Albertb2aaf3a2014-09-12 10:48:12 -070056LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Kenny Rootacc9e7d2010-06-18 19:06:50 -070057LOCAL_MODULE := libvold
Dan Albert084f0b32014-12-12 17:47:16 -080058LOCAL_CLANG := false
Kenny Rootacc9e7d2010-06-18 19:06:50 -070059LOCAL_SRC_FILES := $(common_src_files)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070060LOCAL_C_INCLUDES := $(common_c_includes)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070061LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
Kenny Rootc4c70f12013-06-14 12:11:38 -070062LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Kenny Rootacc9e7d2010-06-18 19:06:50 -070063LOCAL_MODULE_TAGS := eng tests
Tim Murray8439dc92014-12-15 11:56:11 -080064LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
Kenny Rootacc9e7d2010-06-18 19:06:50 -070065
Dan Albert66d84da2014-11-05 14:48:45 -080066LOCAL_CXX_STL := libc++
Kenny Rootacc9e7d2010-06-18 19:06:50 -070067include $(BUILD_STATIC_LIBRARY)
68
69include $(CLEAR_VARS)
San Mehatf1b736b2009-10-10 17:22:08 -070070
Dan Albertb2aaf3a2014-09-12 10:48:12 -070071LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
San Mehatf1b736b2009-10-10 17:22:08 -070072LOCAL_MODULE:= vold
Dan Albert084f0b32014-12-12 17:47:16 -080073LOCAL_CLANG := false
Kenny Rootacc9e7d2010-06-18 19:06:50 -070074LOCAL_SRC_FILES := \
75 main.cpp \
76 $(common_src_files)
77
78LOCAL_C_INCLUDES := $(common_c_includes)
Tim Murray8439dc92014-12-15 11:56:11 -080079LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
Kenny Rootacc9e7d2010-06-18 19:06:50 -070080LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
Kenny Rootc4c70f12013-06-14 12:11:38 -070081LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
Ken Sumrallf0679f02012-04-01 23:58:44 -070082
Dan Albert66d84da2014-11-05 14:48:45 -080083LOCAL_CXX_STL := libc++
San Mehatf1b736b2009-10-10 17:22:08 -070084include $(BUILD_EXECUTABLE)
85
86include $(CLEAR_VARS)
Kenny Root7b18a7b2010-03-15 13:13:41 -070087
Dan Albertb2aaf3a2014-09-12 10:48:12 -070088LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Dan Albert084f0b32014-12-12 17:47:16 -080089LOCAL_CLANG := false
Kenny Root7b18a7b2010-03-15 13:13:41 -070090LOCAL_SRC_FILES:= vdc.c
San Mehatf1b736b2009-10-10 17:22:08 -070091LOCAL_MODULE:= vdc
San Mehatf1b736b2009-10-10 17:22:08 -070092LOCAL_SHARED_LIBRARIES := libcutils
Tim Murray8439dc92014-12-15 11:56:11 -080093LOCAL_CFLAGS := -Werror -Wall -Wno-missing-field-initializers
San Mehatf1b736b2009-10-10 17:22:08 -070094
95include $(BUILD_EXECUTABLE)