[英]GCC Flag to SCONS
I`m building a library using make with the following flags: 我正在使用带有以下标志的make构建一个库:
INCL = `PKG_CONFIG_PATH=/mingw64/lib64/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig pkg-config --cflags ipopt` $(ADDINCFLAGS)
LIBS =
'PKG_CONFIG_PATH=/mingw64/lib64/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig pkg-config --libs ipopt'
How can I translate this to build with SCONS ? 如何将其翻译为使用SCONS构建?
My issue is to understand how the path definition PKG_CONFIG_PATH= ...
is passed to SCONS. 我的问题是了解如何将路径定义
PKG_CONFIG_PATH= ...
传递给SCONS。
Likely you'll want to use either ParseFlags() or MergeFlags() 您可能想使用ParseFlags()或MergeFlags()
See: http://scons.org/doc/production/HTML/scons-man.html 请参阅: http : //scons.org/doc/production/HTML/scons-man.html
Further there's a reasonable example in the SCons wiki here: https://bitbucket.org/scons/scons/wiki/UsingPkgConfig 此外,这里的SCons Wiki中有一个合理的示例: https : //bitbucket.org/scons/scons/wiki/UsingPkgConfig
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.