jhbuildrc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. import multiprocessing
  19. import sys
  20. __efl_tools_directory = os.path.abspath(os.path.dirname(__file__))
  21. sys.path = [__efl_tools_directory] + sys.path
  22. import common
  23. build_policy = 'updated'
  24. # FIXME: move shared parts into ../jhbuild folder.
  25. __moduleset_file_uri = 'file://' + os.path.join(__efl_tools_directory, 'jhbuild.modules')
  26. __extra_modulesets = os.environ.get("WEBKIT_EXTRA_MODULESETS", "").split(",")
  27. moduleset = [ __moduleset_file_uri, ]
  28. if __extra_modulesets != ['']:
  29. moduleset.extend(__extra_modulesets)
  30. __extra_modules = os.environ.get("WEBKIT_EXTRA_MODULES", "").split(",")
  31. modules = [ 'webkitefl-testing-dependencies', ]
  32. if __extra_modules != ['']:
  33. modules.extend(__extra_modules)
  34. if os.environ.has_key('WEBKITOUTPUTDIR'):
  35. checkoutroot = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Source'))
  36. prefix = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Root'))
  37. else:
  38. checkoutroot = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Source'))
  39. prefix = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Root'))
  40. nonotify = True
  41. notrayicon = True
  42. if 'NUMBER_OF_PROCESSORS' in os.environ:
  43. jobs = os.environ['NUMBER_OF_PROCESSORS']
  44. # Use system libraries while building.
  45. if use_lib64:
  46. _libdir = 'lib64'
  47. else:
  48. _libdir = 'lib'
  49. addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', _libdir, 'pkgconfig'))
  50. addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
  51. addpath('XDG_DATA_DIRS', '/usr/share')
  52. addpath('XDG_CONFIG_DIRS', '/etc/xdg')
  53. addpath('CMAKE_PREFIX_PATH', prefix)
  54. # jhbuild installs libraries into lib64/ by default when building on
  55. # 64-bit Linux installations, while CMake does not look for libraries
  56. # in lib64/ if /etc/debian_version exists. For now we just pass the
  57. # lib64/ directory to the CMAKE_LIBRARY_PATH environment variable to
  58. # make sure the libraries installed by jhbuild are found by CMake on
  59. # Debian-based systems as well.
  60. if use_lib64:
  61. addpath('CMAKE_LIBRARY_PATH', os.path.join(prefix, _libdir))
  62. partial_build = False
  63. # Avoid runtime conflicts with GStreamer system-wide plugins. We want
  64. # to use only the plugins we build in JHBuild.
  65. os.environ['GST_PLUGIN_SYSTEM_PATH'] = ''