简体   繁体   中英

GCC Flag to SCONS

I`m building a library using make with the following flags:

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 ?

My issue is to understand how the path definition PKG_CONFIG_PATH= ... is passed to SCONS.

Likely you'll want to use either ParseFlags() or MergeFlags()

See: 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM