San Mehat | 11f78c1 | 2010-01-03 08:59:37 -0800 | [diff] [blame] | 1 | BUILD_VOLD2 := false |
| 2 | ifneq ($(TARGET_SIMULATOR),true) |
| 3 | BUILD_VOLD2 := true |
| 4 | endif |
| 5 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 6 | ifeq ($(BUILD_VOLD2),true) |
| 7 | |
| 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 10 | common_src_files := \ |
| 11 | VolumeManager.cpp \ |
| 12 | CommandListener.cpp \ |
| 13 | VoldCommand.cpp \ |
| 14 | NetlinkManager.cpp \ |
| 15 | NetlinkHandler.cpp \ |
| 16 | Volume.cpp \ |
| 17 | DirectVolume.cpp \ |
| 18 | logwrapper.c \ |
| 19 | Process.cpp \ |
| 20 | Fat.cpp \ |
| 21 | Loop.cpp \ |
| 22 | Devmapper.cpp \ |
| 23 | ResponseCode.cpp \ |
Ken Sumrall | 8f869aa | 2010-12-03 03:47:09 -0800 | [diff] [blame] | 24 | Xwarp.cpp \ |
| 25 | cryptfs.c |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 26 | |
| 27 | common_c_includes := \ |
| 28 | $(KERNEL_HEADERS) \ |
Ken Sumrall | 3ed8236 | 2011-01-28 23:31:16 -0800 | [diff] [blame] | 29 | system/extras/ext4_utils \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 30 | external/openssl/include |
| 31 | |
| 32 | common_shared_libraries := \ |
| 33 | libsysutils \ |
| 34 | libcutils \ |
| 35 | libdiskconfig \ |
Ken Sumrall | 5d4c68e | 2011-01-30 19:06:03 -0800 | [diff] [blame] | 36 | libhardware_legacy \ |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 37 | libcrypto |
| 38 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 39 | include $(CLEAR_VARS) |
| 40 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 41 | LOCAL_MODULE := libvold |
| 42 | |
| 43 | LOCAL_SRC_FILES := $(common_src_files) |
| 44 | |
| 45 | LOCAL_C_INCLUDES := $(common_c_includes) |
| 46 | |
| 47 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
| 48 | |
| 49 | LOCAL_MODULE_TAGS := eng tests |
| 50 | |
| 51 | include $(BUILD_STATIC_LIBRARY) |
| 52 | |
| 53 | include $(CLEAR_VARS) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 54 | |
| 55 | LOCAL_MODULE:= vold |
| 56 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 57 | LOCAL_SRC_FILES := \ |
| 58 | main.cpp \ |
| 59 | $(common_src_files) |
| 60 | |
| 61 | LOCAL_C_INCLUDES := $(common_c_includes) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 62 | |
| 63 | LOCAL_CFLAGS := |
| 64 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 65 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 66 | |
| 67 | include $(BUILD_EXECUTABLE) |
| 68 | |
| 69 | include $(CLEAR_VARS) |
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 70 | |
| 71 | LOCAL_SRC_FILES:= vdc.c |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 72 | |
| 73 | LOCAL_MODULE:= vdc |
| 74 | |
| 75 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 76 | |
| 77 | LOCAL_CFLAGS := |
| 78 | |
| 79 | LOCAL_SHARED_LIBRARIES := libcutils |
| 80 | |
| 81 | include $(BUILD_EXECUTABLE) |
| 82 | |
| 83 | endif # ifeq ($(BUILD_VOLD,true) |