|
List Info
Thread: Custom Tool Search Path
|
|
| Custom Tool Search Path |

|
2007-07-25 04:53:17 |
|
Dear All,
I have created a custom tool which I have copied directly into the $(BOOST_BUILD_PATH)/tools directory and everything works fine. However, I would like to install this tools into an arbitrary directory. I have tried "import /path/to/file/my-tool ;" but this doesn't work.
Could anybody tell me how this can be done?
Thanks in advance.
Anthony
|
| Re: Custom Tool Search Path |

|
2007-07-25 05:01:28 |
|
I have solved this problem as follows:
import modules ;
modules.load my-tool : : /path/to/file ;
On 25/07/07, Anthony Novatsis < anthonynovatsis gmail.com">
anthonynovatsis gmail.com> wrote:Dear All,
I have created a custom tool which I have copied directly into the $(BOOST_BUILD_PATH)/tools directory and everything works fine. However, I would like to install this tools into an arbitrary directory. I have tried "import /path/to/file/my-tool ;" but this doesn't work.
Could anybody tell me how this can be done?
Thanks in advance.
Anthony
|
| Re: Custom Tool Search Path |
  Austria |
2007-07-25 05:49:08 |
Anthony Novatsis wrote:
> I have solved this problem as follows:
>
> import modules ;
>
> modules.load my-tool : : /path/to/file ;
However you are not properly importing the symbols...
Have you tried:
import /path/to/file/my-tool ;
Of course the filename is my-tool.jam
Regards
Roland
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|
|
| Re: Custom Tool Search Path |

|
2007-07-25 06:14:03 |
|
Hello Roland,
Using "import /path/to/file/my-tool ;" is what I originally tried (see original post) but it doesn't work.
The error is as follows (a rule defined within the module is not found):
/opt/boost-build/kernel/modules.jam:66: in modules.call-in rule my-tool.some-rule unknown in module my-tool.
Regards, Anthony
|
| Re: Custom Tool Search Path |
  Russian Federation |
2007-07-25 06:30:48 |
Anthony Novatsis wrote:
> Hello Roland,
>
> Using "import /path/to/file/my-tool ;" is
what I originally tried (see
> original post) but it doesn't work.
>
> The error is as follows (a rule defined within the
module is not found):
>
> /opt/boost-build/kernel/modules.jam:66: in
modules.call-in
> rule my-tool.some-rule unknown in module my-tool.
I think the problem is that the above 'import' manages to
use '/path/to/file/my-tool'
as the name of the module, not 'my-tool'.
I think the easiest solution is to arrange your
boost-build.jam to add /path/to/file
to the front of the BOOST_BUILD_PATH variable and then use:
import my-tool ;
- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
a>
|
|
| Re: Custom Tool Search Path |

|
2007-07-25 06:52:40 |
|
Yes, I thought that the problem was related to the fact that "/path/to/file/my-tool" was being used as the module name instead of
"my-tool". The rule "some-rule" is an actions rule defined in the module that is used by a custom generator.
It would be nice if import had the same semantics as modules.load (i.e. possibility to specify a search path for the module).
I was hoping for a solution independent of the BOOST_BUILD_PATH environment variable, but I will do it this way for now.
Thanks for your help!
Regards, Anthony
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|