From 07b3d09e841ea8544f72c3b2bf268f07df6357f7 Mon Sep 17 00:00:00 2001 From: Bruce Beare Date: Mon, 28 Jun 2010 15:16:22 -0700 Subject: Build the host version of libdiskconfig Change-Id: I5541d02676b12b728492321ec1344bd826ee560a Signed-off-by: Bruce Beare --- libdiskconfig/Android.mk | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'libdiskconfig') diff --git a/libdiskconfig/Android.mk b/libdiskconfig/Android.mk index 1d0ecb4da..ef08bec19 100644 --- a/libdiskconfig/Android.mk +++ b/libdiskconfig/Android.mk @@ -3,17 +3,26 @@ include $(CLEAR_VARS) ifneq ($(TARGET_SIMULATOR),true) -include $(CLEAR_VARS) -LOCAL_SRC_FILES := \ +commonSources := \ diskconfig.c \ diskutils.c \ write_lst.c \ config_mbr.c +include $(CLEAR_VARS) +LOCAL_SRC_FILES := $(commonSources) LOCAL_MODULE := libdiskconfig LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc - include $(BUILD_SHARED_LIBRARY) +include $(CLEAR_VARS) +LOCAL_SRC_FILES := $(commonSources) +LOCAL_MODULE := libdiskconfig_host +LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils +LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE +include $(BUILD_HOST_STATIC_LIBRARY) + + + endif # ! TARGET_SIMULATOR -- cgit v1.2.3-54-g00ecf