# -*- mode: python -*- import glob import re # modules to build (deps are also built) moduleset = 'gtk28' modules = ['gtk+'] baseroot = os.path.join(os.environ['HOME'], 'jhbuild') # where the sources are checked out to checkoutroot = os.path.join(baseroot, 'sources') # the root build directory for packages that support non-srcdir builds buildroot = os.path.join(baseroot, 'build') # the prefix to install things to (user must have write access) prefix = os.path.join(baseroot, 'install') # arguments to pass to autogen script autogenargs = '--disable-static --disable-gtk-doc' # module-specific autogen arguments # GDB doesn't support --disable-static module_autogenargs['gdb'] = '' # build the GTK peers and the Cairo Graphics2D backend module_autogenargs['gcj'] = '--enable-languages=java --enable-java-awt=gtk --enable-gtk-cairo' # arguments to pass to make makeargs = 'CFLAGS="-g -O0" CPPFLAGS="-g -O0" CXXFLAGS="-g -O0" GCJFLAGS="-g -O0"' # module-specific make arguments # Python doesn't support overriding CFLAGS module_makeargs['python'] = '' module_makeargs['gcj'] = 'CFLAGS="-g -O0" CFLAGS_FOR_TARGET="-g -O0" CPPFLAGS="-g -O0" CXXFLAGS="-g -O0" GCJFLAGS="-g -O0"' # install-check only installs headers if they've changed os.environ['INSTALL'] = os.path.join(os.environ['HOME'], 'bin', 'install-check') # build CLASSPATH for Java-GNOME #for jar in glob.glob(os.path.join(prefix, 'share', 'java', '*.jar')): # if not re.search("-", os.path.basename(jar)): # prependpath('CLASSPATH', jar) # set the build directory pattern for those packages that support # non-srcdir builds -- foo will be built in a directory called # foo-bld. builddir_pattern = '%s-bld' # points LD_LIBRARY_PATH at the build directory, to eliminate the need # to re-install after every rebuild. If you're not working on x86 # linux you'll need to modify the platform string. #prependpath('LD_LIBRARY_PATH', os.path.join(buildroot, 'gcj-bld', 'i686-pc-linux-gnu', 'libjava', '.libs')) branches['cairo'] = 'SNAPSHOT_0_5_0'