build: Fix typo in Makefile.am.release
[profile/ivi/clutter.git] / build / jhbuildrc-clutter
1 # -*- mode: python -*-
2 #
3 # jhbuildrc for building Clutter. Customizations shuld be done in
4 # ~/.jhbuildrc-custom
5 #
6 # Copyright (C) Intel Corp.
7 #
8 # Based on the gnome-shell variant
9 #
10 # Copyright (C) 2008 Red Hat, Inc.
11 #
12 # Some ideas and a bit of code taken from gtk-osx-build
13 #
14 # Copyright (C) 2006, 2007, 2008 Imendio AB
15 #
16 # Use .jhbuildrc-custom to override the moduleset, modules to build,
17 # the source checkout location, installation prefix, or svn usernames
18 # etc.
19 #
20 # JHBUILDRC_CLUTTER - Do not edit this line (or anything else)
21
22 # Only rebuild modules that have changed
23 build_policy = 'updated'
24
25 moduleset = 'http://git.clutter-project.org/clutter/plain/build/clutter.modules'
26
27 modules = [ 'meta-clutter' ]
28
29 # what directory should the source be checked out to?
30 checkoutroot = os.path.expanduser('~/clutter/source')
31
32 # the prefix to configure/install modules to (must have write access)
33 prefix = os.path.expanduser('~/clutter/install')
34
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'))
38
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'))
43
44 #
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.
49 #
50 import re
51 import subprocess
52 _pkgconfig = subprocess.Popen(['pkg-config', '--variable=sdkdir', 'mozilla-js'],
53                               stdout=subprocess.PIPE)
54 _sdkdir = _pkgconfig.communicate()[0].strip()
55 _pkgconfig.wait()
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)
60
61 # Rebuild faster
62 os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check')
63
64 # Use the standard system bus
65 os.environ['DBUS_SYSTEM_BUS_ADDRESS'] = 'unix:path=/var/run/dbus/system_bus_socket'
66
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.
70 #
71 _userrc = os.path.join(os.environ['HOME'], '.jhbuildrc-custom')
72 if os.path.exists(_userrc):
73     execfile(_userrc)