2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-28 21:10:33 +01:00
waf/playground/slow_qt/wscript
2011-09-10 11:13:51 +02:00

34 lines
652 B
Python

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005, 2011 (ita)
"""
Including the moc files *is* the best practice (KDE), not doing it is easy,
but makes the compilations about 30-40% slower on average.
This is the slow version that creates _moc.cpp files (a bad idea!)
"""
VERSION='0.0.2'
APPNAME='qt4_test2'
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_cxx qt4')
def configure(conf):
conf.load('compiler_cxx qt4')
conf.load('slow_qt4')
def build(bld):
bld(
features = 'qt4 cxx cxxprogram',
uselib = 'QTCORE QTGUI QTOPENGL QTSVG',
source = 'main.cpp foo.cpp',
includes = '.',
target = 'window',
)