debian/0000755000000000000000000000000011757444567007212 5ustar debian/changelog0000644000000000000000000000025511757230760011052 0ustar tinyxml2 (0~git20120518.1.a2ae54e-1) unstable; urgency=low * Initial release (Closes: #674074) -- Chow Loong Jin Wed, 23 May 2012 02:54:30 +0800 debian/source/0000755000000000000000000000000011757230760010476 5ustar debian/source/format0000644000000000000000000000001411757230760011704 0ustar 3.0 (quilt) debian/libtinyxml2-dev.install0000644000000000000000000000010311757230760013611 0ustar /usr/include/ /usr/lib/*/*.a /usr/lib/*/*.so /usr/lib/*/pkgconfig/ debian/libtinyxml2-0.0.0.install0000644000000000000000000000002211757230760013466 0ustar /usr/lib/*/*.so.* debian/copyright0000644000000000000000000000357211757230760011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: tinyxml2 Source: https://github.com/leethomason/tinyxml2 Files: * Copyright: 2011-2012 Lee Thomason License: zlib/libpng 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. Files: debian/* Copyright: 2012 Chow Loong Jin License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000211757230760010374 0ustar 9 debian/control0000644000000000000000000000412011757230760010576 0ustar Source: tinyxml2 Priority: extra Maintainer: Chow Loong Jin Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1), cmake Standards-Version: 3.9.3 Section: libs Homepage: http://www.grinninglizard.com/tinyxml2/ Vcs-Git: git://git.debian.org/collab-maint/tinyxml2.git Vcs-Browser: http://git.debian.org/?p=collab-maint/tinyxml2.git;a=summary Package: libtinyxml2-dev Section: libdevel Architecture: any Depends: libtinyxml2-0.0.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: TinyXML2 library - header and static library This package contains the header file and a static version of the TinyXML2 library. . TinyXML2 is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. . TinyXML2 supersedes the previous TinyXML library, with various improvements: - Fewer memory allocations (1% - 10% compared to TinyXML) - Uses less memory (about 40% of that used by TinyXML) - Faster - No STL requirement - More modern C++, including a proper namespace - Proper and useful handling of whitespace Package: libtinyxml2-0.0.0 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Description: C++ XML parsing library This package contains the shared version of the TinyXML2 library. . TinyXML2 is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. . TinyXML2 supersedes the previous TinyXML library, with various improvements: - Fewer memory allocations (1% - 10% compared to TinyXML) - Uses less memory (about 40% of that used by TinyXML) - Faster - No STL requirement - More modern C++, including a proper namespace - Proper and useful handling of whitespace debian/patches/0000755000000000000000000000000011757230760010625 5ustar debian/patches/Build-system-fixes.patch0000644000000000000000000000555511757230760015355 0ustar From: Chow Loong Jin Date: Thu, 24 May 2012 02:20:09 +0800 Subject: Build system fixes This patch brings some build system fixes from hasufell's git branch: - Add pcfile - Allow building of shared library Origin: https://github.com/leethomason/tinyxml2/pull/21 --- CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++-- tinyxml2.pc.in | 10 ++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 tinyxml2.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 67bfb9b..eaf3873 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,11 +2,19 @@ cmake_minimum_required(VERSION 2.6 FATAL_ERROR) cmake_policy(VERSION 2.6) project(tinyxml2) +include(GNUInstallDirs) #enable_testing() #CMAKE_BUILD_TOOL ################################ +# set lib version here + +set(GENERIC_LIB_VERSION "0.0.0") +set(GENERIC_LIB_SOVERSION ${GENERIC_LIB_VERSION}) + + +################################ # Add common source include_directories("${CMAKE_CURRENT_SOURCE_DIR}/.") @@ -37,11 +45,40 @@ endif(MSVC) ################################ # Add targets - -add_library(tinyxml2 STATIC tinyxml2.cpp tinyxml2.h) +set(BUILD_STATIC_LIBS ON CACHE BOOL "Set to ON to build static libraries") +if(BUILD_STATIC_LIBS) + add_library(tinyxml2static STATIC tinyxml2.cpp tinyxml2.h) + set_target_properties(tinyxml2static PROPERTIES OUTPUT_NAME tinyxml2) +endif(BUILD_STATIC_LIBS) +add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h) +set_target_properties(tinyxml2 PROPERTIES + VERSION "${GENERIC_LIB_VERSION}" + SOVERSION "${GENERIC_LIB_SOVERSION}") add_executable(test xmltest.cpp) add_dependencies(test tinyxml2) add_dependencies(test ${TARGET_DATA_COPY}) target_link_libraries(test tinyxml2) + + +if(BUILD_STATIC_LIBS) + install(TARGETS tinyxml2 tinyxml2static + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) +else(BUILD_STATIC_LIBS) + install(TARGETS tinyxml2 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) +endif(BUILD_STATIC_LIBS) +install(FILES tinyxml2.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + +foreach(p LIB INCLUDE) + set(var CMAKE_INSTALL_${p}DIR) + if(NOT IS_ABSOLUTE "${${var}}") + set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}") + endif() +endforeach() + +configure_file(tinyxml2.pc.in tinyxml2.pc @ONLY) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tinyxml2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + #add_test(test ${SAMPLE_NAME} COMMAND $) diff --git a/tinyxml2.pc.in b/tinyxml2.pc.in new file mode 100644 index 0000000..5a44e89 --- /dev/null +++ b/tinyxml2.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=@CMAKE_INSTALL_LIBDIR@ +includedir=@CMAKE_INSTALL_INCLUDEDIR@ + +Name: TinyXML2 +Description: simple, small, C++ XML parser +Version: @GENERIC_LIB_VERSION@ +Libs: -L${libdir} -ltinyxml2 +Cflags: -I${includedir} -- debian/patches/series0000644000000000000000000000003111757230760012034 0ustar Build-system-fixes.patch debian/rules0000755000000000000000000000062711757230760010263 0ustar #!/usr/bin/make -f # -*- makefile -*- include /usr/share/dpkg/default.mk override_dh_auto_configure: dh_auto_configure -Bbuild -- \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_STATIC_LIBS=ON \ -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH) override_dh_auto_build: dh_auto_build -Bbuild override_dh_auto_install: dh_auto_install -Bbuild override_dh_auto_clean: rm -rf build %: dh $@