Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0b739d2460
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (19 sloc) 0.941 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# -*- python -*-
# encoding: utf-8

def configure(conf):
    conf.env.append_value('MODULES_AVAILABLE', 'braseroburn')
    if 'braseroburn' in conf.env['ENABLE_MODULES'] or 'all' in conf.env['ENABLE_MODULES']:
        if conf.pkg_check_modules('BRASEROBURN',
                                  'libbrasero-burn >= 2.29 pygobject-2.0 pygtk-2.0',
                                  mandatory=False):
            conf.env.append_value('MODULES_TO_BUILD', 'braseroburn')


def build(bld):
    if 'braseroburn' in bld.env['MODULES_TO_BUILD']:
        bld.codegen('brasero_burn', prefix='brasero_burn')
        pyext = bld.create_pyext()
        pyext.source = 'brasero_burn_module.c brasero_burn.c brasero-types.c'
        pyext.includes = '.'
        pyext.target = 'braseroburn'
        pyext.uselib = 'BRASEROBURN'
        pyext.install_path = '${PYTHONDIR}/gtk-2.0'

        bld.install_files('${DATADIR}/pygtk/2.0/defs', 'brasero_burn.defs')
Something went wrong with that request. Please try again.