Skip to content

Try to build log4cplus using MSVC .vcxproj files on Appveyor. #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,41 @@ environment:
BDIR: msvc2015
PRJ_CFG: Release
PARAMS: ''
MSBUILD: "false"
- PRJ_GEN: "Visual Studio 15 2017"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
BDIR: msvc2017
PRJ_CFG: Release
MSBUILD: "false"
- PRJ_GEN: "Visual Studio 16 2019"
APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
BDIR: msvc2017
PRJ_CFG: Release
MSBUILD: "false"
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
PRJ_CFG: Release
PRJ_PLATFORM: x64
MSBUILD: "true"
PRJ_SUFFIX: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2019"
PRJ_CFG: Release
PRJ_PLATFORM: x64
MSBUILD: "true"
PRJ_SUFFIX: "S"

build_script:
- mkdir build.%BDIR%
- cd build.%BDIR%
- cmake .. -G "%PRJ_GEN%" -A x64 "-DCMAKE_BUILD_TYPE=%PRJ_CFG%" %PARAMS%
- cmake --build . --config "%PRJ_CFG%" --clean-first

test_script:
- ctest -V --output-on-failure -C %PRJ_CFG%

for:
- matrix:
only:
- MSBUILD: "true"
build_script:
- msbuild "msvc14\log4cplus%PRJ_SUFFIX%.vcxproj" "/p:Configuration=%PRJ_CFG%" "/p:Platform=%PRJ_PLATFORM%" /nologo /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- matrix:
only:
- MSBUILD: "false"
build_script:
- mkdir build.%BDIR%
- cd build.%BDIR%
- cmake .. -G "%PRJ_GEN%" -A x64 "-DCMAKE_BUILD_TYPE=%PRJ_CFG%" %PARAMS%
- cmake --build . --config "%PRJ_CFG%" --clean-first
test_script:
- ctest -V --output-on-failure -C %PRJ_CFG%