3 # jhbuildrc for building Clutter. Customizations shuld be done in
6 # Copyright (C) Intel Corp.
8 # Based on the gnome-shell variant
10 # Copyright (C) 2008 Red Hat, Inc.
12 # Some ideas and a bit of code taken from gtk-osx-build
14 # Copyright (C) 2006, 2007, 2008 Imendio AB
16 # Use .jhbuildrc-custom to override the moduleset, modules to build,
17 # the source checkout location, installation prefix, or svn usernames
20 # JHBUILDRC_CLUTTER - Do not edit this line (or anything else)
22 # Only rebuild modules that have changed
23 build_policy = 'updated'
25 moduleset = 'http://git.clutter-project.org/clutter/plain/build/clutter.modules'
27 modules = [ 'meta-clutter' ]
29 # what directory should the source be checked out to?
30 checkoutroot = os.path.expanduser('~/clutter/source')
32 # the prefix to configure/install modules to (must have write access)
33 prefix = os.path.expanduser('~/clutter/install')
35 # Use system libraries for the builds
36 #addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib', 'pkgconfig'))
37 #addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
39 # Look in /usr/share for icons, D-BUS service files, etc
40 addpath('XDG_DATA_DIRS', os.path.join(os.sep, 'usr', 'share'))
41 # Look in /etc/xdg for system-global autostart files
42 addpath('XDG_CONFIG_DIRS', os.path.join(os.sep, 'etc', 'xdg'))
45 # For Ubuntu Intrepid, libmozjs lives in /usr/lib/xulrunner-<version>
46 # However, that path isn't in ld.so.conf, meaning that it's basically
47 # impossible to use the xulrunner .pc files and libraries. Work around
48 # this by deriving the path and adding it to LD_LIBRARY_PATH ourself.
52 _pkgconfig = subprocess.Popen(['pkg-config', '--variable=sdkdir', 'mozilla-js'],
53 stdout=subprocess.PIPE)
54 _sdkdir = _pkgconfig.communicate()[0].strip()
56 if _pkgconfig.returncode == 0:
57 _libdir = re.sub('-(sdk|devel)', '', _sdkdir)
58 if os.path.exists(_libdir + '/libmozjs.so'):
59 addpath('LD_LIBRARY_PATH', _libdir)
62 os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check')
64 # Use the standard system bus
65 os.environ['DBUS_SYSTEM_BUS_ADDRESS'] = 'unix:path=/var/run/dbus/system_bus_socket'
67 # Import optional user RC for further customization. You can override
68 # the prefix or default build setup for example, or CFLAGS or
69 # module_autogenargs, etc.
71 _userrc = os.path.join(os.environ['HOME'], '.jhbuildrc-custom')
72 if os.path.exists(_userrc):