wscript 652 B

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