jhbuildrc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env python
  2. # Copyright (C) 2011 Igalia S.L.
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation; either
  7. # version 2 of the License, or (at your option) any later version.
  8. #
  9. # This library is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public
  15. # License along with this library; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. import multiprocessing
  18. import sys
  19. __gtk_tools_directory = os.path.abspath(os.path.dirname(__file__))
  20. sys.path = [__gtk_tools_directory] + sys.path
  21. import common
  22. build_policy = 'updated'
  23. __moduleset_file_uri = 'file://' + os.path.join(__gtk_tools_directory, 'jhbuild.modules')
  24. __extra_modulesets = os.environ.get("WEBKIT_EXTRA_MODULESETS", "").split(",")
  25. moduleset = [ __moduleset_file_uri, ]
  26. if __extra_modulesets != ['']:
  27. moduleset.extend(__extra_modulesets)
  28. __extra_modules = os.environ.get("WEBKIT_EXTRA_MODULES", "").split(",")
  29. modules = [ 'webkitgtk-testing-dependencies', ]
  30. if __extra_modules != ['']:
  31. modules.extend(__extra_modules)
  32. if os.environ.has_key('WEBKITOUTPUTDIR'):
  33. checkoutroot = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Source'))
  34. prefix = os.path.abspath(os.path.join(os.environ['WEBKITOUTPUTDIR'], 'Dependencies', 'Root'))
  35. else:
  36. checkoutroot = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Source'))
  37. prefix = os.path.abspath(common.top_level_path('WebKitBuild','Dependencies', 'Root'))
  38. nonotify = True
  39. notrayicon = True
  40. if 'NUMBER_OF_PROCESSORS' in os.environ:
  41. jobs = os.environ['NUMBER_OF_PROCESSORS']
  42. # GTK+ 3.0.12 misses the -lm flag when linking the tests.
  43. module_makeargs['gtk+'] = 'LDFLAGS="-lm" ' + makeargs
  44. # Avoid runtime conflicts with GStreamer system-wide plugins. We want
  45. # to use only the plugins we build in JHBuild.
  46. os.environ['GST_PLUGIN_SYSTEM_PATH'] = ''
  47. # We often end up using the memory backend anyway, so explicitly choosing
  48. # it will prevent the warning message.
  49. os.environ['GSETTINGS_BACKEND'] = 'memory'
  50. # We always enable introspection so that we can sniff out problems with our
  51. # annotations sooner rather than later.
  52. autogenargs='--enable-introspection'