зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1458385: Package mar and mbsdiff as a toolchain; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D24229 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b39a761dde
Коммит
0cd3337d90
|
@ -56,3 +56,10 @@ path:.cron.yml
|
|||
|
||||
# for the wrench-deps toolchain task
|
||||
path:gfx/wr/Cargo.lock
|
||||
|
||||
# for the mar-tools toolchain task
|
||||
path:mfbt/
|
||||
path:modules/libmar/
|
||||
path:other-licenses/bsdiff/
|
||||
path:other-licenses/nsis/Contrib/CityHash/cityhash/
|
||||
path:toolkit/mozapps/update/updater
|
||||
|
|
|
@ -155,7 +155,7 @@ UNIFIED_SOURCES += [
|
|||
'Utf8.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] not in ('memory', 'tools/crashreporter'):
|
||||
if CONFIG['MOZ_BUILD_APP'] not in ('memory', 'tools/crashreporter', 'tools/update-packaging'):
|
||||
# RecordReplay.cpp uses files from js/
|
||||
UNIFIED_SOURCES += [
|
||||
'RecordReplay.cpp',
|
||||
|
|
|
@ -18,4 +18,5 @@ if CONFIG['HOST_OS_ARCH'] == 'WINNT':
|
|||
|
||||
LOCAL_INCLUDES += [
|
||||
'/toolkit/mozapps/update/updater',
|
||||
'/toolkit/mozapps/update/updater/bspatch',
|
||||
]
|
||||
|
|
|
@ -70,6 +70,23 @@ linux64-libdmg:
|
|||
script: build-libdmg-hfsplus.sh
|
||||
toolchain-artifact: public/build/dmg.tar.xz
|
||||
|
||||
linux64-mar-tools:
|
||||
description: "mar-tools toolchain build"
|
||||
treeherder:
|
||||
symbol: TL(mar-tools)
|
||||
toolchains:
|
||||
- linux64-clang-7
|
||||
- linux64-binutils
|
||||
run:
|
||||
script: build-mar-tools.sh
|
||||
sparse-profile: null
|
||||
toolchain-artifact: public/build/mar-tools.tar.xz
|
||||
resources:
|
||||
- modules/libmar/
|
||||
- other-licenses/nsis/Contrib/CityHash/cityhash/
|
||||
- other-licenses/bsdiff/
|
||||
- toolkit/mozapps/update/updater/bspatch/
|
||||
|
||||
linux64-tup:
|
||||
description: "tup toolchain build"
|
||||
treeherder:
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
set -x -e -v
|
||||
|
||||
# This script is for building mar and mbsdiff
|
||||
|
||||
WORKSPACE=$HOME/workspace
|
||||
UPLOAD_DIR=$HOME/artifacts
|
||||
COMPRESS_EXT=xz
|
||||
|
||||
cd $WORKSPACE/build/src
|
||||
|
||||
. taskcluster/scripts/misc/tooltool-download.sh
|
||||
|
||||
export MOZ_OBJDIR=obj-mar
|
||||
|
||||
echo ac_add_options --enable-project=tools/update-packaging > .mozconfig
|
||||
|
||||
TOOLCHAINS="binutils clang"
|
||||
|
||||
for t in $TOOLCHAINS; do
|
||||
PATH="$WORKSPACE/build/src/$t/bin:$PATH"
|
||||
done
|
||||
|
||||
./mach build -v
|
||||
|
||||
mkdir mar-tools
|
||||
cp $MOZ_OBJDIR/dist/host/bin/{mar,mbsdiff} mar-tools/
|
||||
|
||||
tar -acf mar-tools.tar.$COMPRESS_EXT mar-tools/
|
||||
mkdir -p $UPLOAD_DIR
|
||||
cp mar-tools.tar.$COMPRESS_EXT $UPLOAD_DIR
|
|
@ -88,7 +88,7 @@ PACKAGE_FORMATS = {
|
|||
],
|
||||
'inputs': {
|
||||
'input': 'target{archive_format}',
|
||||
'mar': 'mar{executable_extension}',
|
||||
'mar': 'mar-tools/mar{executable_extension}',
|
||||
},
|
||||
'output': "target.complete.mar",
|
||||
},
|
||||
|
@ -392,9 +392,7 @@ def _generate_download_config(task, build_platform, build_task, signing_task,
|
|||
'extract': False,
|
||||
},
|
||||
],
|
||||
build_task: [
|
||||
'host/bin/mar',
|
||||
],
|
||||
"toolchain": ["linux64-mar-tools"],
|
||||
})
|
||||
elif build_platform.startswith('win'):
|
||||
fetch.update({
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIRS += [
|
||||
'/modules/libmar/src',
|
||||
'/modules/libmar/tool',
|
||||
'/other-licenses/bsdiff',
|
||||
]
|
Загрузка…
Ссылка в новой задаче