aboutsummaryrefslogtreecommitdiffstats
path: root/libdiskconfig
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-07-12 23:03:45 -0700
committerKenny Root <kroot@google.com>2010-07-12 23:03:45 -0700
commitbedaac52a677c152e051c17ef456cc9e43f3812b (patch)
tree5ebe78b29eafeddb519d6b66f1e5d2841eebc6c6 /libdiskconfig
parent07b3d09e841ea8544f72c3b2bf268f07df6357f7 (diff)
downloadsystem_core-bedaac52a677c152e051c17ef456cc9e43f3812b.zip
system_core-bedaac52a677c152e051c17ef456cc9e43f3812b.tar.gz
system_core-bedaac52a677c152e051c17ef456cc9e43f3812b.tar.bz2
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
Diffstat (limited to 'libdiskconfig')
-rw-r--r--libdiskconfig/Android.mk5
1 files changed, 2 insertions, 3 deletions
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