Skip to content

Commit

Permalink
fixup! cmake: Migrate Guix build scripts to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Mar 27, 2024
1 parent e7a6095 commit 786c9f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 2 additions & 5 deletions contrib/guix/guix-build
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,9 @@ mkdir -p "$VERSION_BASE"

# Default to building for all supported HOSTs (overridable by environment)
# powerpc64le-linux-gnu currently disabled due non-determinism issues across build arches.
# TODO: Re-enable macOS hosts.
# export HOSTS="${HOSTS:-x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv64-linux-gnu powerpc64-linux-gnu
# x86_64-w64-mingw32
# x86_64-apple-darwin arm64-apple-darwin}"
export HOSTS="${HOSTS:-x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv64-linux-gnu powerpc64-linux-gnu
x86_64-w64-mingw32}"
x86_64-w64-mingw32
x86_64-apple-darwin arm64-apple-darwin}"

# Usage: distsrc_for_host HOST
#
Expand Down
12 changes: 5 additions & 7 deletions contrib/guix/libexec/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ mkdir -p "$DISTSRC"
# Install built Bitcoin Core to $INSTALLPATH
case "$HOST" in
*darwin*)
make install-strip DESTDIR="${INSTALLPATH}" ${V:+V=1}
cmake --install build --strip --prefix "${INSTALLPATH}" ${V:+--verbose}
;;
*)
cmake --install build --prefix "${INSTALLPATH}" ${V:+--verbose}
Expand All @@ -293,13 +293,12 @@ mkdir -p "$DISTSRC"

case "$HOST" in
*darwin*)
make osx_volname ${V:+V=1}
make deploydir ${V:+V=1}
cmake --build build --target deploy ${V:+--verbose}
mv build/dist/Bitcoin-Core.zip "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.zip"
mkdir -p "unsigned-app-${HOST}"
cp --target-directory="unsigned-app-${HOST}" \
osx_volname \
contrib/macdeploy/detached-sig-create.sh
mv --target-directory="unsigned-app-${HOST}" dist
mv --target-directory="unsigned-app-${HOST}" build/dist
(
cd "unsigned-app-${HOST}"
find . -print0 \
Expand All @@ -308,7 +307,6 @@ mkdir -p "$DISTSRC"
| gzip -9n > "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" \
|| ( rm -f "${OUTDIR}/${DISTNAME}-${HOST}-unsigned.tar.gz" && exit 1 )
)
make deploy ${V:+V=1} OSX_ZIP="${OUTDIR}/${DISTNAME}-${HOST}-unsigned.zip"
;;
esac
(
Expand Down Expand Up @@ -389,7 +387,7 @@ mkdir -p "$DISTSRC"

case "$HOST" in
*mingw*)
cp -rf --target-directory=. "${DISTSRC}/contrib/windeploy"
cp -rf --target-directory=. contrib/windeploy
(
cd ./windeploy
mkdir -p unsigned
Expand Down

0 comments on commit 786c9f1

Please sign in to comment.