mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
add newer upstream pugixml
This commit is contained in:
@@ -16,6 +16,7 @@ endif()
|
|||||||
# Libraries
|
# Libraries
|
||||||
set(TMXLITE_STATIC_LIB ON)
|
set(TMXLITE_STATIC_LIB ON)
|
||||||
add_subdirectory(ext/miniz)
|
add_subdirectory(ext/miniz)
|
||||||
|
add_subdirectory(ext/pugixml)
|
||||||
add_subdirectory(ext/tmxlite)
|
add_subdirectory(ext/tmxlite)
|
||||||
|
|
||||||
# Main tmx2gba sources
|
# Main tmx2gba sources
|
||||||
|
|||||||
264
ext/pugixml/CMakeLists.txt
Normal file
264
ext/pugixml/CMakeLists.txt
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
# Policy configuration; this *MUST* be specified before project is defined
|
||||||
|
if(POLICY CMP0091)
|
||||||
|
cmake_policy(SET CMP0091 NEW) # Enables use of MSVC_RUNTIME_LIBRARY
|
||||||
|
endif()
|
||||||
|
|
||||||
|
project(pugixml VERSION 1.14 LANGUAGES CXX)
|
||||||
|
|
||||||
|
include(CMakePackageConfigHelpers)
|
||||||
|
include(CMakeDependentOption)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
include(CTest)
|
||||||
|
|
||||||
|
cmake_dependent_option(PUGIXML_USE_VERSIONED_LIBDIR
|
||||||
|
"Use a private subdirectory to install the headers and libraries" OFF
|
||||||
|
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
|
||||||
|
|
||||||
|
cmake_dependent_option(PUGIXML_USE_POSTFIX
|
||||||
|
"Use separate postfix for each configuration to make sure you can install multiple build outputs" OFF
|
||||||
|
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
|
||||||
|
|
||||||
|
cmake_dependent_option(PUGIXML_STATIC_CRT
|
||||||
|
"Use static MSVC RT libraries" OFF
|
||||||
|
"MSVC" OFF)
|
||||||
|
|
||||||
|
cmake_dependent_option(PUGIXML_BUILD_TESTS
|
||||||
|
"Build pugixml tests" OFF
|
||||||
|
"BUILD_TESTING;CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
|
||||||
|
|
||||||
|
# Custom build defines
|
||||||
|
set(PUGIXML_BUILD_DEFINES CACHE STRING "Build defines for custom options")
|
||||||
|
separate_arguments(PUGIXML_BUILD_DEFINES)
|
||||||
|
|
||||||
|
# Technically not needed for this file. This is builtin CMAKE global variable.
|
||||||
|
option(BUILD_SHARED_LIBS "Build shared instead of static library" OFF)
|
||||||
|
|
||||||
|
# Expose option to build PUGIXML as static as well when the global BUILD_SHARED_LIBS variable is set
|
||||||
|
cmake_dependent_option(PUGIXML_BUILD_SHARED_AND_STATIC_LIBS
|
||||||
|
"Build both shared and static libraries" OFF
|
||||||
|
"BUILD_SHARED_LIBS" OFF)
|
||||||
|
|
||||||
|
# Expose options from the pugiconfig.hpp
|
||||||
|
option(PUGIXML_WCHAR_MODE "Enable wchar_t mode" OFF)
|
||||||
|
option(PUGIXML_COMPACT "Enable compact mode" OFF)
|
||||||
|
|
||||||
|
# Advanced options from pugiconfig.hpp
|
||||||
|
option(PUGIXML_NO_XPATH "Disable XPath" OFF)
|
||||||
|
option(PUGIXML_NO_STL "Disable STL" OFF)
|
||||||
|
option(PUGIXML_NO_EXCEPTIONS "Disable Exceptions" OFF)
|
||||||
|
mark_as_advanced(PUGIXML_NO_XPATH PUGIXML_NO_STL PUGIXML_NO_EXCEPTIONS)
|
||||||
|
|
||||||
|
set(PUGIXML_PUBLIC_DEFINITIONS
|
||||||
|
$<$<BOOL:${PUGIXML_WCHAR_MODE}>:PUGIXML_WCHAR_MODE>
|
||||||
|
$<$<BOOL:${PUGIXML_COMPACT}>:PUGIXML_COMPACT>
|
||||||
|
$<$<BOOL:${PUGIXML_NO_XPATH}>:PUGIXML_NO_XPATH>
|
||||||
|
$<$<BOOL:${PUGIXML_NO_STL}>:PUGIXML_NO_STL>
|
||||||
|
$<$<BOOL:${PUGIXML_NO_EXCEPTIONS}>:PUGIXML_NO_EXCEPTIONS>)
|
||||||
|
|
||||||
|
# This is used to backport a CMake 3.15 feature, but is also forwards compatible
|
||||||
|
if (NOT DEFINED CMAKE_MSVC_RUNTIME_LIBRARY)
|
||||||
|
set(CMAKE_MSVC_RUNTIME_LIBRARY
|
||||||
|
MultiThreaded$<$<CONFIG:Debug>:Debug>$<$<NOT:$<BOOL:${PUGIXML_STATIC_CRT}>>:DLL>)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED CMAKE_CXX_STANDARD)
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (PUGIXML_USE_POSTFIX)
|
||||||
|
set(CMAKE_RELWITHDEBINFO_POSTFIX _r)
|
||||||
|
set(CMAKE_MINSIZEREL_POSTFIX _m)
|
||||||
|
set(CMAKE_DEBUG_POSTFIX _d)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_VERSION VERSION_LESS 3.15)
|
||||||
|
set(msvc-rt $<TARGET_PROPERTY:MSVC_RUNTIME_LIBRARY>)
|
||||||
|
|
||||||
|
set(msvc-rt-mtd-shared $<STREQUAL:${msvc-rt},MultiThreadedDebugDLL>)
|
||||||
|
set(msvc-rt-mtd-static $<STREQUAL:${msvc-rt},MultiThreadedDebug>)
|
||||||
|
set(msvc-rt-mt-shared $<STREQUAL:${msvc-rt},MultiThreadedDLL>)
|
||||||
|
set(msvc-rt-mt-static $<STREQUAL:${msvc-rt},MultiThreaded>)
|
||||||
|
unset(msvc-rt)
|
||||||
|
|
||||||
|
set(msvc-rt-mtd-shared $<${msvc-rt-mtd-shared}:-MDd>)
|
||||||
|
set(msvc-rt-mtd-static $<${msvc-rt-mtd-static}:-MTd>)
|
||||||
|
set(msvc-rt-mt-shared $<${msvc-rt-mt-shared}:-MD>)
|
||||||
|
set(msvc-rt-mt-static $<${msvc-rt-mt-static}:-MT>)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(versioned-dir $<$<BOOL:${PUGIXML_USE_VERSIONED_LIBDIR}>:/pugixml-${PROJECT_VERSION}>)
|
||||||
|
|
||||||
|
set(libs)
|
||||||
|
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
|
add_library(pugixml-shared SHARED
|
||||||
|
${PROJECT_SOURCE_DIR}/scripts/pugixml_dll.rc
|
||||||
|
${PROJECT_SOURCE_DIR}/src/pugixml.cpp)
|
||||||
|
add_library(pugixml::shared ALIAS pugixml-shared)
|
||||||
|
list(APPEND libs pugixml-shared)
|
||||||
|
string(CONCAT pugixml.msvc $<OR:
|
||||||
|
$<STREQUAL:${CMAKE_CXX_COMPILER_FRONTEND_VARIANT},MSVC>,
|
||||||
|
$<CXX_COMPILER_ID:MSVC>
|
||||||
|
>)
|
||||||
|
|
||||||
|
set_property(TARGET pugixml-shared PROPERTY EXPORT_NAME shared)
|
||||||
|
target_include_directories(pugixml-shared
|
||||||
|
PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>)
|
||||||
|
target_compile_definitions(pugixml-shared
|
||||||
|
PUBLIC
|
||||||
|
${PUGIXML_BUILD_DEFINES}
|
||||||
|
${PUGIXML_PUBLIC_DEFINITIONS}
|
||||||
|
PRIVATE
|
||||||
|
PUGIXML_API=$<IF:${pugixml.msvc},__declspec\(dllexport\),__attribute__\(\(visibility\("default"\)\)\)>
|
||||||
|
)
|
||||||
|
target_compile_options(pugixml-shared
|
||||||
|
PRIVATE
|
||||||
|
${msvc-rt-mtd-shared}
|
||||||
|
${msvc-rt-mtd-static}
|
||||||
|
${msvc-rt-mt-shared}
|
||||||
|
${msvc-rt-mt-static})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT BUILD_SHARED_LIBS OR PUGIXML_BUILD_SHARED_AND_STATIC_LIBS)
|
||||||
|
add_library(pugixml-static STATIC
|
||||||
|
${PROJECT_SOURCE_DIR}/src/pugixml.cpp)
|
||||||
|
add_library(pugixml::static ALIAS pugixml-static)
|
||||||
|
list(APPEND libs pugixml-static)
|
||||||
|
|
||||||
|
set_property(TARGET pugixml-static PROPERTY EXPORT_NAME static)
|
||||||
|
target_include_directories(pugixml-static
|
||||||
|
PUBLIC
|
||||||
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>)
|
||||||
|
target_compile_definitions(pugixml-static
|
||||||
|
PUBLIC
|
||||||
|
${PUGIXML_BUILD_DEFINES}
|
||||||
|
${PUGIXML_PUBLIC_DEFINITIONS})
|
||||||
|
target_compile_options(pugixml-static
|
||||||
|
PRIVATE
|
||||||
|
${msvc-rt-mtd-shared}
|
||||||
|
${msvc-rt-mtd-static}
|
||||||
|
${msvc-rt-mt-shared}
|
||||||
|
${msvc-rt-mt-static})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (BUILD_SHARED_LIBS)
|
||||||
|
set(pugixml-alias pugixml-shared)
|
||||||
|
else()
|
||||||
|
set(pugixml-alias pugixml-static)
|
||||||
|
endif()
|
||||||
|
add_library(pugixml INTERFACE)
|
||||||
|
target_link_libraries(pugixml INTERFACE ${pugixml-alias})
|
||||||
|
add_library(pugixml::pugixml ALIAS pugixml)
|
||||||
|
|
||||||
|
set_target_properties(${libs}
|
||||||
|
PROPERTIES
|
||||||
|
MSVC_RUNTIME_LIBRARY ${CMAKE_MSVC_RUNTIME_LIBRARY}
|
||||||
|
EXCLUDE_FROM_ALL ON
|
||||||
|
POSITION_INDEPENDENT_CODE ON
|
||||||
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||||
|
VERSION ${PROJECT_VERSION}
|
||||||
|
OUTPUT_NAME pugixml)
|
||||||
|
|
||||||
|
set_target_properties(${libs}
|
||||||
|
PROPERTIES
|
||||||
|
EXCLUDE_FROM_ALL OFF)
|
||||||
|
set(install-targets pugixml ${libs})
|
||||||
|
|
||||||
|
configure_package_config_file(
|
||||||
|
"${PROJECT_SOURCE_DIR}/scripts/pugixml-config.cmake.in"
|
||||||
|
"${PROJECT_BINARY_DIR}/pugixml-config.cmake"
|
||||||
|
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
NO_CHECK_REQUIRED_COMPONENTS_MACRO
|
||||||
|
NO_SET_AND_CHECK_MACRO)
|
||||||
|
|
||||||
|
write_basic_package_version_file(
|
||||||
|
"${PROJECT_BINARY_DIR}/pugixml-config-version.cmake"
|
||||||
|
COMPATIBILITY SameMajorVersion)
|
||||||
|
|
||||||
|
if (PUGIXML_USE_POSTFIX)
|
||||||
|
if(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
|
||||||
|
set(LIB_POSTFIX ${CMAKE_RELWITHDEBINFO_POSTFIX})
|
||||||
|
elseif(CMAKE_BUILD_TYPE MATCHES MinSizeRel)
|
||||||
|
set(LIB_POSTFIX ${CMAKE_MINSIZEREL_POSTFIX})
|
||||||
|
elseif(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
|
set(LIB_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
configure_file(scripts/pugixml.pc.in pugixml.pc @ONLY)
|
||||||
|
|
||||||
|
if (NOT DEFINED PUGIXML_RUNTIME_COMPONENT)
|
||||||
|
set(PUGIXML_RUNTIME_COMPONENT Runtime)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED PUGIXML_LIBRARY_COMPONENT)
|
||||||
|
set(PUGIXML_LIBRARY_COMPONENT Library)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED PUGIXML_DEVELOPMENT_COMPONENT)
|
||||||
|
set(PUGIXML_DEVELOPMENT_COMPONENT Development)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(namelink-component)
|
||||||
|
if (NOT CMAKE_VERSION VERSION_LESS 3.12)
|
||||||
|
set(namelink-component NAMELINK_COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
endif()
|
||||||
|
install(TARGETS ${install-targets}
|
||||||
|
EXPORT pugixml-targets
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${PUGIXML_RUNTIME_COMPONENT}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${PUGIXML_LIBRARY_COMPONENT} ${namelink-component}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT}
|
||||||
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}${versioned-dir})
|
||||||
|
|
||||||
|
install(EXPORT pugixml-targets
|
||||||
|
NAMESPACE pugixml::
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
|
||||||
|
export(EXPORT pugixml-targets
|
||||||
|
NAMESPACE pugixml::)
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
"${PROJECT_BINARY_DIR}/pugixml-config-version.cmake"
|
||||||
|
"${PROJECT_BINARY_DIR}/pugixml-config.cmake"
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pugixml COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
|
||||||
|
install(FILES ${PROJECT_BINARY_DIR}/pugixml.pc
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
"${PROJECT_SOURCE_DIR}/src/pugiconfig.hpp"
|
||||||
|
"${PROJECT_SOURCE_DIR}/src/pugixml.hpp"
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_INCLUDEDIR}${versioned-dir} COMPONENT ${PUGIXML_DEVELOPMENT_COMPONENT})
|
||||||
|
|
||||||
|
if (PUGIXML_BUILD_TESTS)
|
||||||
|
set(fuzz-pattern "tests/fuzz_*.cpp")
|
||||||
|
set(test-pattern "tests/*.cpp")
|
||||||
|
if (CMAKE_VERSION VERSION_GREATER 3.11)
|
||||||
|
list(INSERT fuzz-pattern 0 CONFIGURE_DEPENDS)
|
||||||
|
list(INSERT test-pattern 0 CONFIGURE_DEPENDS)
|
||||||
|
endif()
|
||||||
|
file(GLOB test-sources ${test-pattern})
|
||||||
|
file(GLOB fuzz-sources ${fuzz-pattern})
|
||||||
|
list(REMOVE_ITEM test-sources ${fuzz-sources})
|
||||||
|
|
||||||
|
add_custom_target(check
|
||||||
|
COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
|
||||||
|
|
||||||
|
add_executable(pugixml-check ${test-sources})
|
||||||
|
add_test(NAME pugixml::test
|
||||||
|
COMMAND pugixml-check
|
||||||
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
|
||||||
|
add_dependencies(check pugixml-check)
|
||||||
|
target_link_libraries(pugixml-check
|
||||||
|
PRIVATE
|
||||||
|
pugixml::pugixml)
|
||||||
|
endif()
|
||||||
24
ext/pugixml/LICENSE.md
Normal file
24
ext/pugixml/LICENSE.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2006-2023 Arseny Kapoulkine
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person
|
||||||
|
obtaining a copy of this software and associated documentation
|
||||||
|
files (the "Software"), to deal in the Software without
|
||||||
|
restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
12
ext/pugixml/scripts/pugixml-config.cmake.in
Normal file
12
ext/pugixml/scripts/pugixml-config.cmake.in
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
|
||||||
|
|
||||||
|
# If the user is not requiring 1.11 (either by explicitly requesting an older
|
||||||
|
# version or not requesting one at all), provide the old imported target name
|
||||||
|
# for compatibility.
|
||||||
|
if (NOT TARGET pugixml AND (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11"))
|
||||||
|
add_library(pugixml INTERFACE IMPORTED)
|
||||||
|
# Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10
|
||||||
|
set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml)
|
||||||
|
endif ()
|
||||||
11
ext/pugixml/scripts/pugixml.pc.in
Normal file
11
ext/pugixml/scripts/pugixml.pc.in
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@@INSTALL_SUFFIX@
|
||||||
|
libdir=@CMAKE_INSTALL_FULL_LIBDIR@@INSTALL_SUFFIX@
|
||||||
|
|
||||||
|
Name: pugixml
|
||||||
|
Description: Light-weight, simple and fast XML parser for C++ with XPath support.
|
||||||
|
URL: https://pugixml.org/
|
||||||
|
Version: @pugixml_VERSION@
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
Libs: -L${libdir} -lpugixml@LIB_POSTFIX@
|
||||||
45
ext/pugixml/scripts/pugixml_dll.rc
Normal file
45
ext/pugixml/scripts/pugixml_dll.rc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
#include <winver.h>
|
||||||
|
|
||||||
|
#define PUGIXML_VERSION_MAJOR 1
|
||||||
|
#define PUGIXML_VERSION_MINOR 14
|
||||||
|
#define PUGIXML_VERSION_PATCH 0
|
||||||
|
#define PUGIXML_VERSION_NUMBER "1.14.0\0"
|
||||||
|
|
||||||
|
#if defined(GCC_WINDRES) || defined(__MINGW32__) || defined(__CYGWIN__)
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
#else
|
||||||
|
VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
|
||||||
|
#endif
|
||||||
|
FILEVERSION PUGIXML_VERSION_MAJOR,PUGIXML_VERSION_MINOR,PUGIXML_VERSION_PATCH,0
|
||||||
|
PRODUCTVERSION PUGIXML_VERSION_MAJOR,PUGIXML_VERSION_MINOR,PUGIXML_VERSION_PATCH,0
|
||||||
|
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||||
|
#ifdef _DEBUG
|
||||||
|
FILEFLAGS 1
|
||||||
|
#else
|
||||||
|
FILEFLAGS 0
|
||||||
|
#endif
|
||||||
|
FILEOS VOS__WINDOWS32
|
||||||
|
FILETYPE VFT_DLL
|
||||||
|
FILESUBTYPE 0 // not used
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "040904E4"
|
||||||
|
//language ID = U.S. English, char set = Windows, Multilingual
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", "zeux/pugixml\0"
|
||||||
|
VALUE "FileDescription", "pugixml library\0"
|
||||||
|
VALUE "FileVersion", PUGIXML_VERSION_NUMBER
|
||||||
|
VALUE "InternalName", "pugixml.dll\0"
|
||||||
|
VALUE "LegalCopyright", "Copyright (C) 2006-2023, by Arseny Kapoulkine\0"
|
||||||
|
VALUE "OriginalFilename", "pugixml.dll\0"
|
||||||
|
VALUE "ProductName", "pugixml\0"
|
||||||
|
VALUE "ProductVersion", PUGIXML_VERSION_NUMBER
|
||||||
|
VALUE "Comments", "For more information visit https://github.com/zeux/pugixml/\0"
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x0409, 1252
|
||||||
|
END
|
||||||
|
END
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* pugixml parser - version 1.7
|
* pugixml parser - version 1.14
|
||||||
* --------------------------------------------------------
|
* --------------------------------------------------------
|
||||||
* Copyright (C) 2006-2015, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
* Copyright (C) 2006-2023, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
||||||
* Report bugs and download new versions at http://pugixml.org/
|
* Report bugs and download new versions at https://pugixml.org/
|
||||||
*
|
*
|
||||||
* This library is distributed under the MIT License. See notice at the end
|
* This library is distributed under the MIT License. See notice at the end
|
||||||
* of this file.
|
* of this file.
|
||||||
@@ -23,13 +23,12 @@
|
|||||||
// Uncomment this to disable XPath
|
// Uncomment this to disable XPath
|
||||||
// #define PUGIXML_NO_XPATH
|
// #define PUGIXML_NO_XPATH
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
|
||||||
// Uncomment this to disable STL
|
// Uncomment this to disable STL
|
||||||
#define PUGIXML_NO_STL
|
// #define PUGIXML_NO_STL
|
||||||
|
|
||||||
// Uncomment this to disable exceptions
|
// Uncomment this to disable exceptions
|
||||||
#define PUGIXML_NO_EXCEPTIONS
|
// #define PUGIXML_NO_EXCEPTIONS
|
||||||
#endif //__ANDROID__
|
|
||||||
// Set this to control attributes for public classes/functions, i.e.:
|
// Set this to control attributes for public classes/functions, i.e.:
|
||||||
// #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
|
// #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
|
||||||
// #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
|
// #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
|
||||||
@@ -41,8 +40,11 @@
|
|||||||
// #define PUGIXML_MEMORY_OUTPUT_STACK 10240
|
// #define PUGIXML_MEMORY_OUTPUT_STACK 10240
|
||||||
// #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
|
// #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
|
||||||
|
|
||||||
|
// Tune this constant to adjust max nesting for XPath queries
|
||||||
|
// #define PUGIXML_XPATH_DEPTH_LIMIT 1024
|
||||||
|
|
||||||
// Uncomment this to switch to header-only version
|
// Uncomment this to switch to header-only version
|
||||||
//#define PUGIXML_HEADER_ONLY
|
// #define PUGIXML_HEADER_ONLY
|
||||||
|
|
||||||
// Uncomment this to enable long long support
|
// Uncomment this to enable long long support
|
||||||
// #define PUGIXML_HAS_LONG_LONG
|
// #define PUGIXML_HAS_LONG_LONG
|
||||||
@@ -50,7 +52,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (c) 2006-2015 Arseny Kapoulkine
|
* Copyright (c) 2006-2023 Arseny Kapoulkine
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person
|
* Permission is hereby granted, free of charge, to any person
|
||||||
* obtaining a copy of this software and associated documentation
|
* obtaining a copy of this software and associated documentation
|
||||||
File diff suppressed because it is too large
Load Diff
1516
ext/pugixml/src/pugixml.hpp
Normal file
1516
ext/pugixml/src/pugixml.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -77,8 +77,7 @@ if(USE_EXTLIBS)
|
|||||||
|
|
||||||
else()
|
else()
|
||||||
# add miniz and pugixml from source
|
# add miniz and pugixml from source
|
||||||
target_sources(${PROJECT_NAME} PRIVATE ${PROJECT_DIR}/detail/pugixml.cpp)
|
target_link_libraries(${PROJECT_NAME} pugixml::static External::miniz)
|
||||||
target_link_libraries(${PROJECT_NAME} External::miniz)
|
|
||||||
|
|
||||||
if(USE_ZSTD)
|
if(USE_ZSTD)
|
||||||
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_ZSTD)
|
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_ZSTD)
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
/**
|
|
||||||
* pugixml parser - version 1.7
|
|
||||||
* --------------------------------------------------------
|
|
||||||
* Copyright (C) 2006-2015, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
|
||||||
* Report bugs and download new versions at http://pugixml.org/
|
|
||||||
*
|
|
||||||
* This library is distributed under the MIT License.
|
|
||||||
*
|
|
||||||
* This work is based on the pugxml parser, which is:
|
|
||||||
* Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person
|
|
||||||
* obtaining a copy of this software and associated documentation
|
|
||||||
* files (the "Software"), to deal in the Software without
|
|
||||||
* restriction, including without limitation the rights to use,
|
|
||||||
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
* copies of the Software, and to permit persons to whom the
|
|
||||||
* Software is furnished to do so, subject to the following
|
|
||||||
* conditions:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be
|
|
||||||
* included in all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
||||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
||||||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
* OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*/
|
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user