~midori/midori/trunk

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Tarmac
  • Author(s): Christian Dywan
  • Date: 2013-06-19 21:00:46 UTC
  • mfrom: (6216.1.10 midori.butcher)
  • Revision ID: tarmac-20130619210046-i3yv8cnkyjuafubb
Bump WebKit requirement to 1.8.3 and drop support for earlier versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
            conf.define ('HAVE_WEBKIT2', 1)
254
254
            conf.env.append_value ('VALAFLAGS', '-D HAVE_WEBKIT2')
255
255
        else:
256
 
            check_pkg ('webkitgtk-3.0', '1.1.17', var='WEBKIT', mandatory=False)
 
256
            check_pkg ('webkitgtk-3.0', '1.8.3', var='WEBKIT', mandatory=False)
257
257
        if not conf.env['HAVE_GTK'] or not conf.env['HAVE_WEBKIT']:
258
258
            Utils.pprint ('RED', 'GTK+3 was not found.\n' \
259
259
                'Pass --disable-gtk3 to build without GTK+3.')
260
260
            sys.exit (1)
261
 
        if check_version (conf.env['WEBKIT_VERSION'], 1, 5, 1):
262
 
            check_pkg ('javascriptcoregtk-3.0', '1.5.1', args=args)
 
261
        check_pkg ('javascriptcoregtk-3.0', '1.8.3', args=args)
263
262
        conf.env.append_value ('VALAFLAGS', '-D HAVE_GTK3')
264
263
        conf.env.append_value ('VALAFLAGS', '-D HAVE_OFFSCREEN')
265
264
        conf.env.append_value ('VALAFLAGS', '-D HAVE_DOM')
266
265
    else:
267
266
        check_pkg ('gtk+-2.0', '2.16.0', var='GTK')
268
 
        check_pkg ('webkit-1.0', '1.1.17', args=args)
 
267
        check_pkg ('webkit-1.0', '1.8.3', args=args)
269
268
        conf.define ('GCR_VERSION', 'No')
270
 
        if check_version (conf.env['WEBKIT_VERSION'], 1, 5, 1):
271
 
            check_pkg ('javascriptcoregtk-1.0', '1.5.1', args=args)
 
269
        check_pkg ('javascriptcoregtk-1.0', '1.8.3', args=args)
272
270
        if check_version (conf.env['GTK_VERSION'], 2, 20, 0):
273
271
            conf.env.append_value ('VALAFLAGS', '-D HAVE_OFFSCREEN')
274
272
    conf.env['HAVE_GTK3'] = have_gtk3