Commit Graph

1165 Commits

Author SHA1 Message Date
Lee Thomason
a2d675139b fix cygwin 2022-04-02 14:05:47 -07:00
Lee Thomason
a1ea80ba74 Merge pull request #894 from saran-t/master
Change argument names in tinyxml2.cpp to match those in tinyxml2.h.
2022-04-02 13:59:56 -07:00
Lee Thomason
435c0a1199 Merge pull request #893 from eli-schwartz/meson-test-cleanup
meson: simplify test setup
2022-04-02 13:53:09 -07:00
Lee Thomason
34dd03ecc2 Merge pull request #884 from firewave/extra-stmt
fixed Clang -Wextra-stmt warnings with TIXMLASSERT
2022-04-02 13:44:42 -07:00
Lee Thomason
cf0a876aad enable workflow dispatch, update docs 2022-04-02 13:24:12 -07:00
Lee Thomason
77df90e8b5 Merge pull request #879 from mphschmitt/master
Fix broken documentation links.
2022-04-02 13:11:15 -07:00
Saran Tunyasuvunakool
4cc4145d7f Change argument names in tinyxml2.cpp to match those in tinyxml2.h.
Affected functions are `XMLElement::QueryUnsigned64Text` and `XMLDocument::Parse`.
2021-12-21 16:06:24 +00:00
Saran Tunyasuvunakool
6cc405853b Convert endings of lines 106-107 in tinyxml2.cpp to CRLF. 2021-12-21 16:05:29 +00:00
Eli Schwartz
f6c991658b meson: simplify test setup
Resources are loaded from the current working directory. By setting the
current working directory to the source dir, rather than the out of tree
build dir, we can easily pick up the original resources without copying
them around during configuration.
2021-12-14 19:29:56 -05:00
firewave
c27699a9d6 fixed Clang -Wextra-stmt warnings with TIXMLASSERT 2021-10-30 13:57:50 +02:00
Mathias Schmitt
e6703fdf43 Fix broken documentation links.
Force Jekyll to use files whose name begin with an underscore.
2021-09-26 15:59:29 +02:00
Lee Thomason
a977397684 Merge pull request #868 from strikersh/master
Use fseeko and ftello on BSDs
2021-09-03 19:40:50 -07:00
striker.sh
98233b604b Use fseeko and ftello on BSDs 2021-06-13 20:24:00 +02:00
Lee Thomason
1dee28e51f setting the version to 9.0.0 9.0.0 2021-06-06 17:10:24 -07:00
Lee Thomason
55716da04f Merge pull request #865 from JonasVautherin/fix-android-x86_64
Add defined(ANDROID) for fseeko defined and android-x86_64
2021-05-28 20:02:31 -07:00
Jonas Vautherin
41151ce211 Add defined(__ANDROID__) for fseeko defined and android-x86_64 2021-05-19 02:43:44 +02:00
Lee Thomason
4c7cc9d6e4 Merge pull request #862 from heitbaum/patch-1
meson.build: fix typo
2021-05-17 20:28:27 -07:00
heitbaum
0838dd11a3 meson.build: fix typo 2021-05-17 15:14:01 +10:00
Lee Thomason
3291390336 update the docs 8.1.0 2021-05-15 20:28:24 -07:00
Lee Thomason
9c6752a641 setting the version to 8.1.0 2021-05-15 20:21:47 -07:00
Lee Thomason
cc2efbbd21 Merge pull request #861 from leethomason/modern-cmake-2
Modern CMake overhaul and project fixes.
2021-05-15 20:14:35 -07:00
Lee Thomason
95b80f4458 update readme 2021-05-15 19:57:11 -07:00
Lee Thomason
7d054695ee update gitignore 2021-05-15 19:54:49 -07:00
Lee Thomason
212a53bb5b refresh visual studio project 2021-05-15 19:48:24 -07:00
Lee Thomason
be4eaaac8a remove bit rotted premake5, update readme 2021-05-15 19:40:53 -07:00
Lee Thomason
97739352a7 test new build links 2021-05-15 19:26:51 -07:00
Lee Thomason
efefbb85bc Merge branch 'master' of https://github.com/modern-cmake/tinyxml2 into modern-cmake-master 2021-05-15 18:54:24 -07:00
Lee Thomason
f2db58e658 Merge pull request #859 from cugone/FixWrongQueryAssignment
Fixes Query results in xmltest being assigned to int instead of XMLError
2021-05-10 19:54:20 -07:00
cugone
5e76573894 Fix Query function results being assigned to int instead of XMLError 2021-05-09 02:05:54 -05:00
Lee Thomason
6376b3fbc7 Merge pull request #845 from dov/patch-1
Fix type in meson.build
2021-05-08 15:44:59 -07:00
Alex Reinking
7df6b3ff4a Overhaul CMake build 2021-05-08 11:30:29 -07:00
Dov Grobgeld
9d899a73c4 Update meson.build
Fixed typo
2021-01-26 21:09:43 +02:00
Lee Thomason
d4514ad72b Merge pull request #837 from dcbaker/meson
Add meson build system
2020-12-30 10:43:36 -08:00
Lee Thomason
91bfd4b7fc Merge pull request #827 from ngc92/ClearError
removed overhead of clear error
2020-12-30 10:35:45 -08:00
Lee Thomason
4ec7320e57 Merge pull request #790 from offlinemark/mark/cmake-namespace
cmake: Use a namespace for the tinyxml2 target in local export
2020-12-30 10:25:16 -08:00
Lee Thomason
ee6684483c Merge pull request #831 from plekakis/master
Fix for enum in StrPair and TIXMLASSERT define behaviour
2020-12-30 10:20:54 -08:00
Lee Thomason
a9ed6746dd Merge pull request #838 from dfaure-kdab/Wundef
Add missing `defined`, detected by -Werror=undef
2020-12-30 10:18:44 -08:00
Lee Thomason
11376382fa Merge pull request #840 from dota17/master
skip comment node before get text
2020-12-30 10:18:16 -08:00
Lee Thomason
8e1af3a7f9 Merge pull request #841 from pazner/master
Fix errors/warnings with hexadecimal format string in sscanf
2020-12-30 10:17:16 -08:00
Will Pazner
d3a82c5e45 Fix format string errors in sscanf 2020-11-19 20:50:36 -08:00
dota17
d59fd15db6 skip comment node before get text 2020-10-22 15:16:34 +08:00
Dylan Baker
c509d569c0 Add meson build system
Meson is a build system somewhat like cmake, but without all of the
rough edges. It supports many OSes, including all of the major ones, and
a large number of C++ compilers.

My interest isn't really in convincing people to use meson as the
default here, but meson provides a subproject mechanism that can fetch
external projects and build them along with the main project in a single
configure/compile invocation. This is extremely useful for platforms
that lack a (competent) package manager.

As far as I know the meson build does everything the cmake build does,
with one exception: generate the cmake config/version files. meson can
generate these files, but only in simple cases, and not when using
export targets like tinyxml2 does.
2020-10-09 12:21:27 -07:00
David Faure
b5d3b93e05 Add missing defined, detected by -Werror=undef 2020-10-09 09:59:50 +02:00
Mark Mossberg
4001a468b7 cmake: Use a namespace for the tinyxml2 target in local export
Previously in the locally (cmake build dir) exported cmake script,
there was no namespace, so the targets would directly be available
in the global namespace. Users would do something like:

    include(cmake/tinyxml2Targets.cmake)
    target_link_libraries(main tinyxml2)

Now, a namespace is used (just like the cmake export that is exported
to the system at the `install(EXPORT...)` command at the bottom of this
file. Uses will now look like:

    include(cmake/tinyxml2Targets.cmake)
    target_link_libraries(main tinyxml2::tinyxml2)

This is technically a minor breaking change. It will only affect users
that actually use the *locally* export cmake targets script, which I
expect to be fairly few (note that this is different from the system
exported script). Also, it will only affect users that freshly
build at this commit of tinyxml2, and have the cmake for their
downstream project configured to load it. That cmake will need to be
changed from the first snippet to the second snippet above.
2020-09-27 00:50:23 -04:00
Pantelis Lekakis
c87bf8187d reverted the strong typed enum change 2020-09-23 21:59:13 +01:00
Lee Thomason
1aeb57d26b Merge pull request #823 from c72578/2020-06-17_Fix_pkgconfig_lib_postfix
cmake: Fix debug postfix in pkgconfig file
2020-09-17 13:55:47 -07:00
Lee Thomason
a0ce5527ab Merge pull request #789 from offlinemark/mark/cmake-clean
cmake: Refactor targets export variable and improve comments
2020-09-17 13:28:16 -07:00
Lee Thomason
54e1d6b2fa Merge pull request #820 from orudge/fix-symbol-export
cmake: Don't export symbols if building static library
2020-09-17 13:19:14 -07:00
Pantelis Lekakis
6df0cae189 - Allowing TIXMLASERT to be defined before including the main header.
- Fix for enum bitmask usage
2020-09-08 00:41:58 +01:00
ngc92
2c6a41a92e removed overhead of clear error 2020-07-30 23:51:30 +03:00