Merge pull request #396 from libexpat/msvc2008

Drop MSVC <=8.0/2005 + cover 32bit MSVC 9.0/2008 on AppVeyor
This commit is contained in:
Sebastian Pipping 2020-03-20 05:30:55 +01:00 committed by GitHub
commit ef1f2a1931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 5 deletions

View File

@ -51,6 +51,21 @@ configuration: Debug
# https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators
environment:
matrix:
# Visual Studio 2008 Win32
- GENERATOR: Visual Studio 9 2008
PLATFORM: Win32
EXPAT_DLL: libexpatd.dll
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
PREPEND_TO_PATH: C:\Windows\Microsoft.NET\Framework\v3.5;
# Visual Studio 2008 Win32 XML_UNICODE_WCHAR_T
- GENERATOR: Visual Studio 9 2008
PLATFORM: Win32
CMAKE_ARGS: -DEXPAT_CHAR_TYPE=wchar_t
EXPAT_DLL: libexpatwd.dll
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
PREPEND_TO_PATH: C:\Windows\Microsoft.NET\Framework\v3.5;
# Visual Studio 2010 Win32
- GENERATOR: Visual Studio 10 2010
PLATFORM: Win32
@ -184,11 +199,11 @@ environment:
before_build:
- echo Running cmake...
- cd c:\projects\libexpat
- set path=%PREPEND_TO_PATH%%path%
- cmake -G"%GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DEXPAT_WARNINGS_AS_ERRORS=ON %CMAKE_ARGS% expat
build:
parallel: true # enable MSBuild parallel builds
project: expat.sln # path to Visual Studio solution or project
build_script:
- msbuild "c:\projects\libexpat\expat.sln" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- cp %CONFIGURATION%\\%EXPAT_DLL% tests\\%CONFIGURATION%\\

View File

@ -4,6 +4,7 @@ NOTE: We are looking for help with a few things:
Release x.x.x xxx xxxxxxxxx xx xxxx
Other changes:
#396 Windows: Drop support for Visual Studio <=8.0/2005
#383 #393 Autotools: Improve handling of user (C|CPP|CXX|LD)FLAGS,
e.g. ensure that they have the last word over flags added
while running ./configure

View File

@ -16,7 +16,7 @@ structures for which you may register handlers.
Expat supports the following compilers:
- GNU GCC >=4.5
- LLVM Clang >=3.5
- Microsoft Visual Studio >=8.0/2005
- Microsoft Visual Studio >=9.0/2008
Windows users can use the
[`expat_win32` package](https://sourceforge.net/projects/expat/files/expat_win32/),

View File

@ -5,7 +5,7 @@ Expat can be built on Windows in two ways:
* Cygwin:
This follows the Unix build procedures.
* MS Visual Studio 2013, 2015 and 2017:
* MS Visual Studio 2008, 2010, 2013, 2015 and 2017:
Use CMake to generate a solution file for Visual Studio, then use msbuild
to compile. For example: