diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-30 07:12:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-30 11:23:09 +0200 |
commit | b4c8dc71b6f2c9d8bd63591b3e9a1c6bc329c240 (patch) | |
tree | d41e8c43c0391cbed7377a99609d6182ab3d5676 /libbuild2/build/script/builtin.cli | |
parent | de2daaa41ec6064181e6b9e73a34c32cd0008242 (diff) |
Add depdb-dyndep --target-extension-type option
This allows specifying custom extension to target type mapping.
Diffstat (limited to 'libbuild2/build/script/builtin.cli')
-rw-r--r-- | libbuild2/build/script/builtin.cli | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libbuild2/build/script/builtin.cli b/libbuild2/build/script/builtin.cli index cf1540d..6d6369b 100644 --- a/libbuild2/build/script/builtin.cli +++ b/libbuild2/build/script/builtin.cli @@ -76,8 +76,8 @@ namespace build2 dir_paths --include-path|-I; // Search paths for generated // prerequisites. - string --default-type; // Default prerequisite type to use - // if none could be derived from ext. + string --default-type; // Default prerequisite type to use if + // none could be derived from extension. bool --adhoc; // Treat dynamically discovered // prerequisites as ad hoc (so they @@ -103,15 +103,17 @@ namespace build2 // ad hoc group members (unless already specified as static members). // This functionality is not available in the byproduct mode. // - // @@ BTW, here what would likely be more useful than default target - // is the ability to specify custom extension-to-type mapping in - // order to resolve ambiguities. See also the issue with getting - // these options during clean. - // string --target-what; // Target kind, e.g., "source". string --target-default-type; // Default target type to use if none - // could be derived from ext. + // could be derived from extension. + + map<string, string> // Extension to target type mapping in + --target-extension-type; // the <ext>=<type> form, for example, + // h=hxx. This mapping is considered + // before attempting to automatically + // map the extension and so can be used + // to resolve ambiguities. dir_path --target-cwd; // Builtin's working directory used to // complete relative paths of targets. |