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.ixx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'libbuild2/build/script/builtin-options.ixx') diff --git a/libbuild2/build/script/builtin-options.ixx b/libbuild2/build/script/builtin-options.ixx index 3e3787f..20847c2 100644 --- a/libbuild2/build/script/builtin-options.ixx +++ b/libbuild2/build/script/builtin-options.ixx @@ -294,6 +294,36 @@ namespace build2 this->target_default_type_specified_ = x; } + inline const map& depdb_dyndep_options:: + target_extension_type () const + { + return this->target_extension_type_; + } + + inline map& depdb_dyndep_options:: + target_extension_type () + { + return this->target_extension_type_; + } + + inline void depdb_dyndep_options:: + target_extension_type (const map& x) + { + this->target_extension_type_ = x; + } + + inline bool depdb_dyndep_options:: + target_extension_type_specified () const + { + return this->target_extension_type_specified_; + } + + inline void depdb_dyndep_options:: + target_extension_type_specified (bool x) + { + this->target_extension_type_specified_ = x; + } + inline const dir_path& depdb_dyndep_options:: target_cwd () const { -- cgit v1.1