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 \ |
| 24 | Xwarp.cpp |
| 25 | |
| 26 | common_c_includes := \ |
| 27 | $(KERNEL_HEADERS) \ |
| 28 | external/openssl/include |
| 29 | |
| 30 | common_shared_libraries := \ |
| 31 | libsysutils \ |
| 32 | libcutils \ |
| 33 | libdiskconfig \ |
| 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 | |
| 46 | LOCAL_MODULE_TAGS := eng tests |
| 47 | |
| 48 | include $(BUILD_STATIC_LIBRARY) |
| 49 | |
| 50 | include $(CLEAR_VARS) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 51 | |
| 52 | LOCAL_MODULE:= vold |
| 53 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 54 | LOCAL_SRC_FILES := \ |
| 55 | main.cpp \ |
| 56 | $(common_src_files) |
| 57 | |
| 58 | LOCAL_C_INCLUDES := $(common_c_includes) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 59 | |
| 60 | LOCAL_CFLAGS := |
| 61 | |
Kenny Root | acc9e7d | 2010-06-18 19:06:50 -0700 | [diff] [blame] | 62 | LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 63 | |
| 64 | include $(BUILD_EXECUTABLE) |
| 65 | |
| 66 | include $(CLEAR_VARS) |
Kenny Root | 7b18a7b | 2010-03-15 13:13:41 -0700 | [diff] [blame] | 67 | |
| 68 | LOCAL_SRC_FILES:= vdc.c |
San Mehat | f1b736b | 2009-10-10 17:22:08 -0700 | [diff] [blame] | 69 | |
| 70 | LOCAL_MODULE:= vdc |
| 71 | |
| 72 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) |
| 73 | |
| 74 | LOCAL_CFLAGS := |
| 75 | |
| 76 | LOCAL_SHARED_LIBRARIES := libcutils |
| 77 | |
| 78 | include $(BUILD_EXECUTABLE) |
| 79 | |
| 80 | endif # ifeq ($(BUILD_VOLD,true) |