Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2053a0d9eaaf755b990f80ce4df504a7 > files > 296

waf-1.5.9-1mdv2010.0.noarch.rpm

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

def build(bld):

	# the functional syntax is equivalent to the object-oriented one
	obj = bld.new_task_gen(
		features=['qt4', 'cprogram', 'cxx'],
		uselib = 'QTCORE QTGUI QTOPENGL QTSVG',
		target = 'window',
		includes = 'test .',
		defines="WAF=1", # add a define around foo.moc
	)

	## 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.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')