mozconfig.gtk 1.4 KB

1234567891011121314151617181920212223242526272829
  1. # To do try builds with Gtk+2, uncomment the following line, and remove
  2. # everything after that.
  3. #ac_add_options --enable-default-toolkit=cairo-gtk2
  4. TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
  5. # $TOOLTOOL_DIR/gtk3 comes from tooltool, and must be included in the tooltool manifest.
  6. if [ -z "$PKG_CONFIG_LIBDIR" ]; then
  7. echo PKG_CONFIG_LIBDIR must be set >&2
  8. exit 1
  9. fi
  10. export PKG_CONFIG_SYSROOT_DIR="$TOOLTOOL_DIR/gtk3"
  11. export PKG_CONFIG_PATH="$TOOLTOOL_DIR/gtk3/usr/local/lib/pkgconfig"
  12. PKG_CONFIG="$TOOLTOOL_DIR/gtk3/usr/local/bin/pkg-config"
  13. export PATH="$TOOLTOOL_DIR/gtk3/usr/local/bin:${PATH}"
  14. # Ensure cairo, gdk-pixbuf, etc. are not taken from the system installed packages.
  15. LDFLAGS="-L$TOOLTOOL_DIR/gtk3/usr/local/lib ${LDFLAGS}"
  16. ac_add_options --enable-default-toolkit=cairo-gtk3
  17. # Set things up to use Gtk+3 from the tooltool package
  18. mk_add_options "export FONTCONFIG_PATH=$TOOLTOOL_DIR/gtk3/usr/local/etc/fonts"
  19. mk_add_options "export PANGO_SYSCONFDIR=$TOOLTOOL_DIR/gtk3/usr/local/etc"
  20. mk_add_options "export PANGO_LIBDIR=$TOOLTOOL_DIR/gtk3/usr/local/lib"
  21. mk_add_options "export GDK_PIXBUF_MODULE_FILE=$TOOLTOOL_DIR/gtk3/usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
  22. mk_add_options "export GDK_PIXBUF_MODULEDIR=$TOOLTOOL_DIR/gtk3/usr/local/lib/gdk-pixbuf-2.0/2.10.0/loaders"
  23. LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/gtk3/usr/local/lib
  24. mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"