OSDN Git Service

cryptfs: makefs F2FS if the partition type is F2FS.
[android-x86/system-vold.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 common_src_files := \
4         VolumeManager.cpp \
5         CommandListener.cpp \
6         VoldCommand.cpp \
7         NetlinkManager.cpp \
8         NetlinkHandler.cpp \
9         Volume.cpp \
10         DirectVolume.cpp \
11         Process.cpp \
12         Ext4.cpp \
13         Fat.cpp \
14         Loop.cpp \
15         Devmapper.cpp \
16         ResponseCode.cpp \
17         CheckBattery.cpp \
18         VoldUtil.c \
19         fstrim.c \
20         cryptfs.c
21
22 common_c_includes := \
23         system/extras/ext4_utils \
24         external/openssl/include \
25         external/stlport/stlport \
26         bionic \
27         external/scrypt/lib/crypto \
28         frameworks/native/include \
29         system/security/keystore \
30         hardware/libhardware/include/hardware \
31         system/security/softkeymaster/include/keymaster
32
33 common_shared_libraries := \
34         libsysutils \
35         libstlport \
36         libbinder \
37         libcutils \
38         liblog \
39         libdiskconfig \
40         libhardware_legacy \
41         liblogwrap \
42         libext4_utils \
43         libcrypto \
44         libselinux \
45         libutils \
46         libhardware \
47         libsoftkeymaster
48
49 common_static_libraries := \
50         libfs_mgr \
51         libscrypt_static \
52         libmincrypt \
53         libbatteryservice
54
55 include $(CLEAR_VARS)
56
57 LOCAL_MODULE := libvold
58
59 LOCAL_SRC_FILES := $(common_src_files)
60
61 LOCAL_C_INCLUDES := $(common_c_includes)
62
63 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
64
65 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
66
67 LOCAL_MODULE_TAGS := eng tests
68
69 include $(BUILD_STATIC_LIBRARY)
70
71 include $(CLEAR_VARS)
72
73 LOCAL_MODULE:= vold
74
75 LOCAL_SRC_FILES := \
76         main.cpp \
77         $(common_src_files)
78
79 LOCAL_C_INCLUDES := $(common_c_includes)
80
81 LOCAL_CFLAGS := -Werror=format
82
83 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
84
85 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
86
87 include $(BUILD_EXECUTABLE)
88
89 include $(CLEAR_VARS)
90
91 LOCAL_SRC_FILES:= vdc.c
92
93 LOCAL_MODULE:= vdc
94
95 LOCAL_C_INCLUDES :=
96
97 LOCAL_CFLAGS := 
98
99 LOCAL_SHARED_LIBRARIES := libcutils
100
101 include $(BUILD_EXECUTABLE)