summaryrefslogtreecommitdiffstats
path: root/libdiskconfig
diff options
context:
space:
mode:
authorBruce Beare <brucex.j.beare@intel.com>2010-06-28 15:16:22 -0700
committerBruce Beare <brucex.j.beare@intel.com>2010-07-12 14:05:59 -0700
commit07b3d09e841ea8544f72c3b2bf268f07df6357f7 (patch)
tree8de500fffbd40fc9f6ade686de9f78bf19c43860 /libdiskconfig
parente94df975ff0d5ff23df5fb7b9102b5cfdd78641b (diff)
downloadsystem_core-07b3d09e841ea8544f72c3b2bf268f07df6357f7.zip
system_core-07b3d09e841ea8544f72c3b2bf268f07df6357f7.tar.gz
system_core-07b3d09e841ea8544f72c3b2bf268f07df6357f7.tar.bz2
Build the host version of libdiskconfig
Change-Id: I5541d02676b12b728492321ec1344bd826ee560a Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
Diffstat (limited to 'libdiskconfig')
-rw-r--r--libdiskconfig/Android.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/libdiskconfig/Android.mk b/libdiskconfig/Android.mk
index 1d0ecb4..ef08bec 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