waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript (652B)


      1 #! /usr/bin/env python
      2 # encoding: utf-8
      3 # Thomas Nagy, 2005, 2011 (ita)
      4 
      5 """
      6 Including the moc files *is* the best practice (KDE), not doing it is easy,
      7 but makes the compilations about 30-40% slower on average.
      8 
      9 This is the slow version that creates _moc.cpp files (a bad idea!)
     10 """
     11 
     12 VERSION='0.0.2'
     13 APPNAME='qt4_test2'
     14 
     15 top = '.'
     16 out = 'build'
     17 
     18 def options(opt):
     19 	opt.load('compiler_cxx qt4')
     20 
     21 def configure(conf):
     22 	conf.load('compiler_cxx qt4')
     23 	conf.load('slow_qt4')
     24 
     25 def build(bld):
     26 	bld(
     27 		features = 'qt4 cxx cxxprogram',
     28 		uselib   = 'QTCORE QTGUI QTOPENGL QTSVG',
     29 		source   = 'main.cpp foo.cpp',
     30 		includes = '.',
     31 		target   = 'window',
     32 	)
     33