|
Boost-Build : |
From: Andre Hentz (ahentz_at_[hidden])
Date: 2004-09-23 15:01:48
Hi,
I'm trying something along these lines:
lib test_lib : : <name>test_lib <search>lib ;
lib test_lib2 : : <name>test_lib2 <search>lib2 <use>test_lib ;
exe main : main.cpp test_lib2 ;
and it is not working. I know the <use> keywork works with normal
libraries but it doesn't seem to work with searched libraries.
A patch against v2/test/searched_lib.py is attached. It contains a test
case.
Best,
Andre Hentz
--------------080205040209010306020907 Content-Type: text/plain;
name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch"
--- use_plus_searched_lib.py 2004-09-23 12:57:42.000000000 -0700
+++ searched_lib.py 2004-08-23 05:40:23.000000000 -0700
@@ -140,47 +140,5 @@
t.run_build_system("-n")
-# Now, a second library that will depend on test_lib
-t.write("lib2/project-root.jam", "")
-t.write("lib2/Jamfile", "lib libtest_lib2 : test_lib2.cpp ;")
-t.write("lib2/test_lib2.cpp", """
-void foo();
-#ifdef _WIN32
-__declspec(dllexport)
-#endif
-void bar() {
- foo();
-}
-""");
-
-t.run_build_system(subdir="lib2")
-t.expect_addition("lib2/bin/$toolset/debug/libtest_lib2.dll")
-
-# Auto adjusting of suffixes does not work, since we need to
-# change dll to lib.
-#
-if (os.name == 'nt' or os.uname()[0].lower().startswith('cygwin')) and get_toolset() != 'gcc':
- t.copy("lib2/bin/$toolset/debug/libtest_lib2.lib", "lib2/test_lib2.lib")
-else:
- t.copy("lib2/bin/$toolset/debug/libtest_lib2.dll", "lib2/libtest_lib2.dll")
-
-
-# Link against test_lib2, which in turn uses test_lib
-t.write('main.cpp', """
-void bar();
-int main() {
- bar();
- return 0;
-}
-""")
-
-t.write('Jamfile', """
-lib test_lib : : <name>test_lib <search>lib ;
-lib test_lib2 : : <name>test_lib2 <search>lib2 <use>test_lib ;
-exe main : main.cpp test_lib2 ;
-""")
-
-t.run_build_system()
-
t.cleanup()
--------------080205040209010306020907--
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk