2019-05-02 12:41:48 +03:00
|
|
|
TEMPLATE = aux
|
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
autogen.commands = $$PWD/autogen.sh
|
2019-05-02 12:41:48 +03:00
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
CORES = $$system(nproc)
|
2019-05-02 12:41:48 +03:00
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
Linux.commands = make -C $$PWD/depends HOST=x86_64-pc-linux-gnu -j$$CORES
|
|
|
|
Windows.commands = make -C $$PWD/depends HOST=x86_64-w64-mingw32 -j$$CORES
|
2019-05-02 12:41:48 +03:00
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
configureWin.depends += autogen
|
|
|
|
configureWin.depends += Windows
|
2019-05-02 12:41:48 +03:00
|
|
|
configureWin.commands = ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
|
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
configureLinux.depends += autogen
|
|
|
|
configureLinux.depends += Linux
|
2019-05-02 12:41:48 +03:00
|
|
|
configureLinux.commands = ./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu
|
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
buildWin.depends += configureWin
|
|
|
|
buildWin.commands = make clean && make -j$$CORES
|
2019-05-02 12:41:48 +03:00
|
|
|
|
2019-05-02 17:21:15 +03:00
|
|
|
buildLinux.depends += configureLinux
|
|
|
|
buildLinux.commands = make clean && make -j$$CORES
|
2019-05-02 12:41:48 +03:00
|
|
|
|
|
|
|
build.depends += buildLinux
|
2019-05-02 17:21:15 +03:00
|
|
|
build.depends += copyLinux
|
2019-05-02 12:41:48 +03:00
|
|
|
build.depends += buildWin
|
2019-05-02 17:21:15 +03:00
|
|
|
build.depends += copyWin
|
|
|
|
build.depends += strip
|
|
|
|
|
|
|
|
mkDir.commands = mkdir -p $$PWD/Distro/Win64 && mkdir -p $$PWD/Distro/Linux
|
|
|
|
|
|
|
|
copyWin.depends = mkDir
|
|
|
|
copyWin.commands = find $$PWD/src/ -name '*.exe' -type f -exec cp {} $$PWD/Distro/Win64 \;
|
|
|
|
copyLinux.depends = mkDir
|
|
|
|
copyLinux.commands = cp $$PWD/src/qt/bitcoin-qt $$PWD/Distro/Linux && \
|
|
|
|
cp $$PWD/src/bitcoind $$PWD/Distro/Linux && \
|
|
|
|
cp $$PWD/src/bitcoin-cli $$PWD/Distro/Linux && \
|
|
|
|
cp $$PWD/src/bench/bench_bitcoin $$PWD/Distro/Linux && \
|
|
|
|
cp $$PWD/src/bitcoin-tx $$PWD/Distro/Linux && \
|
|
|
|
cp $$PWD/src/bitcoin-wallet $$PWD/Distro/Linux
|
|
|
|
|
|
|
|
deploy.depends += build
|
|
|
|
|
|
|
|
strip.commands = strip $$PWD/Distro/Win64/* && strip $$PWD/Distro/Linux/*
|
2019-05-02 12:41:48 +03:00
|
|
|
|
|
|
|
QMAKE_EXTRA_TARGETS += \
|
|
|
|
autogen \
|
2019-05-02 17:21:15 +03:00
|
|
|
mkDir \
|
|
|
|
strip \
|
2019-05-02 12:41:48 +03:00
|
|
|
Linux \
|
|
|
|
Windows \
|
|
|
|
configureWin \
|
|
|
|
buildWin \
|
|
|
|
configureLinux \
|
|
|
|
buildLinux \
|
2019-05-02 17:21:15 +03:00
|
|
|
build \
|
|
|
|
copyWin \
|
|
|
|
copyLinux \
|
|
|
|
deploy
|