HomePhabricator

[CMAKE] Add QT plugins according to the target platform

Authored by Fabien on May 6 2019, 13:22.

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

Committed
FabienMay 25 2019, 07:13
Pushed
FabienMay 25 2019, 07:13
Reviewer
Restricted Project
Differential Revision
D3017: [CMAKE] Add QT plugins according to the target platform
Parents
rABC73cca7eeebd8: [refactor] GetAccount{PubKey,Address} -> GetAccountDestination
Branches
Unknown
Tags
Unknown