summaryrefslogtreecommitdiff
path: root/libcppbuild.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-20 14:27:31 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-20 14:27:31 +0200
commit94b0690973a460c86e36a7935adbe201e4f66361 (patch)
tree5aff5bc33e92d356dd8c4b4bd7a69a472f5c8e3a /libcppbuild.h
parente43c5e6f856ad583579384e1f9509f66e3e0537e (diff)
Add explicit target types (with 'auto' being the default)
Diffstat (limited to 'libcppbuild.h')
-rw-r--r--libcppbuild.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcppbuild.h b/libcppbuild.h
index a052ac8..5b442f8 100644
--- a/libcppbuild.h
+++ b/libcppbuild.h
@@ -5,8 +5,17 @@
#include <vector>
//#include <source_location>
+enum class TargetType
+{
+ Auto, // Default - deduce from target name
+ Executable,
+ StaticLibrary,
+ DynamicLibrary,
+};
+
struct BuildConfiguration
{
+ TargetType type{TargetType::Auto};
std::string target;
std::vector<std::string> sources;
std::vector<std::string> depends;