#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005 (ita)

def build(bld):
	obj = bld.create_obj('qt4', 'program')

	## the sources can be given manually
	## or found automatically in the directories specified
	#obj.source = 'window.cpp glwidget.cpp main.cpp textures.qrc'

	obj.find_sources_in_dirs('.')
	obj.uselib = 'QTCORE QTGUI QTOPENGL QTSVG'
	obj.target = 'window'
	obj.includes = 'test .'
	obj.defines="WAF=1" # add a define around foo.moc

	#obj.lang='fr es' <- find_sources_in_dirs sets this
	obj.langname='langs'
	#obj.update=1 # <- call waf --translate to update the translation files

	bld.add_subdirs('test')

