desktop-setup.sh 589 B

12345678910111213141516171819202122232425
  1. #!/bin/bash -ex
  2. test $MOZCONFIG # mozconfig is required...
  3. test -d $1 # workspace must exist at this point...
  4. WORKSPACE=$( cd "$1" && pwd )
  5. . setup-ccache.sh
  6. # Gecko source:
  7. export GECKO_DIR=$WORKSPACE/gecko
  8. # Gaia source:
  9. export GAIA_DIR=$WORKSPACE/gaia
  10. # Mozbuild config:
  11. export MOZBUILD_STATE_PATH=$WORKSPACE/mozbuild/
  12. # Create .mozbuild so mach doesn't complain about this
  13. mkdir -p $MOZBUILD_STATE_PATH
  14. ### Install package dependencies
  15. install-packages.sh ${TOOLTOOL_DIR:-$GECKO_DIR}
  16. # Ensure object-folder exists
  17. export MOZ_OBJDIR=$WORKSPACE/object-folder/
  18. mkdir -p $MOZ_OBJDIR