aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/builtin-options.cxx
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.cxx
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.cxx')
-rw-r--r--libbuild2/build/script/builtin-options.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/build/script/builtin-options.cxx b/libbuild2/build/script/builtin-options.cxx
index 3b64de1..dba3c59 100644
--- a/libbuild2/build/script/builtin-options.cxx
+++ b/libbuild2/build/script/builtin-options.cxx
@@ -294,6 +294,8 @@ namespace build2
target_what_specified_ (false),
target_default_type_ (),
target_default_type_specified_ (false),
+ target_extension_type_ (),
+ target_extension_type_specified_ (false),
target_cwd_ (),
target_cwd_specified_ (false)
{
@@ -403,6 +405,9 @@ namespace build2
_cli_depdb_dyndep_options_map_["--target-default-type"] =
&::build2::build::cli::thunk< depdb_dyndep_options, string, &depdb_dyndep_options::target_default_type_,
&depdb_dyndep_options::target_default_type_specified_ >;
+ _cli_depdb_dyndep_options_map_["--target-extension-type"] =
+ &::build2::build::cli::thunk< depdb_dyndep_options, map<string, string>, &depdb_dyndep_options::target_extension_type_,
+ &depdb_dyndep_options::target_extension_type_specified_ >;
_cli_depdb_dyndep_options_map_["--target-cwd"] =
&::build2::build::cli::thunk< depdb_dyndep_options, dir_path, &depdb_dyndep_options::target_cwd_,
&depdb_dyndep_options::target_cwd_specified_ >;