mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 03:15:30 +00:00
Do some cleanup and fix NuGet packages.
This commit is contained in:
parent
880a461160
commit
8ba0e97ec2
@ -5,11 +5,12 @@ Changes in Mini-XML
|
|||||||
Changes in Mini-XML 4.0.4
|
Changes in Mini-XML 4.0.4
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
- Added Linux-specific build files and dropped unused `long long` config tests
|
||||||
|
(Issue #335)
|
||||||
- Fixed an issue when reporting errors with a `NULL` options pointer
|
- Fixed an issue when reporting errors with a `NULL` options pointer
|
||||||
(Issue #329)
|
(Issue #329)
|
||||||
- Fixed some compiler warnings (Issue #333)
|
- Fixed some compiler warnings (Issue #333)
|
||||||
- Fixed some documentation issues (Issue #334)
|
- Fixed some documentation issues (Issue #334)
|
||||||
- Dropped unused `long long` config tests (Issue #335)
|
|
||||||
|
|
||||||
|
|
||||||
Changes in Mini-XML 4.0.3
|
Changes in Mini-XML 4.0.3
|
||||||
|
@ -179,8 +179,8 @@ clean:
|
|||||||
$(RM) mxml4.lib
|
$(RM) mxml4.lib
|
||||||
$(RM) libmxml4.a
|
$(RM) libmxml4.a
|
||||||
$(RM) libmxml4.so
|
$(RM) libmxml4.so
|
||||||
$(RM) libmxml4.so.1
|
$(RM) libmxml4.so.2
|
||||||
$(RM) libmxml4.1.dylib
|
$(RM) libmxml4.2.dylib
|
||||||
$(RM) libmxml4.dylib
|
$(RM) libmxml4.dylib
|
||||||
|
|
||||||
|
|
||||||
@ -415,13 +415,18 @@ testmxml-vg: $(LIBOBJS) testmxml.o
|
|||||||
|
|
||||||
testmxml.o: mxml.h
|
testmxml.o: mxml.h
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
# Fuzz-test the library <>
|
# Fuzz-test the library <>
|
||||||
|
#
|
||||||
|
|
||||||
.PHONY: afl
|
.PHONY: afl
|
||||||
afl:
|
afl:
|
||||||
$(MAKE) -$(MAKEFLAGS) CC="afl-clang-fast" COMMONFLAGS="-g" clean all
|
$(MAKE) -$(MAKEFLAGS) CC="afl-clang-fast" COMMONFLAGS="-g" clean all
|
||||||
test afl-output || rm -rf afl-output
|
test afl-output || rm -rf afl-output
|
||||||
afl-fuzz -x xml.dict -i afl-input -o afl-output -V 600 -e xml -t 5000 ./testmxml @@ temps.xml
|
afl-fuzz -x xml.dict -i afl-input -o afl-output -V 600 -e xml -t 5000 ./testmxml @@ temps.xml
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Analyze code with the Clang static analyzer <https://clang-analyzer.llvm.org>
|
# Analyze code with the Clang static analyzer <https://clang-analyzer.llvm.org>
|
||||||
#
|
#
|
||||||
|
@ -136,14 +136,10 @@ BUILDROOT = $(DSTROOT)$(DESTDIR)
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rules...
|
# Silent build...
|
||||||
#
|
#
|
||||||
|
|
||||||
.SILENT:
|
.SILENT:
|
||||||
.SUFFIXES: .c .man .o
|
|
||||||
.c.o:
|
|
||||||
echo Compiling $<
|
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -320,15 +316,6 @@ libmxml.a libmxml4.a: $(LIBOBJS)
|
|||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# libmxml2.dll
|
|
||||||
#
|
|
||||||
|
|
||||||
libmxml.dll libmxml4.dll: $(LIBOBJS)
|
|
||||||
echo Creating $@...
|
|
||||||
$(DSO) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# libmxml.so.2
|
# libmxml.so.2
|
||||||
#
|
#
|
||||||
@ -348,10 +335,6 @@ testmxml: $(LIBMXML_STATIC) testmxml.o
|
|||||||
echo Linking $@...
|
echo Linking $@...
|
||||||
$(CC) $(LDFLAGS) -o $@ testmxml.o $(LIBMXML_STATIC) $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ testmxml.o $(LIBMXML_STATIC) $(LIBS)
|
||||||
|
|
||||||
testmxml-vg: $(LIBOBJS) testmxml.o
|
|
||||||
echo Linking $@...
|
|
||||||
$(CC) $(LDFLAGS) -o $@ testmxml.o $(LIBOBJS) $(LIBS)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Documentation (depends on separate codedoc utility)
|
# Documentation (depends on separate codedoc utility)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/* config.h. Generated from config.h.in by configure. */
|
|
||||||
//
|
//
|
||||||
// Configuration file for Mini-XML, a small XML file parsing library.
|
// Linux configuration file for Mini-XML, a small XML file parsing library.
|
||||||
//
|
//
|
||||||
// https://www.msweet.org/mxml
|
// https://www.msweet.org/mxml
|
||||||
//
|
//
|
||||||
|
15
makesrcdist
15
makesrcdist
@ -49,6 +49,16 @@ if ! grep -q "Version: $version" mxml.spec; then
|
|||||||
status=1
|
status=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$(grep MXML_VERSION linux/config.h | awk '${print $5}')" != "v$version\""; then
|
||||||
|
echo "Update MXML_VERSION in linux/config.h."
|
||||||
|
status=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$(grep MXML_VERSION vcnet/config.h | awk '${print $5}')" != "v$version\""; then
|
||||||
|
echo "Update MXML_VERSION in vcnet/config.h."
|
||||||
|
status=1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! grep -q "<version>$version</version>" vcnet/libmxml4_native.nuspec; then
|
if ! grep -q "<version>$version</version>" vcnet/libmxml4_native.nuspec; then
|
||||||
echo "Update vcnet/libmxml4_native.nuspec."
|
echo "Update vcnet/libmxml4_native.nuspec."
|
||||||
status=1
|
status=1
|
||||||
@ -63,6 +73,11 @@ if ! grep -q "<version>$version</version>" vcnet/libmxml4_native.redist.nuspec;
|
|||||||
status=1
|
status=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$(grep MXML_VERSION xcode/config.h | awk '${print $5}')" != "v$version\""; then
|
||||||
|
echo "Update MXML_VERSION in xcode/config.h."
|
||||||
|
status=1
|
||||||
|
fi
|
||||||
|
|
||||||
if test $status = 1; then
|
if test $status = 1; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>libmxml2_native</id>
|
<id>libmxml4_native</id>
|
||||||
<title>Small XML File Parsing Library for VS2019+</title>
|
<title>Small XML File Parsing Library for VS2019+</title>
|
||||||
<version>4.0.3</version>
|
<version>4.0.4</version>
|
||||||
<authors>Michael R Sweet</authors>
|
<authors>Michael R Sweet</authors>
|
||||||
<owners>michaelrsweet</owners>
|
<owners>michaelrsweet</owners>
|
||||||
<projectUrl>https://github.com/michaelrsweet/mxml</projectUrl>
|
<projectUrl>https://github.com/michaelrsweet/mxml</projectUrl>
|
||||||
@ -16,15 +16,15 @@
|
|||||||
<copyright>Copyright © 2003-2024 by Michael R Sweet</copyright>
|
<copyright>Copyright © 2003-2024 by Michael R Sweet</copyright>
|
||||||
<tags>xml</tags>
|
<tags>xml</tags>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="libmxml2_native.redist" version="4.0.3" />
|
<dependency id="libmxml4_native.redist" version="4.0.4" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
<file src="..\doc\mxml-128.png" target="build\native" />
|
<file src="..\doc\mxml-128.png" target="build\native" />
|
||||||
<file src="..\README.md" target="build\native" />
|
<file src="..\README.md" target="build\native" />
|
||||||
<file src="libmxml2_native.props" target="build\native" />
|
<file src="libmxml4_native.props" target="build\native" />
|
||||||
<file src="..\mxml.h" target="build\native\include" />
|
<file src="..\mxml.h" target="build\native\include" />
|
||||||
<!--<file src="Win32\**\libmxml2.lib" target="build\native\lib\Win32" />-->
|
<!--<file src="Win32\**\mxml4.lib" target="build\native\lib\Win32" />-->
|
||||||
<file src="x64\**\libmxml2.lib" target="build\native\lib\x64" />
|
<file src="x64\**\mxml4.lib" target="build\native\lib\x64" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include</AdditionalIncludeDirectories>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<AdditionalDependencies>$(MSBuildThisFileDirectory)\lib\$(Platform)\$(Configuration)\libmxml2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>$(MSBuildThisFileDirectory)\lib\$(Platform)\$(Configuration)\mxml4.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>libmxml2_native.redist</id>
|
<id>libmxml4_native.redist</id>
|
||||||
<title>Small XML File Parsing Library for VS2019+ Redist</title>
|
<title>Small XML File Parsing Library for VS2019+ Redist</title>
|
||||||
<version>4.0.3</version>
|
<version>4.0.4</version>
|
||||||
<authors>Michael R Sweet</authors>
|
<authors>Michael R Sweet</authors>
|
||||||
<owners>michaelrsweet</owners>
|
<owners>michaelrsweet</owners>
|
||||||
<projectUrl>https://github.com/michaelrsweet/mxml</projectUrl>
|
<projectUrl>https://github.com/michaelrsweet/mxml</projectUrl>
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<files>
|
<files>
|
||||||
<file src="..\doc\mxml-128.png" target="build\native" />
|
<file src="..\doc\mxml-128.png" target="build\native" />
|
||||||
<file src="..\README.md" target="build\native" />
|
<file src="..\README.md" target="build\native" />
|
||||||
<!--<file src="Win32\**\libmxml2.dll" target="build\native\bin\Win32" />-->
|
<!--<file src="Win32\**\mxml4.dll" target="build\native\bin\Win32" />-->
|
||||||
<file src="x64\**\libmxml2.dll" target="build\native\bin\x64" />
|
<file src="x64\**\mxml4.dll" target="build\native\bin\x64" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
Loading…
Reference in New Issue
Block a user