python - Getting waf to output solution to another directory -


i wrote simple waf build script:

#! /usr/bin/env python # encoding: utf-8  def options(opt):     opt.load('compiler_cxx')     opt.load('msvs')  def configure(conf):     conf.load('compiler_cxx')  def build(bld):     print('build') 

but problem outputed solution file @ root of project (where wscript is);

project structure after running waf

would there way generate ide specific files directory (for instance, ide/msvs) ?

you can redirect output of solution using

out = os.path.join('my', 'out', 'dir') 

which relative top_dir (https://waf.io/apidocs/context.html?highlight=top_dir#waflib.context.top_dir).

so in case:

#! /usr/bin/env python # encoding: utf-8 import os  out = os.path.join('my', 'out', 'dir')  def options(opt):     opt.load('compiler_cxx')     opt.load('msvs')  def configure(conf):     conf.load('compiler_cxx')  def build(bld):     print('build') 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -