From 0e4b299b45ad2ee92dab0569abf4228dad17f9ab Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Mon, 12 Mar 2018 16:34:18 +0100 Subject: [PATCH] Provide tools for creating an amalgamation header --- doc/installation.dox | 9 ++++++++- tools/amalgamate/.gitignore | 1 + tools/amalgamate/amalgamate.hpp.prologue | 2 ++ tools/amalgamate/amalgamate.json | 11 +++++++++++ tools/amalgamate/amalgamate.sh | 1 + 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tools/amalgamate/.gitignore create mode 100644 tools/amalgamate/amalgamate.hpp.prologue create mode 100644 tools/amalgamate/amalgamate.json create mode 100644 tools/amalgamate/amalgamate.sh diff --git a/doc/installation.dox b/doc/installation.dox index e0dff0a..f39a257 100644 --- a/doc/installation.dox +++ b/doc/installation.dox @@ -44,7 +44,7 @@ versions might work. \section installation-dependencies Dependencies Continuable is a header-only library with one required header-only dependency: - + - [Naios/function2](https://github.com/Naios/function2) is used as type erasure wrapper to convert a \ref continuable_base into a \ref continuable. @@ -120,6 +120,13 @@ and might be installed from there. to make it available from various package managers in order to make the installation easier. +\subsection installation-installation-amalgamation By using the amalgamation header + +For major versions there is an amalgamation header provided which can be +included without any dependency: + +- [3.0.0](https://gist.githubusercontent.com/Naios/b128ab5028a7eb33e4285c0293573d9f/raw/79fe332964a786b21a8661ef65d07a5669260a3c/continuable.hpp) + \subsection installation-installation-copy By copying the headers If you don't want to rely on CMake or package managers it is possible to diff --git a/tools/amalgamate/.gitignore b/tools/amalgamate/.gitignore new file mode 100644 index 0000000..e1d18b1 --- /dev/null +++ b/tools/amalgamate/.gitignore @@ -0,0 +1 @@ +continuable.hpp diff --git a/tools/amalgamate/amalgamate.hpp.prologue b/tools/amalgamate/amalgamate.hpp.prologue new file mode 100644 index 0000000..8c90c9f --- /dev/null +++ b/tools/amalgamate/amalgamate.hpp.prologue @@ -0,0 +1,2 @@ +/// This is an automatic generated amalgamation of: +/// continuable version 3.0.0 (d30814c2ff001) diff --git a/tools/amalgamate/amalgamate.json b/tools/amalgamate/amalgamate.json new file mode 100644 index 0000000..e6bd771 --- /dev/null +++ b/tools/amalgamate/amalgamate.json @@ -0,0 +1,11 @@ +{ + "project":"continuable", + "target":"continuable.hpp", + "sources":[ + "include/continuable/continuable.hpp" + ], + "include_paths":[ + "include", + "dep/function2/function2/include" + ] +} diff --git a/tools/amalgamate/amalgamate.sh b/tools/amalgamate/amalgamate.sh new file mode 100644 index 0000000..cddcca7 --- /dev/null +++ b/tools/amalgamate/amalgamate.sh @@ -0,0 +1 @@ +../../../amalgamate/amalgamate.py --config=amalgamate.json --prologue=amalgamate.hpp.prologue --source=../..