# -*- mode: python -*-

# edit this file to match your settings, backup your ~/.jhbuildrc, and then
# copy this there

# what module set should be used.  The default at the moment is
# 'gnome-suites-core-3.0', but it can be any of the files in the
# modulesets directory, or even the URL of a module set file on
# a web server.
use_local_modulesets = True
moduleset = 'gnome-apps-3.5.90'

# A list of the modules to build.  Defaults to the Gnome Desktop and
# developer platform.
modules = [ 'meta-gnome-core', 'meta-gnome-apps-tested' ]

tarballdir = os.path.join(os.environ['HOME'], 'releases', 'checkoutroot')

# what directory should the source be checked out to?
checkoutroot = os.path.join(os.environ['HOME'], 'releases', moduleset)

# the prefix to configure/install modules to (must have write access)
prefix = os.path.join(checkoutroot, 'install')

# extra arguments to pass to all autogen.sh scripts
# to speed up builds of gnome2, try '--disable-static --disable-gtk-doc'
autogenargs='--disable-static --disable-gtk-doc'

# An alternative location to look for (or download to) all downloaded tarballs
tarballdir = os.path.join(checkoutroot, 'pkgs')

# these are hard to build or interfere with system packages
skip = [ 'gudev', 'gnome-disk-utility']

# API additions for 3.5.4
module_autogenargs['PackageKit'] = autogenargs + ' --disable-systemd'

#### Remove before publish

makeargs='V=1'

# Use system libraries for the builds
if use_lib64:
    _libdir = 'lib'
    _libdirgnu ='x86_64-linux-gnu'
else:
    _libdir = 'lib32'
    _libdirgnu ='i386-linux-gnu'

# A list of paths to search for .pc files from system install
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', _libdir, 'pkgconfig'))
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib', _libdirgnu, 'pkgconfig'))
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
