blob: 635642553071d824c86c0480ad504b26355d0ab1
1 | LOCAL_PATH:= $(call my-dir) |
2 | |
3 | common_src_files := \ |
4 | VolumeManager.cpp \ |
5 | DroidVold.cpp \ |
6 | NetlinkManager.cpp \ |
7 | NetlinkHandler.cpp \ |
8 | Process.cpp \ |
9 | fs/Ext4.cpp \ |
10 | fs/Vfat.cpp \ |
11 | fs/Ntfs.cpp \ |
12 | fs/Exfat.cpp \ |
13 | fs/Hfsplus.cpp \ |
14 | fs/Iso9660.cpp \ |
15 | fs/Sdcardfs.cpp \ |
16 | Disk.cpp \ |
17 | VolumeBase.cpp \ |
18 | PublicVolume.cpp \ |
19 | ResponseCode.cpp \ |
20 | Utils.cpp |
21 | |
22 | common_c_includes := \ |
23 | system/libhidl/transport/include/hidl \ |
24 | external/libcxx/include |
25 | |
26 | common_shared_libraries := \ |
27 | vendor.amlogic.hardware.droidvold@1.0_vendor \ |
28 | libhidlbase \ |
29 | libhidltransport \ |
30 | libsysutils \ |
31 | libcutils \ |
32 | liblog \ |
33 | liblogwrap \ |
34 | libext4_utils \ |
35 | libselinux \ |
36 | libutils \ |
37 | libbinder \ |
38 | libbase \ |
39 | libext2_blkid \ |
40 | libext2fs \ |
41 | libext2_com_err \ |
42 | libext2_e2p |
43 | |
44 | |
45 | common_static_libraries := \ |
46 | libfs_mgr \ |
47 | |
48 | vold_conlyflags := -std=c11 |
49 | vold_cflags := -W -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter |
50 | |
51 | include $(CLEAR_VARS) |
52 | |
53 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
54 | LOCAL_MODULE := droidvold |
55 | LOCAL_CLANG := true |
56 | LOCAL_SRC_FILES := \ |
57 | main.cpp \ |
58 | $(common_src_files) |
59 | |
60 | LOCAL_INIT_RC := droidvold.rc |
61 | |
62 | LOCAL_C_INCLUDES := $(common_c_includes) |
63 | LOCAL_CFLAGS := $(vold_cflags) |
64 | LOCAL_CFLAGS += -DHAS_NTFS_3G |
65 | LOCAL_CFLAGS += -DHAS_VIRTUAL_CDROM |
66 | LOCAL_CONLYFLAGS := $(vold_conlyflags) |
67 | |
68 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
69 | LOCAL_STATIC_LIBRARIES := $(common_static_libraries) |
70 | |
71 | LOCAL_PROPRIETARY_MODULE := true |
72 | |
73 | include $(BUILD_EXECUTABLE) |
74 |