diff options
author | Sergey <non_2001@mail.ru> | 2014-12-13 23:15:18 (GMT) |
---|---|---|
committer | Sergey <non_2001@mail.ru> | 2014-12-15 19:07:26 (GMT) |
commit | ee4d150fb7730d7d4bb7bd91c33972c428dcbe20 (patch) | |
tree | 4e6515d767aff3e23bb49c953a5d0feda4457099 | |
parent | b4dc0346f5c64ca402ec5b93e2c9f97e2af4d56d (diff) | |
download | mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.zip mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.tar.gz mxe-ee4d150fb7730d7d4bb7bd91c33972c428dcbe20.tar.bz2 |
tinyxml2
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/tinyxml2-1-static.patch | 34 | ||||
-rw-r--r-- | src/tinyxml2.mk | 27 |
3 files changed, 65 insertions, 0 deletions
@@ -2418,6 +2418,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="http://sourceforge.net/projects/tinyxml/">tinyxml</a></td> </tr> <tr> + <td class="package">tinyxml2</td> + <td class="website"><a href="http://grinninglizard.com/tinyxml2/index.html">tinyxml2</a></td> + </tr> + <tr> <td class="package">tre</td> <td class="website"><a href="http://laurikari.net/tre/">TRE</a></td> </tr> diff --git a/src/tinyxml2-1-static.patch b/src/tinyxml2-1-static.patch new file mode 100644 index 0000000..f8512e9 --- /dev/null +++ b/src/tinyxml2-1-static.patch @@ -0,0 +1,34 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 91c61a4..1aeba57 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -50,22 +50,22 @@ 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)
++else(BUILD_STATIC_LIBS)
+ add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)
+ set_target_properties(tinyxml2 PROPERTIES
+ COMPILE_DEFINITIONS "TINYXML2_EXPORT"
+ VERSION "${GENERIC_LIB_VERSION}"
+ SOVERSION "${GENERIC_LIB_SOVERSION}")
++endif(BUILD_STATIC_LIBS)
+
+-add_executable(test xmltest.cpp)
+-add_dependencies(test tinyxml2)
+-add_dependencies(test ${TARGET_DATA_COPY})
+-target_link_libraries(test tinyxml2)
++#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
+- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ install(TARGETS tinyxml2static
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else(BUILD_STATIC_LIBS)
diff --git a/src/tinyxml2.mk b/src/tinyxml2.mk new file mode 100644 index 0000000..e06ce63 --- /dev/null +++ b/src/tinyxml2.mk @@ -0,0 +1,27 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := tinyxml2 +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.2.0 +$(PKG)_CHECKSUM := 7869aa08241ce16f93ba3732c1cde155b1f2b6a0 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/leethomason/tinyxml2/archive/$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/leethomason/tinyxml2/releases' | \ + $(SED) -n 's,.*/archive/\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + mkdir '$(1)/build' + cd '$(1)/build' && cmake .. \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + $(if $(BUILD_STATIC), \ + -DBUILD_STATIC_LIBS=ON) + + $(MAKE) -C '$(1)/build' -j '$(JOBS)' install +endef
\ No newline at end of file |