diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 09457b6e6c51b981b61a99a2157e0b3dd4bea444 (patch) | |
tree | 2e6cfce937a68825dd8abeeeb474f3776ce58e00 | |
parent | bc0ee9afa1072f1943b18f74560cb71840470597 (diff) | |
download | tinyxml-09457b6e6c51b981b61a99a2157e0b3dd4bea444.tar.gz |
Initial Contributionandroid-1.0release-1.0cdma-import
-rw-r--r-- | Android.mk | 41 | ||||
-rw-r--r-- | MODULE_LICENSE_BSD_LIKE | 0 | ||||
-rw-r--r-- | Makefile | 130 | ||||
-rw-r--r-- | NOTICE | 18 |
4 files changed, 59 insertions, 130 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..0eec19d --- /dev/null +++ b/Android.mk @@ -0,0 +1,41 @@ +# Copyright 2005 The Android Open Source Project +# +# Android.mk for TinyXml. +# +# Add -DTIXML_USE_STL to CFLAGS to use STL. +# + +commonSources:= \ + tinyxml.cpp \ + tinyxmlparser.cpp \ + tinyxmlerror.cpp \ + tinystr.cpp + +# For the host +# ===================================================== +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES:= \ + $(commonSources) + +LOCAL_MODULE:= libtinyxml + +LOCAL_CFLAGS+= $(TOOL_CFLAGS) +LOCAL_LDFLAGS:= $(TOOL_LDFLAGS) -lstdc++ -lc + +include $(BUILD_HOST_STATIC_LIBRARY) + + +# For the device +# ===================================================== +#include $(CLEAR_VARS) +# +#LOCAL_SRC_FILES:= \ +# $(commonSources) +# +#LOCAL_MODULE:= libtinyxml +# +#include $(BUILD_SHARED_LIBRARY) + + diff --git a/MODULE_LICENSE_BSD_LIKE b/MODULE_LICENSE_BSD_LIKE new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/MODULE_LICENSE_BSD_LIKE diff --git a/Makefile b/Makefile deleted file mode 100644 index a83e59c..0000000 --- a/Makefile +++ /dev/null @@ -1,130 +0,0 @@ -#**************************************************************************** -# -# Makefile for TinyXml test. -# Lee Thomason -# www.grinninglizard.com -# -# This is a GNU make (gmake) makefile -#**************************************************************************** - -# DEBUG can be set to YES to include debugging info, or NO otherwise -DEBUG := YES - -# PROFILE can be set to YES to include profiling info, or NO otherwise -PROFILE := NO - -# TINYXML_USE_STL can be used to turn on STL support. NO, then STL -# will not be used. YES will include the STL files. -TINYXML_USE_STL := NO - -#**************************************************************************** - -CC := gcc -CXX := g++ -LD := g++ -AR := ar rc -RANLIB := ranlib - -DEBUG_CFLAGS := -Wall -Wno-format -g -DDEBUG -RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3 - -LIBS := - -DEBUG_CXXFLAGS := ${DEBUG_CFLAGS} -RELEASE_CXXFLAGS := ${RELEASE_CFLAGS} - -DEBUG_LDFLAGS := -g -RELEASE_LDFLAGS := - -ifeq (YES, ${DEBUG}) - CFLAGS := ${DEBUG_CFLAGS} - CXXFLAGS := ${DEBUG_CXXFLAGS} - LDFLAGS := ${DEBUG_LDFLAGS} -else - CFLAGS := ${RELEASE_CFLAGS} - CXXFLAGS := ${RELEASE_CXXFLAGS} - LDFLAGS := ${RELEASE_LDFLAGS} -endif - -ifeq (YES, ${PROFILE}) - CFLAGS := ${CFLAGS} -pg -O3 - CXXFLAGS := ${CXXFLAGS} -pg -O3 - LDFLAGS := ${LDFLAGS} -pg -endif - -#**************************************************************************** -# Preprocessor directives -#**************************************************************************** - -ifeq (YES, ${TINYXML_USE_STL}) - DEFS := -DTIXML_USE_STL -else - DEFS := -endif - -#**************************************************************************** -# Include paths -#**************************************************************************** - -#INCS := -I/usr/include/g++-2 -I/usr/local/include -INCS := - - -#**************************************************************************** -# Makefile code common to all platforms -#**************************************************************************** - -CFLAGS := ${CFLAGS} ${DEFS} -CXXFLAGS := ${CXXFLAGS} ${DEFS} - -#**************************************************************************** -# Targets of the build -#**************************************************************************** - -OUTPUT := xmltest - -all: ${OUTPUT} - - -#**************************************************************************** -# Source files -#**************************************************************************** - -SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp tinystr.cpp - -# Add on the sources for libraries -SRCS := ${SRCS} - -OBJS := $(addsuffix .o,$(basename ${SRCS})) - -#**************************************************************************** -# Output -#**************************************************************************** - -${OUTPUT}: ${OBJS} - ${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ${EXTRA_LIBS} - -#**************************************************************************** -# common rules -#**************************************************************************** - -# Rules for compiling source files to object files -%.o : %.cpp - ${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@ - -%.o : %.c - ${CC} -c ${CFLAGS} ${INCS} $< -o $@ - -dist: - bash makedistlinux - -clean: - -rm -f core ${OBJS} ${OUTPUT} - -depend: - #makedepend ${INCS} ${SRCS} - -tinyxml.o: tinyxml.h tinystr.h -tinyxmlparser.o: tinyxml.h tinystr.h -xmltest.o: tinyxml.h tinystr.h -tinyxmlerror.o: tinyxml.h tinystr.h @@ -0,0 +1,18 @@ +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any +damages arising from the use of this software. + +Permission is granted to anyone to use this software for any +purpose, including commercial applications, and to alter it and +redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must +not claim that you wrote the original software. If you use this +software in a product, an acknowledgment in the product documentation +would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and +must not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source +distribution. |