From bedaac52a677c152e051c17ef456cc9e43f3812b Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 12 Jul 2010 23:03:45 -0700 Subject: Disable building libdiskconfig on non-Linux hosts libdiskconfig depends deeply on some Linux-specific things like /usr/include/linux/fs.h which don't exist on other OSes. Disable building the host library for those platforms. Change-Id: Ibccdfaa65be788f049ea3c1500f884c8d541e60b --- libdiskconfig/Android.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libdiskconfig') diff --git a/libdiskconfig/Android.mk b/libdiskconfig/Android.mk index ef08bec..c887955 100644 --- a/libdiskconfig/Android.mk +++ b/libdiskconfig/Android.mk @@ -3,7 +3,6 @@ include $(CLEAR_VARS) ifneq ($(TARGET_SIMULATOR),true) - commonSources := \ diskconfig.c \ diskutils.c \ @@ -16,13 +15,13 @@ LOCAL_MODULE := libdiskconfig LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc include $(BUILD_SHARED_LIBRARY) +ifeq ($(HOST_OS),linux) 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 # HOST_OS == linux endif # ! TARGET_SIMULATOR -- cgit v1.1