building libraries with waf is nice and I like the lib<targetname>
naming scheme. But when I use is with boost::python, I'd like to get rid of it: I'd like the librarie's name to be like the target name. This is just a simple rename, I know, but: Can I tell waf to leave out putting lib
before the target name (alternatively: specify an own name which stays untouched)?
Waf: Specify library name for python extensions
475 views Asked by wal-o-mat At
1
Ok, got it. This feature can be enabled by using the
python
tool, found here: http://docs.waf.googlecode.com/git/apidocs_16/tools/python.html#module-waflib.Tools.pythonThe main point is calling
conf.init_pyext()
and in the build directive for the shared library specifyingfeatures='pyext'
:Now, in the build directory there is a shared library called
myfoo.so
which can directly beimport
ed.