Sophie

Sophie

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

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

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

# A c program that links using the GLIB library, defined in the configuration
# the only change is that gnome is replaced by cc or cpp (as usual)
obj = bld.new_task_gen(
	features = 'cc cprogram',
	includes = '# .', # top-level and current directory
	uselib = 'GTK GNOME GNOMEUI DBUSGLIB',
	target = 'gnome-hello')

obj.find_sources_in_dirs('.') # take the sources in the current folder

obj.add_dbus_file('manager.xml', 'test_prefix', 'glib-server')
obj.add_marshal_file('marshal.list', 'test_prefix')

# it is also possible to add tons if libraries
#obj.uselib='GTK GNOME GNOMEUI GLIB BONOBO BONOBOUI PRINT PRINTUI GLADE CANVAS XML GDK'