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