[QBS] Absolute paths in Product.destination question
christian.kandeler at digia.com
Fri Mar 8 17:26:29 CET 2013
On 03/08/2013 01:36 PM, Smirnov Vladimir wrote:
> "If the app and the lib are in the same project, then qbs knows where the
> lib is when linking the app, so installation of the lib is not part of
> that process.
> Is it right that even .lib file placed in temporarily build folder ,then in another product (app) build it (lib) will be passed to linker with right path ?
> so i don't even need to install it to the intermediate folder ?
Yes, qbs knows the project structure and therefore also the location at
which the library was built.
> Furthermore question, if .lib file added to linker using #pragma comment(lib, static_A) feature of MSVC, qbs also pass the correct library path to linker (with temp folder)?
This is outside the build system's control, so I suppose this would only
work if the library is at a location where the linker can find it on its
own (or if you add the right path in a project file).
> I hadn't noticed such a behavior before (qbs outputs commands it execute), so i'm not sure that we have shared point of view.
You mean the linker command line you saw did not contain the expected
information regarding the location of the library? Could you perhaps
give an example?
More information about the Qbs