2015-09-05 0:14 GMT+03:00 Rene Rivera
: On Fri, Sep 4, 2015 at 3:04 PM, Antony Polukhin
wrote: 2015-09-04 21:33 GMT+03:00 Rene Rivera
: They aren't linked. They are passed in as extra args. Re:
rule run ( sources + : args * : input-files * : requirements * : target-name ? : default-build * )
It's the "input-files" argument.
Thanks, this works. But unfortunately this method requires tests and examples to be rewritten. Also, is there a way to receive library name without a version ("libtest_library.so" instead of "libtest_library.so.1.59.0")?
OK, the solution works for Linux but fails on Windows. In Jamfile I'm explicitly requesting to build shared library: lib my_plugin_sum : ../example/tutorial1/my_plugin_sum.cpp : <link>shared ; lib my_plugin_aggregator : ../example/tutorial2/my_plugin_aggregator.cpp : <link>shared ; But when I'm feeding those libraries to the test as input files: [ run ../example/tutorial3/tutorial3.cpp : : my_plugin_aggregator my_plugin_sum ] I recieve the following 2 first parameters, one of which is a static library: "D:\boost\bin.v2\libs\dll\test\msvc-12.0\dbg\adrs-mdl-64\thrd-mlt\my_plugin_sum-vc120-mt-gd-1_60.dll" "D:\boost\bin.v2\libs\dll\test\msvc-12.0\dbg\adrs-mdl-64\thrd-mlt\my_plugin_sum-vc120-mt-gd-1_60.lib" Is there a way to receive only shared libraries via input-files? -- Best regards, Antony Polukhin