Advertisement
3v1n0

jhbuildrc

Nov 19th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.03 KB | None | 0 0
  1. # -*- mode: python -*-
  2. # -*- coding: utf-8 -*-
  3. import resource
  4. from random import randint
  5.  
  6. resource.setrlimit(
  7.     resource.RLIMIT_CORE,
  8.     (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
  9.  
  10. # if you have a GNOME git account, uncomment this line
  11. repos['git.gnome.org'] = 'ssh://marcotrevi@git.gnome.org/git/'
  12. repos['gitlab.gnome.org'] = 'ssh://git@gitlab.gnome.org'
  13.  
  14. # what module set should be used.  The default can be found in
  15. # jhbuild/defaults.jhbuildrc, but can be any file in the modulesets directory
  16. # or a URL of a module set file on a web server.
  17. # moduleset = 'gnome-apps-3.12'
  18. #
  19. # A list of the modules to build.  Defaults to the GNOME core and tested apps.
  20. # modules = [ 'meta-gnome-core', 'meta-gnome-apps-tested' ]
  21. modules = [ 'meta-gnome-core-shell', 'The X Window System' ]
  22.  
  23. skip = ['WebKit', 'evolution']
  24.  
  25. # what directory should the source be checked out to?
  26. checkoutroot = '/media/M2/GNOME'
  27.  
  28. # the prefix to configure/install modules to (must have write access)
  29. prefix = '/opt/dev/GNOME'
  30.  
  31. # Extra modules
  32. moduleset = [moduleset,
  33.              'https://cgit.freedesktop.org/xorg/util/modular/plain/xorg.modules',
  34.              checkoutroot + '/extra-jhbuild.modules']
  35.  
  36. xdg_cache_home = os.path.join(checkoutroot, '_CACHE')
  37. tarballdir = os.path.join(xdg_cache_home, 'downloads')
  38.  
  39. # Set to None to perform builds within the source trees.
  40. buildroot = os.path.join(checkoutroot, '_BUILD')
  41.  
  42. # reduce what we build as much as possible
  43. ignore_suggests = True
  44.  
  45. # Only rebuild modules that have changed
  46. build_policy = 'updated'
  47.  
  48. # Custom env
  49. os.environ['JHBUILD_CHECKOUT_FOLDER'] = checkoutroot
  50. os.environ['JHBUILD_BUILD_FOLDER'] = buildroot
  51. os.environ['MALLOC_CHECK_'] = '3'
  52. os.environ['MALLOC_PERTURB_'] = str(randint(0x01, 0xff))
  53.  
  54. # custom CFLAGS / environment pieces for the build
  55. # os.environ['CFLAGS'] = '-Wall -g -O0'
  56.  
  57. # Look in /usr/share for icons, D-BUS service files, etc
  58. addpath('XDG_DATA_DIRS', '/usr/share')
  59. # Look in /etc/xdg for system-global autostart files
  60. addpath('XDG_CONFIG_DIRS', '/etc/xdg')
  61. # Ensure that xcursors are available
  62. addpath('XCURSOR_PATH', '/usr/share/icons')
  63. # Load system GI files
  64. addpath('GI_TYPELIB_PATH', '/usr/lib/girepository-1.0')
  65. addpath('GI_TYPELIB_PATH', '/usr/lib/x86_64-linux-gnu/girepository-1.0')
  66.  
  67. # extra arguments to pass to all autogen.sh scripts
  68. # to speed up builds of GNOME, try '--disable-static --disable-gtk-doc'
  69. autogenargs = '--disable-static --disable-gtk-doc'
  70. mesonargs = '--buildtype=debugoptimized -Dgtk_doc=false -Ddisable_gtkdoc=true -Denable-man=false -Denable-docs=false'
  71.  
  72. # Module custom settings
  73. module_autogenargs['gdm'] = '--with-run-dir=/opt/dev/gdm/run --with-log-dir=/opt/dev/gdm/log'
  74. module_autogenargs['mutter'] = '--enable-debug' #--enable-remote-desktop
  75. module_autogenargs['geoclue'] = '--disable-nmea-source'
  76. module_autogenargs['libinput'] = '--disable-documentation --enable-tests=no'
  77. module_autogenargs['xserver'] = '--disable-docs --disable-devel-docs --enable-xwayland --enable-kdrive --enable-kdrive-kbd --enable-kdrive-mouse --enable-glamor --enable-xephyr --disable-xvfb --disable-xnest --disable-xquartz --disable-xwin'
  78.  
  79. # module_autogenargs['gjs'] = '--enable-asan --enable-ubsan'
  80.  
  81. module_mesonargs['nautilus'] = '-Dtracker=false'
  82. module_mesonargs['gnome-control-center'] = '-Dcheese=false'
  83.  
  84. # Custom branches
  85. # branches['gnome-settings-daemon'] = ('https://github.com/jadahl/gnome-settings-daemon/', 'wip/monitor-config')
  86. # or  https://github.com/jadahl/gnome-control-center/commits/wip/monitor-config
  87. # branches['gnome-control-center'] = (None, 'wip/rtcm/new-display-config')
  88.  
  89. #branches['mutter'] = ('https://github.com/jadahl/mutter', 'wip/resource-scale')
  90. # branches['pipewire'] = ('https://github.com/PipeWire/pipewire.git', 'master')
  91. # branches['gnome-shell'] = ('https://github.com/jadahl/gnome-shell', 'wip/resource-scale')
  92.  
  93. # branches['gtksourceview'] = (None, 'gnome-3-24')
  94. # branches['libsoup'] = (None, 'gnome-3-28')
  95.  
  96. # A string listing additional arguments to be passed to make.
  97. # Set makeargs to 'V=1' for verbose build output.
  98. makeargs = '-j10'
  99.  
  100. # git clone --depth=1
  101. # shallow_clone = True
  102.  
  103. #installprog=scp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement