如何在waf中指定库安装路径后缀?
我想将使用命令 bld.shlib(...)
构建的库安装到
中,其中 arch_suffix 可以是 64 或空根据建筑学。
我该怎么做?
如果不可能,那么我如何显式指定这个后缀?
I want to install libraries that are built with command bld.shlib(...)
into <prefix>/lib<arch_suffix>
, where arch_suffix can be 64 or empty according to architecture.
How can I do this?
If it's impossible, then how can I explicitly specify this suffix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个简单的例子,应该对您有帮助。更改安装路径确实很容易。在此示例中,我将“后缀”选项添加到选项上下文中的“配置选项”组中。然后在配置上下文中,我设置了一个名为 SUFFIX 的环境变量。在构建上下文中,我在“install_path”关键字参数中使用环境变量。这里重要的是您可以引用已设置的任何环境变量。
This is a simple example that should help you. It is really easy to change the install path. In this example, I add the "suffix" option to the "configure options" group in the option context. Then in the configure context, I set an environment variable called SUFFIX. In the build context, I use the environment variable in the "install_path" keyword argument. The import thing here is that you can reference any environment variable that's been set.