• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Rene Rivera
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or copy at
4# http://www.boost.org/LICENSE_1_0.txt)
5
6import feature ;
7
8#| tag::doc[]
9
10[[bbv2.builtin.features.translate-path]]`translate-path`::
11Used to introduce custom path feature translation. The value should have the
12form:
13+
14----
15@rulename
16----
17+
18where _rulename_ should be a name of a rule with the following signature:
19+
20----
21rule rulename ( feature value : properties * : project-id : project-location )
22----
23+
24The rule is called for each target with the `feature` of a path property,
25the path property value, target properties, the target project ID, and
26the target project location. It should return the translated path value.
27Or return nothing if it doesn't do path translation. Leaving it do the
28default path translation.
29
30|# # end::doc[]
31
32feature.feature translate-path
33    :
34    : incidental free ;
35