aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/builtin-options.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-30 07:12:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-30 11:23:09 +0200
commitb4c8dc71b6f2c9d8bd63591b3e9a1c6bc329c240 (patch)
treed41e8c43c0391cbed7377a99609d6182ab3d5676 /libbuild2/build/script/builtin-options.hxx
parentde2daaa41ec6064181e6b9e73a34c32cd0008242 (diff)
Add depdb-dyndep --target-extension-type option
This allows specifying custom extension to target type mapping.
Diffstat (limited to 'libbuild2/build/script/builtin-options.hxx')
-rw-r--r--libbuild2/build/script/builtin-options.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/libbuild2/build/script/builtin-options.hxx b/libbuild2/build/script/builtin-options.hxx
index 2a00072..a8c3440 100644
--- a/libbuild2/build/script/builtin-options.hxx
+++ b/libbuild2/build/script/builtin-options.hxx
@@ -204,6 +204,21 @@ namespace build2
void
target_default_type_specified (bool);
+ const map<string, string>&
+ target_extension_type () const;
+
+ map<string, string>&
+ target_extension_type ();
+
+ void
+ target_extension_type (const map<string, string>&);
+
+ bool
+ target_extension_type_specified () const;
+
+ void
+ target_extension_type_specified (bool);
+
const dir_path&
target_cwd () const;
@@ -250,6 +265,8 @@ namespace build2
bool target_what_specified_;
string target_default_type_;
bool target_default_type_specified_;
+ map<string, string> target_extension_type_;
+ bool target_extension_type_specified_;
dir_path target_cwd_;
bool target_cwd_specified_;
};