diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /js/src/devtools/automation/winbuildenv.sh | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'js/src/devtools/automation/winbuildenv.sh')
-rw-r--r-- | js/src/devtools/automation/winbuildenv.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/js/src/devtools/automation/winbuildenv.sh b/js/src/devtools/automation/winbuildenv.sh new file mode 100644 index 000000000..f9d862ac4 --- /dev/null +++ b/js/src/devtools/automation/winbuildenv.sh @@ -0,0 +1,36 @@ +# We will be sourcing mozconfig files, which end up calling mk_add_options with +# various settings. We only need the variable settings they create along the +# way. Print them out, to be sucked up when running this file. +mk_add_options() { + echo "$@" +} + +topsrcdir="$SOURCE" + +# Tooltool installs in parent of topsrcdir for spidermonkey builds. +# Resolve that path since the mozconfigs assume tooltool installs in +# topsrcdir. +VSPATH="$(cd ${topsrcdir}/.. && pwd)/vs2015u3" + +# When running on a developer machine, several variables will already +# have the right settings and we will need to keep them since the +# Windows mozconfigs overwrite them. +echo "export ORIGINAL_INCLUDE=$INCLUDE" +echo "export ORIGINAL_LIB=$LIB" +echo "export ORIGINAL_LIBPATH=$LIBPATH" + +if [ -n "$USE_64BIT" ]; then + . $topsrcdir/build/win64/mozconfig.vs-latest +else + . $topsrcdir/build/win32/mozconfig.vs-latest +fi + +# PATH also needs to point to mozmake.exe, which can come from either +# newer mozilla-build or tooltool. +if ! which mozmake 2>/dev/null; then + export PATH="$PATH:$SOURCE/.." + if ! which mozmake 2>/dev/null; then + TT_SERVER=${TT_SERVER:-https://api.pub.build.mozilla.org/tooltool/} + ( cd $SOURCE/..; ./scripts/scripts/tooltool/tooltool_wrapper.sh $SOURCE/browser/config/tooltool-manifests/${platform:-win32}/releng.manifest $TT_SERVER setup.sh c:/mozilla-build/python27/python.exe C:/mozilla-build/tooltool.py ) + fi +fi |