@@ -4,16 +4,15 @@ using BinaryBuilder, Pkg
44
55const YGGDRASIL_DIR = " ../.."
66include (joinpath (YGGDRASIL_DIR, " fancy_toys.jl" ))
7+ include (joinpath (YGGDRASIL_DIR, " platforms" , " macos_sdks.jl" ))
78
89name = " Qt6WebSockets"
9- version = v " 6.5 .2"
10+ version = v " 6.8 .2"
1011
1112# Collection of sources required to build qt6
1213sources = [
1314 ArchiveSource (" https://download.qt.io/official_releases/qt/$(version. major) .$(version. minor) /$version /submodules/qtwebsockets-everywhere-src-$version .tar.xz" ,
14- " 204bd7b0dffb54c934abc6cf0eb5e3016f11b3c9721a67b4875a6b21bb8b5c76" ),
15- ArchiveSource (" https://github.com/phracker/MacOSX-SDKs/releases/download/11.0-11.1/MacOSX11.1.sdk.tar.xz" ,
16- " 9b86eab03176c56bb526de30daa50fa819937c54b280364784ce431885341bf6" ),
15+ " 919df562ba3446c8393992d112085ad2d96d23aaf802b1cd7a30bf3ba2fe8cbe" ),
1716]
1817
1918script = raw """
@@ -23,68 +22,32 @@ mkdir build
2322cd build/
2423qtsrcdir=`ls -d ../qtwebsockets-*`
2524
26- case "$bb_full_target" in
27-
28- x86_64-linux-musl-libgfortran5-cxx11)
29- cmake -G Ninja \
30- -DCMAKE_INSTALL_PREFIX=${prefix} \
31- -DCMAKE_FIND_ROOT_PATH=$prefix \
32- -DCMAKE_BUILD_TYPE=Release \
33- $qtsrcdir
34- ;;
35-
36- *apple-darwin*)
37- apple_sdk_root=$WORKSPACE/srcdir/MacOSX11.1.sdk
38- sed -i "s!/opt/x86_64-apple-darwin14/x86_64-apple-darwin14/sys-root!$apple_sdk_root!" $CMAKE_TARGET_TOOLCHAIN
39- deployarg="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14"
40- cmake -G Ninja \
41- -DQT_HOST_PATH=$host_prefix \
42- -DPython_ROOT_DIR=/usr \
43- -DCMAKE_INSTALL_PREFIX=${prefix} \
44- -DCMAKE_PREFIX_PATH=$host_prefix \
45- -DCMAKE_FIND_ROOT_PATH=$prefix \
46- -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
47- -DCMAKE_SYSROOT=$apple_sdk_root \
48- -DCMAKE_FRAMEWORK_PATH=$apple_sdk_root/System/Library/Frameworks \
49- -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
50- -DCMAKE_BUILD_TYPE=Release \
51- $qtsrcdir
52- ;;
53-
54- *)
55- cmake -G Ninja \
56- -DQT_HOST_PATH=$host_prefix \
57- -DPython_ROOT_DIR=/usr \
58- -DCMAKE_INSTALL_PREFIX=${prefix} \
59- -DCMAKE_PREFIX_PATH=$host_prefix \
60- -DCMAKE_FIND_ROOT_PATH=$prefix \
61- -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
62- -DCMAKE_BUILD_TYPE=Release \
63- $qtsrcdir
64- ;;
65-
66- esac
25+ cmake -G Ninja \
26+ -DQT_HOST_PATH=$host_prefix \
27+ -DPython_ROOT_DIR=/usr \
28+ -DCMAKE_INSTALL_PREFIX=${prefix} \
29+ -DCMAKE_PREFIX_PATH=$host_prefix \
30+ -DCMAKE_FIND_ROOT_PATH=$prefix \
31+ -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
32+ -DQT_NO_APPLE_SDK_AND_XCODE_CHECK=ON \
33+ -DCMAKE_BUILD_TYPE=Release \
34+ $qtsrcdir
6735
6836cmake --build . --parallel ${nproc}
6937cmake --install .
7038install_license $WORKSPACE/srcdir/qt*-src-*/LICENSES/LGPL-3.0-only.txt
7139"""
7240
73- # These are the platforms we will build for by default, unless further
74- # platforms are passed in on the command line
75- platforms = expand_cxxstring_abis (filter (! Sys. isapple, supported_platforms ()))
76- filter! (p -> arch (p) != " armv6l" , platforms) # No OpenGL on armv6
77- platforms_macos = [ Platform (" x86_64" , " macos" ), Platform (" aarch64" , " macos" ) ]
41+ sources, script = require_macos_sdk (" 14.0" , sources, script; deployment_target= " 12" )
42+
43+ # Get the common Qt platforms
44+ include (" ../Qt6Base/common.jl" )
7845
7946# The products that we will ensure are always built
8047products = [
8148 LibraryProduct ([" Qt6WebSockets" , " libQt6WebSockets" , " QtWebSockets" ], :libqt6websockets ),
8249]
8350
84- products_macos = [
85- FrameworkProduct (" QtWebSockets" , :libqt6websockets ),
86- ]
87-
8851# Dependencies that must be installed before this package can be built
8952dependencies = [
9053 HostBuildDependency (" Qt6Base_jll" ),
@@ -93,10 +56,4 @@ dependencies = [
9356 Dependency (" Qt6Declarative_jll" ; compat= " =" * string (version)),
9457]
9558
96- if any (should_build_platform .(triplet .(platforms_macos)))
97- build_tarballs (ARGS , name, version, sources, script, platforms_macos, products_macos, dependencies; preferred_gcc_version = v " 10" , julia_compat= " 1.6" )
98- end
99-
100- if any (should_build_platform .(triplet .(platforms)))
101- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v " 10" , julia_compat= " 1.6" )
102- end
59+ build_qt (name, version, sources, script, products, dependencies)
0 commit comments