Skip to content

Commit 980e7eb

Browse files
committed
depends: only build qt on linux for x86_64/x86
1 parent ac8d041 commit 980e7eb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

depends/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,17 @@ $(host_arch)_$(host_os)_id_string+=$(shell $(host_CXX) --version 2>/dev/null)
8989
$(host_arch)_$(host_os)_id_string+=$(shell $(host_RANLIB) --version 2>/dev/null)
9090
$(host_arch)_$(host_os)_id_string+=$(shell $(host_STRIP) --version 2>/dev/null)
9191

92-
qt_packages_$(NO_QT) = $(qt_packages) $(qt_$(host_os)_packages)
93-
qt_native_packages_$(NO_QT) = $(qt_native_packages)
92+
qt_packages_$(NO_QT) = $(qt_packages) $(qt_$(host_os)_packages) $(qt_$(host_arch)_$(host_os)_packages)
9493
wallet_packages_$(NO_WALLET) = $(wallet_packages)
9594
upnp_packages_$(NO_UPNP) = $(upnp_packages)
9695

9796
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
98-
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages) $(qt_native_packages_)
97+
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
98+
99+
ifneq ($(qt_packages_),)
100+
native_packages += $(qt_native_packages)
101+
endif
102+
99103
all_packages = $(packages) $(native_packages)
100104

101105
meta_depends = Makefile funcs.mk builders/default.mk hosts/default.mk hosts/$(host_os).mk builders/$(build_os).mk

depends/packages/packages.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ native_packages := native_ccache native_comparisontool
66
qt_native_packages = native_protobuf
77
qt_packages = qrencode protobuf
88

9-
qt_linux_packages= qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
9+
qt_x86_64_linux_packages:=qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans
10+
qt_i686_linux_packages:=$(qt_x86_64_linux_packages)
11+
1012
qt_darwin_packages=qt
1113
qt_mingw32_packages=qt
1214

0 commit comments

Comments
 (0)