Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (40 sloc) 1.8 KB
#!/usr/bin/env python
import os, os.path
VERSION = "0.1.0"
VERSION_MAJOR_MINOR = ".".join(VERSION.split(".")[0:2])
APPNAME = "pomeranian"
srcdir = '.'
blddir = '_build_'
def options(conf):
conf.load('compiler_c')
conf.load('vala')
conf.load('gnu_dirs')
def configure(conf):
conf.load('compiler_c')
conf.load('vala')
conf.load('gnu_dirs')
conf.check_cfg(package='glib-2.0', uselib_store='GLIB',
atleast_version='2.32.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='gobject-2.0', uselib_store='GOBJECT',
atleast_version='2.14.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='gtk+-3.0', uselib_store='GTK',
atleast_version='3.4.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='gee-1.0', uselib_store='GEE',
atleast_version='0.6.0', mandatory=True, args='--cflags --libs')
conf.check_cfg(package='libcanberra-gtk3', uselib_store='CANBERRA',
mandatory=True, args='--cflags --libs')
conf.define('PACKAGE', APPNAME)
conf.define('GETTEXT_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)
conf.define('DATA_DIR', os.path.join(conf.env['DATADIR'], APPNAME))
conf.define('LOCALE_DIR', conf.env['LOCALEDIR'])
conf.define('PIXMAPS_DIR', os.path.join(conf.env['DATADIR'], APPNAME, 'pixmaps'))
conf.define('ICONS_DIR', os.path.join(conf.env['DATADIR'], 'icons'))
conf.define('SOUNDS_DIR', os.path.join(conf.env['DATADIR'], APPNAME, 'sounds'))
conf.write_config_header("config.h")
def build(bld):
bld.recurse('src')
Something went wrong with that request. Please try again.