Fri Feb 17 10:14:49 AM CET 2023

This commit is contained in:
Bert van der Weerd 2023-02-17 10:14:49 +01:00
parent 5f1dfb584c
commit 33336b6ac7
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0
2 changed files with 35 additions and 5 deletions

View file

@ -1,4 +1,4 @@
.PHONY : help fetch all clean build artifacts dir bootstrap winsdk setup-debian setup-fedora veryclean docker-build docker-run docker-clean docker-prune docker-shell buildsymbols upstream-update setup-arch bootstrap-arch bootstrap-arch-do-bootstrap build-arch build-arch-do-build extract-arch clean-arch buildsymbols-arch build-symbols-arch-do-buildsymbols package-arch package-arch-do-package patch-folder-arch winsdk-arch .PHONY : help fetch all clean build artifacts dir bootstrap winsdk setup-debian setup-fedora veryclean docker-build docker-run docker-clean docker-prune docker-shell buildsymbols upstream-update setup-arch bootstrap-arch bootstrap-arch-do-bootstrap old-style-bootstrap-arch old-style-bootstrap-arch-do-bootstrap build-arch build-arch-do-build extract-arch clean-arch buildsymbols-arch build-symbols-arch-do-buildsymbols package-arch package-arch-do-package patch-folder-arch winsdk-arch
version:=$(shell cat version) version:=$(shell cat version)
release:=$(shell cat release) release:=$(shell cat release)
@ -40,6 +40,7 @@ help :
@echo " winsdk-arch - Extract the winsdk folder for cross-build." @echo " winsdk-arch - Extract the winsdk folder for cross-build."
@echo "" @echo ""
@echo " bootstrap-arch - Bootstrap the mozilla build environment." @echo " bootstrap-arch - Bootstrap the mozilla build environment."
@echo " old-style-bootstrap-arch - Use old style bootstrapping."
@echo " build-arch - Build it." @echo " build-arch - Build it."
@echo " buildsymbols-arch - Build symbols." @echo " buildsymbols-arch - Build symbols."
@echo " package-arch - Package the target zip file." @echo " package-arch - Package the target zip file."
@ -47,7 +48,7 @@ help :
all : build buildsymbols package artifacts all : build buildsymbols package artifacts
# #
# Redo from scratch. # Redo from scratch. ---
# #
upstream-update : upstream-update :
@ -94,6 +95,32 @@ bootstrap-arch :
bootstrap-arch-do-bootstrap : bootstrap-arch-do-bootstrap :
./mach --no-interactive bootstrap --application-choice=browser ./mach --no-interactive bootstrap --application-choice=browser
# try old style bootstrapping...
old-style-bootstrap-arch :
[ -f "version" ] && [ -f "source_release" ] && [ -d "librewolf-$(full_version)" ]
cp -v assets/mozconfig librewolf-$(full_version)/mozconfig
${MAKE} -C librewolf-$(full_version) -f ../Makefile old-style-bootstrap-arch-do-bootstrap
old-style-bootstrap-arch-do-bootstrap :
./mach --no-interactive bootstrap --application-choice=browser
~/.cargo/bin/rustup target add x86_64-pc-windows-msvc
( export t=$$(pwd) && \
cd $(mozbuild) && \
$$t/mach artifact toolchain --from-build linux64-binutils && \
$$t/mach artifact toolchain --from-build linux64-cbindgen && \
$$t/mach artifact toolchain --from-build linux64-clang && \
$$t/mach artifact toolchain --from-build linux64-dump_syms && \
$$t/mach artifact toolchain --from-build linux64-nasm && \
$$t/mach artifact toolchain --from-build linux64-node && \
$$t/mach artifact toolchain --from-build linux64-rust-cross && \
$$t/mach artifact toolchain --from-build linux64-winchecksec && \
$$t/mach artifact toolchain --from-build linux64-wine && \
$$t/mach artifact toolchain --from-build nsis && \
$$t/mach artifact toolchain --from-build sysroot-x86_64-linux-gnu && \
true )
build-arch : build-arch :
[ -f "version" ] && [ -f "source_release" ] && [ -d "librewolf-$(full_version)" ] [ -f "version" ] && [ -f "source_release" ] && [ -d "librewolf-$(full_version)" ]
${MAKE} -C librewolf-$(full_version) -f ../Makefile build-arch-do-build ${MAKE} -C librewolf-$(full_version) -f ../Makefile build-arch-do-build
@ -111,7 +138,7 @@ package-arch-do-package :
@(echo 'Packaging... (output hidden)' && cat browser/locales/shipped-locales | xargs ./mach package-multi-locale --locales >/dev/null) @(echo 'Packaging... (output hidden)' && cat browser/locales/shipped-locales | xargs ./mach package-multi-locale --locales >/dev/null)
# #
# End redo # End redo ---
# #
fetch : upstream-update fetch : upstream-update

View file

@ -3,8 +3,11 @@
export MOZBUILD=$HOME/.mozbuild export MOZBUILD=$HOME/.mozbuild
export WINDOWSSDKDIR="$MOZBUILD/win-cross/vs/windows kits/10" export WINDOWSSDKDIR="$MOZBUILD/win-cross/vs/windows kits/10"
ac_add_options --target=x86_64-pc-mingw32 ac_add_options --target=x86_64-pc-mingw32
mk_add_options "export LD_PRELOAD=$MOZBUILD/liblowercase/liblowercase.so"
mk_add_options "export LOWERCASE_DIRS=$MOZBUILD/win-cross" # since v110.0 - liblowercase not needed anymore?
#mk_add_options "export LD_PRELOAD=$MOZBUILD/liblowercase/liblowercase.so"
#mk_add_options "export LOWERCASE_DIRS=$MOZBUILD/win-cross"
EXTRA_PATH="$MOZBUILD/win-cross/vs/vc/tools/msvc/14.29.30133/bin/hostx64/x64:" EXTRA_PATH="$MOZBUILD/win-cross/vs/vc/tools/msvc/14.29.30133/bin/hostx64/x64:"
mk_add_options "export PATH=$EXTRA_PATH$PATH" mk_add_options "export PATH=$EXTRA_PATH$PATH"