升压:的bjam如何建构一个库的名字吗? [英] Boost: How bjam constructs a library name?

查看:105
本文介绍了升压:的bjam如何建构一个库的名字吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找的Jam文件,库的名称是如何构建的。
例如: libboost_log-mgw46-MT-1_48.dll

I was looking in the jam files, how the name of library is constructed. Example: libboost_log-mgw46-mt-1_48.dll

我想忽略的最后部分,如何通过连接-o参数与我的名字建造。
我有几个版本,并在一个大项目链接迫使我在项目文件中做变化,这是一个很大的地方。

I would like to ignore the last part, how to pass linker the -o parameter with my constructed name. I have few versions and linking in a big project forces me to do changes in project file and that is a lot of places.

我的愿望是让libboost_log.dll。我也只是重新命名,但执行程序它说的时候,它无法找到
libboost_log-mgw46-MT-1_48.dll 文件。

My wish is to get libboost_log.dll. I did just rename, but when executing a program it says, that it can not find libboost_log-mgw46-mt-1_48.dll file.

推荐答案

提升的bjam有 3种不同布局的命名定义。引用放在 Jamroot中帮助文件(我不知道任何更好的在线文档):

Boost Bjam has 3 different layouts of naming defined. To quote the help placed in Jamroot file (I'm not aware of any better online documentation):

#   --layout=<layout>       Determines whether to choose library names
#                           and header locations such that multiple
#                           versions of Boost or multiple compilers can
#                           be used on the same system.
#
#                               versioned - Names of boost binaries
#                               include the Boost version number, name and
#                               version of the compiler and encoded build
#                               properties.  Boost headers are installed in a
#                               subdirectory of <HDRDIR> whose name contains
#                               the Boost version number.
#
#                               tagged -- Names of boost binaries include the
#                               encoded build properties such as variant and
#                               threading, but do not including compiler name
#                               and version, or Boost version. This option is
#                               useful if you build several variants of Boost,
#                               using the same compiler.
#
#                               system - Binaries names do not include the
#                               Boost version number or the name and version
#                               number of the compiler.  Boost headers are
#                               installed directly into <HDRDIR>.  This option
#                               is intended for system integrators who are
#                               building distribution packages.
#
#                           The default value is 'versioned' on Windows, and
#                           'system' on Unix.

系统布局给你想要的命名方案 - 平原基本名称,没有任何其他信息。

The system layout gives the naming scheme you want - plain basename without any other information.

根据这些布局升压输出文件名称使用标记规则,在 boostcpp.jam 定义生成文件中。

Names for Boost output files according to these layouts are generated using the tag rule, defined in boostcpp.jam file.

这篇关于升压:的bjam如何建构一个库的名字吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆