Skip to content

Commit 9a77c55

Browse files
committed
Merge branch 'main' into v1.0.0-rc.4-dev
2 parents de226cc + c9f95d5 commit 9a77c55

7 files changed

Lines changed: 101 additions & 85 deletions

File tree

src/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ HEAD_REPO_URL=${HEAD_REPO_URL:-""}
3030
REL=${REL:-0}
3131
DOWNLOAD_SDK=${DOWNLOAD_SDK:-1}
3232
SDK_VERSION=${SDK_VERSION:-"1.0.0"}
33-
SDK_REV=${SDK_REV:-"r11"}
33+
SDK_REV=${SDK_REV:-"r13"}
3434

3535
SDK_VERSION=${SDK_VERSION} SDK_REV=${SDK_REV} DOWNLOAD_SDK=${DOWNLOAD_SDK} HEAD_REPO_URL=${HEAD_REPO_URL} LOCAL_BUILD=0 MKJOBS=${MKJOBS} REL=${REL} BRANCH=${BRANCH} COMMIT=${COMMIT} CUSTOM=${CUSTOM} ./src/scripts/run_docker.sh

src/scripts/build_mac_ci.sh

Lines changed: 48 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,61 @@ REL=${REL:-"OFF"}
2525
BRANCH=${BRANCH:-`git rev-parse --abbrev-ref HEAD`}
2626
COMMIT=${COMMIT:-`git rev-parse --short=8 HEAD`}
2727
CUSTOM=${CUSTOM:-"CI"}
28+
BUILD_ARM=${BUILD_ARM:-1}
29+
BUILD_INTEL=${BUILD_INTEL:-1}
30+
BUILD_UNIVERSAL=${BUILD_UNIVERSAL:-1}
2831

29-
SDK=1.0.0
30-
SDK_REV=r5
31-
SDK_URL=https://github.com/friction2d/friction-sdk/releases/download/v${SDK}
32-
SDK_TAR=friction-sdk-${SDK}${SDK_REV}-macOS.tar.xz
33-
SDK_SHA256=36a30cb68862d3cd0fe39f9c283f1a9fb9cf2ea01a9dfc65c85024b0c2171d2d
34-
35-
if [ ! -d "${CWD}/sdk" ]; then
36-
curl -OL ${SDK_URL}/${SDK_TAR}
37-
echo "${SDK_SHA256} ${SDK_TAR}" | shasum -a 256 --check
38-
tar xf ${SDK_TAR}
32+
if [ "${BUILD_UNIVERSAL}" = 1 ]; then
33+
BUILD_ARM=1
34+
BUILD_INTEL=1
3935
fi
4036

41-
git submodule update --init --recursive
37+
SDK_PATH=${CWD}/sdk
38+
SDK_VERSION=1.0.0
39+
SDK_REV=r6
40+
SDK_URL=https://github.com/friction2d/friction-sdk/releases/download/v${SDK_VERSION}
41+
SDK_BASE=friction-sdk-${SDK_VERSION}${SDK_REV}-macOS
42+
SDK_ARM_TAR=${SDK_BASE}-arm64.tar.xz
43+
SDK_INTEL_TAR=${SDK_BASE}-x86_64.tar.xz
44+
SDK_ARM_SHA256=46a6e44b5d55f681f9dbddaa321635bfbc18cd080a649e48029d6b28cb41ad85
45+
SDK_INTEL_SHA256=c25c2a220a6f801edde67b2ce6aca3564ff7a0f7e0c00e35bac7878f1632d560
4246

43-
export CUSTOM=CI
44-
export REL=$REL
47+
if [ ! -d "${SDK_PATH}" ]; then
48+
mkdir -p "${SDK_PATH}"
49+
if [ "${BUILD_ARM}" = 1 ]; then
50+
curl -OL ${SDK_URL}/${SDK_ARM_TAR}
51+
echo "${SDK_ARM_SHA256} ${SDK_ARM_TAR}" | shasum -a 256 --check
52+
(cd "${SDK_PATH}" ; tar xf ${CWD}/${SDK_ARM_TAR} )
53+
fi
54+
if [ "${BUILD_INTEL}" = 1 ]; then
55+
curl -OL ${SDK_URL}/${SDK_INTEL_TAR}
56+
echo "${SDK_INTEL_SHA256} ${SDK_INTEL_TAR}" | shasum -a 256 --check
57+
(cd "${SDK_PATH}" ; tar xf ${CWD}/${SDK_INTEL_TAR} )
58+
fi
59+
fi
4560

46-
cd ${CWD}
47-
arch -x86_64 ./src/scripts/build_mac.sh
61+
git submodule update --init --recursive
4862

49-
cd ${CWD}
50-
./src/scripts/build_mac.sh
63+
export CUSTOM=${CUSTOM}
64+
export REL=${REL}
65+
export BRANCH=${BRANCH}
66+
export COMMIT=${COMMIT}
5167

52-
cd ${CWD}
68+
if [ "${BUILD_INTEL}" = 1 ]; then
69+
cd "${CWD}"
70+
arch -x86_64 ./src/scripts/build_mac.sh
71+
fi
5372

54-
VERSION=`cat build-release-arm64/version.txt`
55-
if [ "${REL}" != "ON" ]; then
56-
VERSION="${VERSION}-${COMMIT}"
73+
if [ "${BUILD_ARM}" = 1 ]; then
74+
cd "${CWD}"
75+
./src/scripts/build_mac.sh
5776
fi
5877

59-
VERSION=${VERSION} ./src/scripts/build_mac_universal.sh
78+
if [ "${BUILD_UNIVERSAL}" = 1 ]; then
79+
cd "${CWD}"
80+
VERSION=`cat build-release-arm64/version.txt`
81+
if [ "${REL}" != "ON" ]; then
82+
VERSION="${VERSION}-${COMMIT}"
83+
fi
84+
VERSION=${VERSION} ./src/scripts/build_mac_universal.sh
85+
fi

src/scripts/build_mac_sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ NASM_V=2.14.02
3030
YASM_V=1.3.0
3131
PKGCONF_V=1.1.0
3232

33-
QT_V=5.15.18_20251101_d8220074
33+
QT_V=5.15.19_20260520_aa749695
3434
QSCINTILLA_V=2.14.1
3535

3636
LAME_V=3.100

src/scripts/build_vfxplatform.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ TAR_VERSION=${TAR_VERSION:-""}
3535
HEAD_REPO_URL=${HEAD_REPO_URL:-""}
3636

3737
SDK_VERSION=${SDK_VERSION:-"1.0.0"}
38-
SDK_REV=${SDK_REV:-"r11"}
38+
SDK_REV=${SDK_REV:-"r13"}
3939
SDK_URL=${SDK_URL:-"https://github.com/friction2d/friction-sdk/releases/download/v${SDK_VERSION}"}
4040
SDK_FILE=${SDK_FILE:-"friction-sdk-${SDK_VERSION}${SDK_REV}-linux-x86_64.tar"}
4141
SDK_PATH="${DISTFILES}/sdk/${SDK_FILE}"

src/scripts/build_vfxplatform_sdk03.sh

Lines changed: 44 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ LAME_V=3.100
3636
VPX_V=1.8.2
3737
OGG_V=1.3.5
3838
VORBIS_V=1.3.7
39-
THEORA_V=1.1.1
40-
XVID_V=1.3.4
41-
LSMASH_V=2.14.5
39+
OPUS_V=1.3.1
4240
X264_V=20180806-2245
4341
X265_V=3.5
4442
AOM_V=3.6.1
@@ -163,49 +161,20 @@ if [ ! -f "${SDK}/lib/libvorbis.so" ]; then
163161
make install
164162
fi # libvorbis
165163

166-
# libtheora
167-
if [ ! -f "${SDK}/lib/libtheora.so" ]; then
164+
# opus
165+
if [ ! -f "${SDK}/lib/libopus.so" ]; then
168166
cd ${SRC}
169-
THEORA_SRC=libtheora-${THEORA_V}
170-
rm -rf ${THEORA_SRC} || true
171-
tar xf ${DIST}/ffmpeg/${THEORA_SRC}.tar.gz
172-
cd ${THEORA_SRC}
167+
OPUS_SRC=opus-${OPUS_V}
168+
rm -rf ${OPUS_SRC} || true
169+
tar xf ${DIST}/ffmpeg/${OPUS_SRC}.tar.gz
170+
cd ${OPUS_SRC}
173171
CFLAGS="${DEFAULT_CFLAGS}" \
174172
CXXFLAGS="${DEFAULT_CFLAGS}" \
175173
LDFLAGS="${DEFAULT_LDFLAGS}" \
176-
./configure ${DEFAULT_CONFIGURE} --disable-examples --disable-sdltest
174+
./configure ${DEFAULT_CONFIGURE} --disable-docs --disable-extra-programs
177175
make -j${MKJOBS}
178176
make install
179-
fi # libtheora
180-
181-
# xvidcore
182-
if [ ! -f "${SDK}/lib/libxvidcore.so" ]; then
183-
cd ${SRC}
184-
rm -rf xvidcore || true
185-
tar xf ${DIST}/ffmpeg/xvidcore-${XVID_V}.tar.gz
186-
cd xvidcore/build/generic
187-
CFLAGS="${DEFAULT_CFLAGS}" \
188-
CXXFLAGS="${DEFAULT_CFLAGS}" \
189-
LDFLAGS="${DEFAULT_LDFLAGS}" \
190-
./configure ${COMMON_CONFIGURE}
191-
make -j${MKJOBS}
192-
make install
193-
fi # xvidcore
194-
195-
# liblsmash
196-
if [ ! -f "${SDK}/lib/liblsmash.so" ]; then
197-
cd ${SRC}
198-
LSMASH_SRC=l-smash-${LSMASH_V}
199-
rm -rf ${LSMASH_SRC} || true
200-
tar xf ${DIST}/ffmpeg/liblsmash-v${LSMASH_V}.tar.gz
201-
cd ${LSMASH_SRC}
202-
CFLAGS="${DEFAULT_CFLAGS}" \
203-
CXXFLAGS="${DEFAULT_CFLAGS}" \
204-
LDFLAGS="${DEFAULT_LDFLAGS}" \
205-
./configure ${DEFAULT_CONFIGURE}
206-
make -j${MKJOBS}
207-
make install
208-
fi # liblsmash
177+
fi # opus
209178

210179
# x264
211180
if [ ! -f "${SDK}/lib/libx264.so" ]; then
@@ -283,38 +252,57 @@ if [ ! -f "${SDK}/lib/pkgconfig/libavcodec.pc" ]; then
283252
CXXFLAGS="${DEFAULT_CFLAGS}" \
284253
LDFLAGS="${DEFAULT_LDFLAGS}" \
285254
./configure ${SHARED_CONFIGURE} \
255+
--extra-version=friction \
256+
--disable-network \
257+
--disable-protocols \
258+
--disable-devices \
259+
--disable-hwaccels \
260+
--disable-doc \
261+
--disable-debug \
262+
--disable-securetransport \
263+
--disable-videotoolbox \
264+
--disable-openssl \
265+
--disable-gnutls \
266+
--disable-sdl2 \
286267
--disable-xlib \
287268
--disable-libxcb \
288269
--disable-libv4l2 \
289270
--disable-alsa \
290-
--disable-network \
291-
--disable-programs \
292-
--disable-debug \
293-
--disable-doc \
294-
--enable-avresample \
295-
--enable-gpl \
296-
--enable-version3 \
297-
--extra-version=friction \
298271
--disable-avisynth \
299-
--disable-gnutls \
300272
--disable-libass \
301273
--disable-libbluray \
302274
--disable-libbs2b \
303275
--disable-libcaca \
304-
--enable-libmp3lame \
305276
--disable-libopencore-amrnb \
306277
--disable-libopencore-amrwb \
307-
--disable-libopus \
308278
--disable-libspeex \
309-
--enable-libtheora \
310279
--disable-libvidstab \
311280
--disable-libvo-amrwbenc \
312-
--enable-libvorbis \
313-
--enable-libvpx \
281+
--disable-libtheora \
282+
--disable-libxvid \
283+
--disable-demuxers \
284+
--disable-muxers \
285+
--disable-decoders \
286+
--disable-encoders \
287+
--enable-gpl \
288+
--enable-version3 \
289+
--enable-avresample \
290+
--enable-protocol=file \
291+
--enable-libopus \
314292
--enable-libx264 \
315-
--enable-libaom \
316293
--enable-libx265 \
317-
--enable-libxvid
294+
--enable-libvpx \
295+
--enable-libaom \
296+
--enable-libmp3lame \
297+
--enable-libvorbis \
298+
--enable-demuxer=aac,avi,flac,gif,image2,matroska,mov,mp3,mp4,ogg,wav,webm \
299+
--enable-muxer=aac,flac,gif,image2,matroska,mov,mp3,mp4,ogg,wav,webm \
300+
--enable-decoder=libaom_av1,gif,h264,hevc,mjpeg,mpeg4,png,prores,prores_ks,rawvideo,tiff,vp8,vp9 \
301+
--enable-decoder=aac,flac,mp3,opus,vorbis \
302+
--enable-decoder=pcm_f32le,pcm_s16le,pcm_s24le \
303+
--enable-encoder=libaom_av1,gif,libx264,libx264rgb,libx265,mjpeg,png,mpeg4,prores,prores_ks,rawvideo,tiff,libvpx_vp8,libvpx_vp9 \
304+
--enable-encoder=aac,flac,libmp3lame,libopus,libvorbis \
305+
--enable-encoder=pcm_f32le,pcm_s16le,pcm_s24le
318306
make -j${MKJOBS}
319307
make install
320308
fi # ffmpeg

src/scripts/patches/qtbase-macos-versions.diff

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
--- qtbase/src/corelib/global/qglobal.cpp.orig 2025-06-11 18:07:02
2-
+++ qtbase/src/corelib/global/qglobal.cpp 2025-06-11 18:09:20
3-
@@ -2137,6 +2137,12 @@
1+
--- qtbase/src/corelib/global/qglobal.cpp.orig 2026-06-25 19:19:06
2+
+++ qtbase/src/corelib/global/qglobal.cpp 2026-06-25 19:23:11
3+
@@ -2137,6 +2137,14 @@
44
static const char *osVer_helper(QOperatingSystemVersion version = QOperatingSystemVersion::current())
55
{
66
#ifdef Q_OS_MACOS
7+
+ if (version.majorVersion() == 17 || version.majorVersion() == 27)
8+
+ return "Golden Gate";
79
+ if (version.majorVersion() == 16 || version.majorVersion() == 26)
810
+ return "Tahoe";
911
+ if (version.majorVersion() == 15)

src/scripts/run_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ONLY_SDK=${ONLY_SDK:-0}
3030
LOCAL_BUILD=${LOCAL_BUILD:-0}
3131
DOWNLOAD_SDK=${DOWNLOAD_SDK:-1}
3232
SDK_VERSION=${SDK_VERSION:-"1.0.0"}
33-
SDK_REV=${SDK_REV:-"r11"}
33+
SDK_REV=${SDK_REV:-"r13"}
3434
TAR_VERSION=${TAR_VERSION:-""}
3535
HEAD_REPO_URL=${HEAD_REPO_URL:-""}
3636

0 commit comments

Comments
 (0)