OSDN Git Service

Merge "prevent ioctl_init() to write outside buffer"
[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         system/extras/f2fs_utils \
25         external/scrypt/lib/crypto \
26         frameworks/native/include \
27         system/security/keystore \
28         hardware/libhardware/include/hardware \
29         system/security/softkeymaster/include/keymaster
30
31 common_shared_libraries := \
32         libsysutils \
33         libbinder \
34         libcutils \
35         liblog \
36         libdiskconfig \
37         libhardware_legacy \
38         liblogwrap \
39         libext4_utils \
40         libf2fs_sparseblock \
41         libcrypto \
42         libselinux \
43         libutils \
44         libhardware \
45         libsoftkeymaster
46
47 common_static_libraries := \
48         libfs_mgr \
49         libscrypt_static \
50         libmincrypt \
51         libbatteryservice
52
53 vold_conlyflags := -std=c11
54 vold_cflags := -Werror -Wall -Wno-missing-field-initializers
55
56 include $(CLEAR_VARS)
57
58 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
59 LOCAL_MODULE := libvold
60 LOCAL_CLANG := true
61 LOCAL_SRC_FILES := $(common_src_files)
62 LOCAL_C_INCLUDES := $(common_c_includes)
63 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
64 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
65 LOCAL_MODULE_TAGS := eng tests
66 LOCAL_CFLAGS := $(vold_cflags)
67 LOCAL_CONLYFLAGS := $(vold_conlyflags)
68
69 include $(BUILD_STATIC_LIBRARY)
70
71 include $(CLEAR_VARS)
72
73 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
74 LOCAL_MODULE:= vold
75 LOCAL_CLANG := true
76 LOCAL_SRC_FILES := \
77         main.cpp \
78         $(common_src_files)
79
80 LOCAL_C_INCLUDES := $(common_c_includes)
81 LOCAL_CFLAGS := $(vold_cflags)
82 LOCAL_CONLYFLAGS := $(vold_conlyflags)
83 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
84 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
85
86 include $(BUILD_EXECUTABLE)
87
88 include $(CLEAR_VARS)
89
90 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
91 LOCAL_CLANG := true
92 LOCAL_SRC_FILES:= vdc.c
93 LOCAL_MODULE:= vdc
94 LOCAL_SHARED_LIBRARIES := libcutils
95 LOCAL_CFLAGS := $(vold_cflags)
96 LOCAL_CONLYFLAGS := $(vold_conlyflags)
97
98 include $(BUILD_EXECUTABLE)