Provide 1 .hpp + 1 .cpp distribution of Catch2

This commits also adds a script that does the amalgamation of headers
and .cpp files into the distributable version, removes the old
`generateSingleHeader` script, and also adds a very simple compilation
test for the amalgamated distribution.
This commit is contained in:
Martin Hořeňovský
2020-09-08 15:53:08 +02:00
parent 8b89a60bf6
commit 60dfec559f
8 changed files with 20556 additions and 129 deletions

View File

@@ -23,6 +23,8 @@ install:
before_build:
- set CXXFLAGS=%additional_flags%
# If we are building examples/extra-tests, we need to regenerate the amalgamated files
- cmd: if "%examples%"=="1" ( python .\tools\scripts\generateAmalgamatedFiles.py )
# Indirection because appveyor doesn't handle multiline batch scripts properly
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore