2 # Copyright (C) 2011 Igalia S.L.
3 # Copyright (C) 2012 Intel Corporation
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 import multiprocessing
22 __efl_tools_directory = os.path.abspath(os.path.dirname(__file__))
23 sys.path = [__efl_tools_directory] + sys.path
26 build_policy = 'updated'
28 # FIXME: move shared parts into ../jhbuild folder.
30 __moduleset_file_uri = 'file://' + os.path.join(__efl_tools_directory, 'jhbuild.modules')
31 __extra_modulesets = os.environ.get("WEBKIT_EXTRA_MODULESETS", "").split(",")
32 moduleset = [ __moduleset_file_uri, ]
33 if __extra_modulesets != ['']:
34 moduleset.extend(__extra_modulesets)
36 __extra_modules = os.environ.get("WEBKIT_EXTRA_MODULES", "").split(",")
37 modules = [ 'webkitefl-testing-dependencies', ]
38 if __extra_modules != ['']:
39 modules.extend(__extra_modules)
41 if os.environ.has_key('WEBKITOUTPUTDIR'):
42 checkoutroot = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Source'))
43 prefix = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Root'))
45 checkoutroot = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Source'))
46 prefix = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Root'))
50 if 'MAKEFLAGS' not in os.environ:
51 os.environ['MAKEFLAGS'] = '-j%d' % multiprocessing.cpu_count()
53 # Use system libraries while building.
58 addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', _libdir, 'pkgconfig'))
59 addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
61 addpath('XDG_DATA_DIRS', '/usr/share')
62 addpath('XDG_CONFIG_DIRS', '/etc/xdg')
64 addpath('CMAKE_PREFIX_PATH', prefix)