Fix issue that timeline goes back to 00:00 during pressing FF button repeatly
[framework/web/webkit-efl.git] / Tools / efl / jhbuildrc
1 #!/usr/bin/env python
2 # Copyright (C) 2011 Igalia S.L.
3 # Copyright (C) 2012 Intel Corporation
4 #
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.
9 #
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.
14 #
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
18
19 import multiprocessing
20 import sys
21
22 __efl_tools_directory = os.path.abspath(os.path.dirname(__file__))
23 sys.path = [__efl_tools_directory] + sys.path
24 import common
25
26 build_policy = 'updated'
27
28 # FIXME: move shared parts into ../jhbuild folder.
29
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)
35
36 __extra_modules = os.environ.get("WEBKIT_EXTRA_MODULES", "").split(",")
37 modules = [ 'webkitefl-testing-dependencies', ]
38 if __extra_modules != ['']:
39     modules.extend(__extra_modules)
40
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'))
44 else:
45     checkoutroot = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Source'))
46     prefix = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Root'))
47
48 nonotify = True
49 notrayicon = True
50 if 'MAKEFLAGS' not in os.environ:
51     os.environ['MAKEFLAGS'] = '-j%d' % multiprocessing.cpu_count()
52
53 # Use system libraries while building.
54 if use_lib64:
55     _libdir = 'lib64'
56 else:
57     _libdir = 'lib'
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'))
60
61 addpath('XDG_DATA_DIRS', '/usr/share')
62 addpath('XDG_CONFIG_DIRS', '/etc/xdg')
63
64 # Avoid overlapping search path CMAKE warning on 64bit systems.
65 if (use_lib64):
66     addpath('CMAKE_PREFIX_PATH', os.path.join(os.sep, prefix, 'lib64'))
67 else:
68     addpath('CMAKE_PREFIX_PATH', prefix)
69
70 partial_build = False