22# `julia build_tarballs.jl --help` to see a usage message.
33using BinaryBuilder, Pkg
44
5- const YGGDRASIL_DIR = " ../.."
6- include (joinpath (YGGDRASIL_DIR, " fancy_toys.jl" ))
7-
85name = " Qt6WebChannel"
9- version = v " 6.5 .2"
6+ version = v " 6.8 .2"
107
118# Collection of sources required to build qt6
129sources = [
1310 ArchiveSource (" https://download.qt.io/official_releases/qt/$(version. major) .$(version. minor) /$version /submodules/qtwebchannel-everywhere-src-$version .tar.xz" ,
14- " c188d9fa6e535b850b574fa9e47c6089555b8df1fe041dcb13aeeca336b78e63" ),
15- ArchiveSource (" https://github.com/phracker/MacOSX-SDKs/releases/download/11.0-11.1/MacOSX11.1.sdk.tar.xz" ,
16- " 9b86eab03176c56bb526de30daa50fa819937c54b280364784ce431885341bf6" ),
11+ " 869f1e53f44673a57670005b1239cd67b9a5f372c8cae799c1e4af3f1c68b7ac" ),
1712]
1813
1914script = raw """
20- cd $WORKSPACE/srcdir
21-
22- mkdir build
23- cd build/
24- qtsrcdir=`ls -d ../qtwebchannel-*`
25-
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
67-
68- cmake --build . --parallel ${nproc}
69- cmake --install .
70- install_license $WORKSPACE/srcdir/qt*-src-*/LICENSES/LGPL-3.0-only.txt
15+ cd $WORKSPACE/srcdir/qt*
16+
17+ cmake -G Ninja \
18+ -DQT_HOST_PATH=$host_prefix \
19+ -DPython_ROOT_DIR=/usr \
20+ -DCMAKE_INSTALL_PREFIX=${prefix} \
21+ -DCMAKE_PREFIX_PATH=$host_prefix \
22+ -DCMAKE_FIND_ROOT_PATH=$prefix \
23+ -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
24+ -DQT_NO_APPLE_SDK_AND_XCODE_CHECK=ON \
25+ -DCMAKE_BUILD_TYPE=Release \
26+ -B build
27+
28+ cmake --build build --parallel ${nproc}
29+ cmake --install build
30+
31+ install_license LICENSES/LGPL-3.0-only.txt
7132"""
7233
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" ) ]
34+ # Get the common Qt platforms
35+ include (" ../Qt6Base/common.jl" )
7836
7937# The products that we will ensure are always built
8038products = [
8139 LibraryProduct ([" Qt6WebChannel" , " libQt6WebChannel" , " QtWebChannel" ], :libqt6webchannel ),
8240]
8341
84- products_macos = [
85- FrameworkProduct (" QtWebChannel" , :libqt6webchannel ),
86- ]
87-
8842# Dependencies that must be installed before this package can be built
8943dependencies = [
9044 HostBuildDependency (" Qt6Base_jll" ),
@@ -94,10 +48,4 @@ dependencies = [
9448 Dependency (" Qt6WebSockets_jll" ; compat= " =" * string (version)),
9549]
9650
97- if any (should_build_platform .(triplet .(platforms_macos)))
98- build_tarballs (ARGS , name, version, sources, script, platforms_macos, products_macos, dependencies; preferred_gcc_version = v " 10" , julia_compat= " 1.6" )
99- end
100-
101- if any (should_build_platform .(triplet .(platforms)))
102- build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies; preferred_gcc_version = v " 10" , julia_compat= " 1.6" )
103- end
51+ build_qt (name, version, sources, script, products, dependencies)
0 commit comments