Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-descriptors/gitian-win.yml
--- | --- | ||||
name: "bitcoin-abc-0.18-win" | name: "bitcoin-abc-0.18-win" | ||||
enable_cache: true | enable_cache: true | ||||
distro: "debian" | |||||
suites: | suites: | ||||
- "xenial" | - "stretch" | ||||
architectures: | architectures: | ||||
- "amd64" | - "amd64" | ||||
packages: | packages: | ||||
- "curl" | - "curl" | ||||
- "g++" | - "g++" | ||||
- "git-core" | - "git" | ||||
- "pkg-config" | - "pkg-config" | ||||
- "autoconf" | - "autoconf" | ||||
- "libtool" | - "libtool" | ||||
- "automake" | - "automake" | ||||
- "faketime" | - "faketime" | ||||
- "bsdmainutils" | - "bsdmainutils" | ||||
- "mingw-w64" | - "mingw-w64" | ||||
- "g++-mingw-w64" | - "g++-mingw-w64" | ||||
- "nsis" | - "nsis" | ||||
- "zip" | - "zip" | ||||
- "ca-certificates" | - "ca-certificates" | ||||
- "python" | - "python" | ||||
alternatives: | - "rename" | ||||
- "package" : "i686-w64-mingw32-gcc" | |||||
"path" : "/usr/bin/i686-w64-mingw32-gcc-posix" | |||||
- "package" : "i686-w64-mingw32-g++" | |||||
"path" : "/usr/bin/i686-w64-mingw32-g++-posix" | |||||
- "package" : "x86_64-w64-mingw32-gcc" | |||||
"path" : "/usr/bin/x86_64-w64-mingw32-gcc-posix" | |||||
- "package" : "x86_64-w64-mingw32-g++" | |||||
"path" : "/usr/bin/x86_64-w64-mingw32-g++-posix" | |||||
remotes: | remotes: | ||||
- "url": "https://github.com/Bitcoin-ABC/bitcoin-abc.git" | - "url": "https://github.com/Bitcoin-ABC/bitcoin-abc.git" | ||||
"dir": "bitcoin" | "dir": "bitcoin" | ||||
files: [] | files: [] | ||||
script: | | script: | | ||||
WRAP_DIR=$HOME/wrapped | WRAP_DIR=$HOME/wrapped | ||||
HOSTS="x86_64-w64-mingw32 i686-w64-mingw32" | HOSTS="i686-w64-mingw32 x86_64-w64-mingw32" | ||||
CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --without-seeder" | CONFIGFLAGS="--enable-reduce-exports --disable-bench --disable-gui-tests --without-seeder" | ||||
FAKETIME_HOST_PROGS="g++ ar ranlib nm windres strip objcopy" | FAKETIME_HOST_PROGS="ar ranlib nm windres strip objcopy" | ||||
FAKETIME_PROGS="date makensis zip" | FAKETIME_PROGS="date makensis zip" | ||||
HOST_CFLAGS="-O2 -g" | HOST_CFLAGS="-O2 -g" | ||||
HOST_CXXFLAGS="-O2 -g" | HOST_CXXFLAGS="-O2 -g" | ||||
export QT_RCC_TEST=1 | export QT_RCC_TEST=1 | ||||
export QT_RCC_SOURCE_DATE_OVERRIDE=1 | export QT_RCC_SOURCE_DATE_OVERRIDE=1 | ||||
export GZIP="-9n" | export GZIP="-9n" | ||||
export TAR_OPTIONS="--mtime="$REFERENCE_DATE\\\ $REFERENCE_TIME"" | export TAR_OPTIONS="--mtime="$REFERENCE_DATE\\\ $REFERENCE_TIME"" | ||||
Show All 38 Lines | for i in $HOSTS; do | ||||
for prog in collect2; do | for prog in collect2; do | ||||
echo '#!/bin/bash' > ${WRAP_DIR}/${i}/${prog} | echo '#!/bin/bash' > ${WRAP_DIR}/${i}/${prog} | ||||
REAL=$(${i}-gcc -print-prog-name=${prog}) | REAL=$(${i}-gcc -print-prog-name=${prog}) | ||||
echo "export MALLOC_PERTURB_=255" >> ${WRAP_DIR}/${i}/${prog} | echo "export MALLOC_PERTURB_=255" >> ${WRAP_DIR}/${i}/${prog} | ||||
echo "${REAL} \$@" >> $WRAP_DIR/${i}/${prog} | echo "${REAL} \$@" >> $WRAP_DIR/${i}/${prog} | ||||
chmod +x ${WRAP_DIR}/${i}/${prog} | chmod +x ${WRAP_DIR}/${i}/${prog} | ||||
done | done | ||||
for prog in gcc g++; do | for prog in gcc g++; do | ||||
echo '#!/bin/bash' > ${WRAP_DIR}/${i}-${prog} | echo '#!/usr/bin/env bash' > ${WRAP_DIR}/${i}-${prog} | ||||
echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog} | echo "REAL=\`which -a ${i}-${prog}-posix | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog} | ||||
echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog} | echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog} | ||||
echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog} | echo "export FAKETIME=\"$1\"" >> ${WRAP_DIR}/${i}-${prog} | ||||
echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog} | echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog} | ||||
echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog} | echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog} | ||||
chmod +x ${WRAP_DIR}/${i}-${prog} | chmod +x ${WRAP_DIR}/${i}-${prog} | ||||
done | done | ||||
done | done | ||||
} | } | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |