#! /usr/bin/env python

def options(opt):
    opt.load("gse", tooldir="..")

def configure(cnf):
    cnf.load("glib2")
    cnf.load("gse", tooldir="..")
    from re import search
    cnf.env["SHELL_VERSION"] = search('[\d.]+$',
            cnf.cmd_and_log(('gnome-shell', '--version'))).group(0)

def build(bld):
    bld(features="subst", source="metadata.json.in", target="metadata.json")
    bld(features="gse")
