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 14# For the host 15# ===================================================== 16LOCAL_PATH:= $(call my-dir) 17include $(CLEAR_VARS) 18 19LOCAL_SRC_FILES:= \ 20 $(commonSources) 21 22LOCAL_MODULE:= libtinyxml 23 24LOCAL_CFLAGS+= $(TOOL_CFLAGS) 25LOCAL_LDFLAGS:= $(TOOL_LDFLAGS) -lstdc++ -lc 26 27LOCAL_MULTILIB := both 28 29include $(BUILD_HOST_STATIC_LIBRARY) 30 31 32# For the device (static) 33# ===================================================== 34include $(CLEAR_VARS) 35 36LOCAL_SRC_FILES:= \ 37 $(commonSources) 38 39LOCAL_MODULE:= libtinyxml 40 41include $(BUILD_STATIC_LIBRARY) 42 43 44# For the device 45# ===================================================== 46include $(CLEAR_VARS) 47 48LOCAL_SRC_FILES:= \ 49 $(commonSources) 50 51LOCAL_MODULE:= libtinyxml 52 53LOCAL_SHARED_LIBRARIES := \ 54 libc \ 55 libstdc++ 56 57include $(BUILD_SHARED_LIBRARY) 58 59 60