Android.mk 1.42 KB
Newer Older
1 2
LOCAL_PATH:= $(call my-dir)

3 4 5 6 7 8 9 10 11
common_src_files := \
	VolumeManager.cpp \
	CommandListener.cpp \
	VoldCommand.cpp \
	NetlinkManager.cpp \
	NetlinkHandler.cpp \
	Volume.cpp \
	DirectVolume.cpp \
	Process.cpp \
12
	Ext4.cpp \
13 14 15 16
	Fat.cpp \
	Loop.cpp \
	Devmapper.cpp \
	ResponseCode.cpp \
17
	Xwarp.cpp \
18
	VoldUtil.c \
19
	fstrim.c \
20
	cryptfs.c
21 22 23

common_c_includes := \
	$(KERNEL_HEADERS) \
24
	system/extras/ext4_utils \
Kenny Root's avatar
Kenny Root committed
25 26
	external/openssl/include \
	external/scrypt/lib/crypto
27 28 29 30

common_shared_libraries := \
	libsysutils \
	libcutils \
Ying Wang's avatar
Ying Wang committed
31
	liblog \
32
	libdiskconfig \
33
	libhardware_legacy \
34
	liblogwrap \
35 36
	libcrypto

Kenny Root's avatar
Kenny Root committed
37 38 39 40
common_static_libraries := \
	libfs_mgr \
	libscrypt_static

41 42
include $(CLEAR_VARS)

43 44 45 46 47 48 49 50
LOCAL_MODULE := libvold

LOCAL_SRC_FILES := $(common_src_files)

LOCAL_C_INCLUDES := $(common_c_includes)

LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)

Kenny Root's avatar
Kenny Root committed
51
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
52

53 54 55 56 57
LOCAL_MODULE_TAGS := eng tests

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
58 59 60

LOCAL_MODULE:= vold

61 62 63 64 65
LOCAL_SRC_FILES := \
	main.cpp \
	$(common_src_files)

LOCAL_C_INCLUDES := $(common_c_includes)
66

Nick Kralevich's avatar
Nick Kralevich committed
67
LOCAL_CFLAGS := -Werror=format
68

69
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
70

Kenny Root's avatar
Kenny Root committed
71
LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
72

73 74 75
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
76 77

LOCAL_SRC_FILES:= vdc.c
78 79 80 81 82 83 84 85 86 87

LOCAL_MODULE:= vdc

LOCAL_C_INCLUDES := $(KERNEL_HEADERS)

LOCAL_CFLAGS := 

LOCAL_SHARED_LIBRARIES := libcutils

include $(BUILD_EXECUTABLE)