1# Copyright 2005 The Android Open Source Project 2# 3# Android.mk for TinyXml. 4# 5# Add -DTIXML_USE_STL to CFLAGS to use STL. 6# 7 8commonSources:= \ 9 tinyxml.cpp \ 10 tinyxmlparser.cpp \ 11 tinyxmlerror.cpp \ 12 tinystr.cpp 13 14commonFlags := \ 15 -Wno-undefined-bool-conversion \ 16 -Wno-missing-braces \ 17 -Wno-logical-op-parentheses \ 18 -Werror 19 20# For the host 21# ===================================================== 22LOCAL_PATH:= $(call my-dir) 23include $(CLEAR_VARS) 24 25LOCAL_SRC_FILES:= \ 26 $(commonSources) 27 28LOCAL_MODULE:= libtinyxml 29 30LOCAL_CFLAGS+= $(TOOL_CFLAGS) $(commonFlags) 31LOCAL_LDFLAGS:= $(TOOL_LDFLAGS) -lstdc++ -lc 32 33LOCAL_MULTILIB := both 34 35include $(BUILD_HOST_STATIC_LIBRARY) 36 37 38# For the device (static) 39# ===================================================== 40include $(CLEAR_VARS) 41 42LOCAL_SRC_FILES:= \ 43 $(commonSources) 44 45LOCAL_MODULE:= libtinyxml 46 47LOCAL_CFLAGS+= $(commonFlags) 48 49include $(BUILD_STATIC_LIBRARY) 50 51 52# For the device 53# ===================================================== 54include $(CLEAR_VARS) 55 56LOCAL_SRC_FILES:= \ 57 $(commonSources) 58 59LOCAL_MODULE:= libtinyxml 60 61LOCAL_VENDOR_MODULE := true 62 63LOCAL_CFLAGS+= $(commonFlags) 64 65include $(BUILD_SHARED_LIBRARY) 66 67 68