HomePhabricator

[CMAKE] Add QT plugins according to the target platform

Description

[CMAKE] Add QT plugins according to the target platform

Summary:
If the QT build is static, add the minimal integration plugin and any
platform specific plugin depending on the target.

Depends on D3091

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja
./src/qt/bitcoin-qt

Check that bitcoin-qt runs.

rm -rf *
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win64.cmake \

-DBUILD_BITCOIN_SEEDER=OFF ..

ninja

Run the generated bitcoin-qt.exe on a 64 bits Windows.

rm -rf *
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Win32.cmake \

-DBUILD_BITCOIN_SEEDER=OFF ..

ninja

Run the generated bitcoin-qt.exe on a 32 or 64 bits Windows.

Note: OSX build needs another fix to build.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3017

Details

Provenance
FabienAuthored on May 6 2019, 13:22
deadalnixPushed on May 25 2019, 15:00
Reviewer
Restricted Project
Differential Revision
D3017: [CMAKE] Add QT plugins according to the target platform
Parents
rSTAGING73cca7eeebd8: [refactor] GetAccount{PubKey,Address} -> GetAccountDestination
Branches
Unknown
Tags
Unknown