From b4c8dc71b6f2c9d8bd63591b3e9a1c6bc329c240 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 May 2023 07:12:30 +0200 Subject: Add depdb-dyndep --target-extension-type option This allows specifying custom extension to target type mapping. --- libbuild2/build/script/builtin-options.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/build/script/builtin-options.cxx') 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, &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_ >; -- cgit v1.1