2014-10-03 11:44 GMT+04:00 Vladimir Prus <ghost@cs.msu.su>:
On 09/29/2014 09:01 PM, Antony Polukhin wrote:
Hi,

Is there any way to force "system" layout for some of the shared libraries from within Jamfile.v2?

Setting <layout>system produces error:

error: unknown feature "<layout>"
D:/boost/tools/build/src/build\feature.jam:359: in expand-subfeatures-aux from module feature

Hi Antony,

there's no way to set a layout - it's sort of global property at present. Of course, you can
look at boostcpp.tag, at

        https://github.com/boostorg/boost/blob/master/boostcpp.jam#L117

and reuse it, with possible factoring, or create your own tag function that would
call common.format-name appropriately.

Thank you for the answer!

My knowledge of Bjam is not good, so instead of modifying boostcpp.jam I've took config/auto_link.hpp as a base and made a macro to produce library name. Now `"my_plugin_sum" BJAM_LIBRARY_DECORATIONS` becomes `"my_plugin_sum-vc110-mt-gd-1_57"`.

--
Best regards,
Antony Polukhin