Search code examples
c++xcodewaf

Generate xcode project with waf


How I can generate xcode project with waf?

I see the xcode.py it says use ./waf configure xcode but it dose not work and says xcode function not found error.

I have no idea how to do this.


Solution

  • You have to put

    opt.load('xcode')
    

    into the options definition of your wscript. And, maybe more importantly, your waf needs to be generated, such that this module is actually available. This can be achieved for example, by creating waf with:

    ./waf-light --make-waf --prelude='' --tools=xcode
    

    For details see section 1.1.2 of the waf book, which explains how to build waf from source.