From 9fe6626a63718635cca6ce8920e1669d099d46a7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 19 Jun 2021 11:58:12 +0200 Subject: Make self-aware (and recompile/re-launch as needed) --- cppbuild.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'cppbuild.cc') diff --git a/cppbuild.cc b/cppbuild.cc index 882fe63..b1b31ed 100644 --- a/cppbuild.cc +++ b/cppbuild.cc @@ -18,8 +18,38 @@ exit $? #include "libcppbuild.h" +/* +Nested build configurations for for example unit-tests in a test folder +#include "test/cppbuild.cc" +*/ + std::vector configs() { + reg(__FILE__); +/* +Glob convenience methods +std::string glob = getFilesInDir(...); +*/ + +/* +Compilation database +https://clang.llvm.org/docs/JSONCompilationDatabase.html +*/ + +/* +En feature mere kunne være: pre-post build hooks +De vil kunne udtrykkes som intra-build dependencies +Og så selvfølgelig med conditions +*/ + +/* +Target som er "shell script" eller sådan noget +så kan man kalde f.eks. imageconvert +*/ + +/* +Compiler selection per-target (for arm cross-compilation) +*/ return { { -- cgit v1.2.3