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 \ |
| 36 | libcrypto |
| 37 | |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 38 | include $(CLEAR_VARS) |
| 39 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 40 | LOCAL_MODULE := libvold |
| 41 | |
| 42 | LOCAL_SRC_FILES := $(common_src_files) |
| 43 | |
| 44 | LOCAL_C_INCLUDES := $(common_c_includes) |
| 45 | |
| 46 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
| 47 | |
| 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 | |
| 62 | LOCAL_CFLAGS := |
| 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 | |
| 66 | include $(BUILD_EXECUTABLE) |
| 67 | |
| 68 | include $(CLEAR_VARS) |
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 69 | |
| 70 | LOCAL_SRC_FILES:= vdc.c |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 71 | |
| 72 | LOCAL_MODULE:= vdc |
| 73 | |
| 74 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 75 | |
| 76 | LOCAL_CFLAGS := |
| 77 | |
| 78 | LOCAL_SHARED_LIBRARIES := libcutils |
| 79 | |
| 80 | include $(BUILD_EXECUTABLE) |
| 81 | |
| 82 | endif # ifeq ($(BUILD_VOLD,true) |