summaryrefslogtreecommitdiff
path: root/src/libctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-27 09:50:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:29:32 +0200
commitf5b09df9c88d49c95fd0c0ef7b3670b40634ca5c (patch)
tree3b5e78254b88e5546bf8e041226ad90db1d512c2 /src/libctor.h
parent7a16146600384272baf7fb2fc0fc64f59b17ffe9 (diff)
WIP: automatic externalsexternals
Diffstat (limited to 'src/libctor.h')
-rw-r--r--src/libctor.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libctor.h b/src/libctor.h
index 14fdf1d..9775085 100644
--- a/src/libctor.h
+++ b/src/libctor.h
@@ -69,7 +69,8 @@ struct Settings
std::string builddir{"build"};
std::size_t parallel_processes{1};
int verbose{0}; // -1: completely silent, 0: normal, 1: verbose, ...
-};
+ std::vector<std::string> include_paths{"/usr/include", "/usr/local/include"};
+ std::vector<std::string> library_paths{"/lib", "/usr/lib", "/usr/local/lib"};};
struct BuildConfiguration;
using GeneratorCb = std::function<int(const std::string& input,
@@ -101,11 +102,20 @@ struct ExternalManual
Flags flags;
};
+// This type will search for the supplied libs and headers, supplied flags
+// will be be used verbatim.
+struct ExternalAutomatic
+{
+ std::vector<std::string> headers;
+ std::vector<std::string> libs;
+ Flags flags;
+};
struct ExternalConfiguration
{
std::string name; // Name for configuration
- std::variant<ExternalManual> external;
+ std::variant<ExternalManual,
+ ExternalAutomatic> external;
};
using ExternalConfigurations = std::vector<ExternalConfiguration>;