San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
2 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 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 \ | ||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 11 | Process.cpp \ |
Kenny Root | 344ca10 | 2012-04-03 17:23:01 -0700 | [diff] [blame] | 12 | Ext4.cpp \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 13 | Fat.cpp \ |
14 | Loop.cpp \ | ||||
15 | Devmapper.cpp \ | ||||
16 | ResponseCode.cpp \ | ||||
Ken Sumrall | 8f869aa | 2010-12-03 03:47:09 -0800 | [diff] [blame] | 17 | Xwarp.cpp \ |
Ken Sumrall | 9caab76 | 2013-06-11 19:10:20 -0700 | [diff] [blame^] | 18 | VoldUtil.c \ |
Ken Sumrall | b87937c | 2013-03-19 21:46:39 -0700 | [diff] [blame] | 19 | fstrim.c \ |
Ken Sumrall | 8f869aa | 2010-12-03 03:47:09 -0800 | [diff] [blame] | 20 | cryptfs.c |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 21 | |
22 | common_c_includes := \ | ||||
23 | $(KERNEL_HEADERS) \ | ||||
Ken Sumrall | 3ed8236 | 2011-01-28 23:31:16 -0800 | [diff] [blame] | 24 | system/extras/ext4_utils \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 25 | external/openssl/include |
26 | |||||
27 | common_shared_libraries := \ | ||||
28 | libsysutils \ | ||||
29 | libcutils \ | ||||
Ying Wang | 741a169 | 2013-04-09 22:05:28 -0700 | [diff] [blame] | 30 | liblog \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 31 | libdiskconfig \ |
Ken Sumrall | 5d4c68e | 2011-01-30 19:06:03 -0800 | [diff] [blame] | 32 | libhardware_legacy \ |
Rom Lemarchand | 2ba45aa | 2013-01-16 12:29:28 -0800 | [diff] [blame] | 33 | liblogwrap \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 34 | libcrypto |
35 | |||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 36 | include $(CLEAR_VARS) |
37 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 38 | LOCAL_MODULE := libvold |
39 | |||||
40 | LOCAL_SRC_FILES := $(common_src_files) | ||||
41 | |||||
42 | LOCAL_C_INCLUDES := $(common_c_includes) | ||||
43 | |||||
44 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) | ||||
45 | |||||
Ken Sumrall | f0679f0 | 2012-04-01 23:58:44 -0700 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES := libfs_mgr |
47 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 48 | LOCAL_MODULE_TAGS := eng tests |
49 | |||||
50 | include $(BUILD_STATIC_LIBRARY) | ||||
51 | |||||
52 | include $(CLEAR_VARS) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 53 | |
54 | LOCAL_MODULE:= vold | ||||
55 | |||||
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 56 | LOCAL_SRC_FILES := \ |
57 | main.cpp \ | ||||
58 | $(common_src_files) | ||||
59 | |||||
60 | LOCAL_C_INCLUDES := $(common_c_includes) | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 61 | |
Nick Kralevich | 9713ed4 | 2012-02-23 13:20:30 -0800 | [diff] [blame] | 62 | LOCAL_CFLAGS := -Werror=format |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 63 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 64 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 65 | |
Ken Sumrall | f0679f0 | 2012-04-01 23:58:44 -0700 | [diff] [blame] | 66 | LOCAL_STATIC_LIBRARIES := libfs_mgr |
67 | |||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 68 | include $(BUILD_EXECUTABLE) |
69 | |||||
70 | include $(CLEAR_VARS) | ||||
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 71 | |
72 | LOCAL_SRC_FILES:= vdc.c | ||||
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 73 | |
74 | LOCAL_MODULE:= vdc | ||||
75 | |||||
76 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) | ||||
77 | |||||
78 | LOCAL_CFLAGS := | ||||
79 | |||||
80 | LOCAL_SHARED_LIBRARIES := libcutils | ||||
81 | |||||
82 | include $(BUILD_EXECUTABLE) |