[go: up one dir, main page]

Menu

[dc7c97]: / wscript  Maximize  Restore  History

Download this file

41 lines (30 with data), 1.2 kB

#!/usr/bin/env python

VERSION = "1.9.0"
VERSION_MAJOR_MINOR =  ".".join(VERSION.split(".")[0:2])
APPNAME = "mazen"

srcdir = '.'
blddir = 'build'

def set_options(opt):
	opt.tool_options('compiler_cxx')
	opt.tool_options('gnu_dirs')

def configure(conf):
	conf.check_tool('compiler_cxx gnu_dirs')

	conf.check_cfg(package='gtkmm-2.4', uselib_store='GTKMM',
		    atleast_version='2.18.0', mandatory=True, args='--cflags --libs')
	conf.check_cfg(package='librsvg-2.0', uselib_store='RSVG',
		    atleast_version='2.26.0', mandatory=True, args='--cflags --libs')

	conf.define('PACKAGE', APPNAME)
	conf.define('PACKAGE_NAME', APPNAME)
	conf.define('PACKAGE_STRING', APPNAME + '-' + VERSION)
	conf.define('PACKAGE_VERSION', APPNAME + '-' + VERSION)
	conf.define('VERSION', VERSION)
	conf.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR)

	prefix = conf.env['PREFIX']
	conf.define('DATA_DIR', prefix + '/share/' + APPNAME)
	conf.define('DESKTOP_DIR', prefix + '/share/applications/')

	conf.write_config_header ('config.h')

def build(bld):
	bld.add_subdirs('src')
	bld.install_files('${DATA_DIR}', 'artwork/*')
	bld.install_files('${DATA_DIR}', 'mazen.ui')	
	bld.install_files('${DESKTOP_DIR}', 'mazen.desktop')