Fix building of tests with GTK+3

This commit is contained in:
Christian Dywan 2012-07-01 21:25:24 +02:00
parent aa1ffbf1d0
commit 264582f557

View file

@ -33,8 +33,12 @@ for test in tests:
obj.includes = '.. ../midori ../panels' obj.includes = '.. ../midori ../panels'
obj.cflags = ['-DEXTENSION_PATH="' + os.path.abspath ('_build/default/extensions') + '"'] obj.cflags = ['-DEXTENSION_PATH="' + os.path.abspath ('_build/default/extensions') + '"']
obj.source = source obj.source = source
obj.vapi_dirs = '../midori' obj.vapi_dirs = '../midori ../katze'
obj.packages = 'glib-2.0 gio-2.0 gtk+-2.0 libsoup-2.4 webkit-1.0 midori' obj.packages = 'glib-2.0 gio-2.0 libsoup-2.4 katze midori'
if bld.env['HAVE_GTK3']:
obj.packages += ' gtk+-3.0 webkitgtk-3.0'
else:
obj.packages += ' gtk+-2.0 webkit-1.0'
obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML GRANITE' obj.uselib = 'UNIQUE LIBSOUP GIO GTK SQLITE WEBKIT LIBXML GRANITE'
obj.uselib_local = 'midori-core' obj.uselib_local = 'midori-core'
obj.unit_test = 1 obj.unit_test = 1