mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
Merge bitcoin/bitcoin#32731: depends: Build qt
package for FreeBSD hosts
173394d951
depends: Build `qt` package for FreeBSD hosts (Hennadii Stepanov) Pull request description: This PR continues the work started in https://github.com/bitcoin/bitcoin/pull/23948. Here is an excerpt from the log: ``` $ ./build/bin/bitcoin-qt -printtoconsole 2025-06-12T01:06:56Z Bitcoin Core version v29.99.0-15de25ba2a28 (release build) 2025-06-12T01:06:56Z Qt 6.7.3 (static), plugin=xcb 2025-06-12T01:06:56Z Static plugins: 2025-06-12T01:06:56Z QMinimalIntegrationPlugin, version 395008 2025-06-12T01:06:56Z QXcbIntegrationPlugin, version 395008 2025-06-12T01:06:56Z Style: fusion / QFusionStyle 2025-06-12T01:06:56Z System: FreeBSD 14.3-RELEASE, x86_64-little_endian-lp64 ``` And here are the screenshots:   ACKs for top commit: vasild: ACK173394d951
Tree-SHA512: 42a0bd11e4ef1a23efcfe6c4ab179dc667a076e65060891ce8358b3fe78de4e3ea33f975387d4236cc2ac620e2935b0a29c278065a47f038c66658106bf36755
This commit is contained in:
@ -33,6 +33,10 @@ To build dependencies for the current arch+OS:
|
||||
|
||||
pkg install bash cmake curl gmake
|
||||
|
||||
Skip the following packages if you don't intend to use the GUI and will build with [`NO_QT=1`](#dependency-options):
|
||||
|
||||
pkg install bison ninja pkgconf python3
|
||||
|
||||
To build dependencies for the current arch+OS:
|
||||
|
||||
gmake
|
||||
|
@ -9,6 +9,7 @@ qrencode_darwin_packages = qrencode
|
||||
qrencode_mingw32_packages = qrencode
|
||||
|
||||
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
|
||||
qt_freebsd_packages:=$(qt_linux_packages)
|
||||
qt_darwin_packages=qt
|
||||
qt_mingw32_packages=qt
|
||||
ifneq ($(host),$(build))
|
||||
|
@ -7,7 +7,8 @@ $(package)_sha256_hash=$(qt_details_qtbase_sha256_hash)
|
||||
ifneq ($(host),$(build))
|
||||
$(package)_dependencies := native_$(package)
|
||||
endif
|
||||
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
|
||||
$(package)_linux_dependencies := freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
|
||||
$(package)_freebsd_dependencies := $($(package)_linux_dependencies)
|
||||
$(package)_patches_path := $(qt_details_patches_path)
|
||||
$(package)_patches := dont_hardcode_pwd.patch
|
||||
$(package)_patches += qtbase-moc-ignore-gcc-macro.patch
|
||||
@ -146,6 +147,7 @@ $(package)_config_opts_linux += -xcb
|
||||
ifneq ($(LTO),)
|
||||
$(package)_config_opts_linux += -ltcg
|
||||
endif
|
||||
$(package)_config_opts_freebsd := $$($(package)_config_opts_linux)
|
||||
|
||||
$(package)_config_opts_mingw32 := -no-dbus
|
||||
$(package)_config_opts_mingw32 += -no-freetype
|
||||
|
@ -117,7 +117,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
|
||||
endif()
|
||||
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD)$")
|
||||
# Customize pkg-config behavior for finding dependencies
|
||||
# of the xcb QPA platform plugin:
|
||||
# 1. Restrict search paths to the depends.
|
||||
|
@ -16,7 +16,7 @@ get_target_property(qt_lib_type Qt6::Core TYPE)
|
||||
function(import_plugins target)
|
||||
if(qt_lib_type STREQUAL "STATIC_LIBRARY")
|
||||
set(plugins Qt6::QMinimalIntegrationPlugin)
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|FreeBSD)$")
|
||||
list(APPEND plugins Qt6::QXcbIntegrationPlugin)
|
||||
elseif(WIN32)
|
||||
list(APPEND plugins Qt6::QWindowsIntegrationPlugin Qt6::QModernWindowsStylePlugin)
|
||||
|
Reference in New Issue
Block a user