Skip to content

Commit

Permalink
Build stuff #126
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Apr 26, 2024
1 parent ba3c0fe commit 1b2af3b
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 35 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ ffmpeg
distfiles
backup
CHANGES.md
friction-distfiles
4 changes: 2 additions & 2 deletions src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ const QString AppSupport::getAppBuildInfo(bool html)
branch);
} else {
return QString("%1 <a href=\"%5/%2\">%2</a> %3 <a href=\"%6/%4\">%4</a>.")
.arg(tr("Built from"),
.arg(tr("Built from commit"),
commit,
tr("on"),
tr("on branch"),
branch,
getAppCommitUrl(),
getAppBranchUrl());
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/build_qt5.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ REM # GPLv3+
set CWD=%cd%
set SRC_DIR=%CWD%\src
set QT_DIR=%SRC_DIR%\qt
set QT_V=5.15.12
set QT_V=5.15.13

set PATH=%ProgramFiles%\Python311;%ProgramFiles%\CMake\bin;%PATH%
set PATH=C:\Python;%ProgramFiles%\CMake\bin;%PATH%

cd "%SRC_DIR%\qt-everywhere-src-%QT_V%"
nmake
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/build_vfxplatform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REL=${REL:-1}
BRANCH=${BRANCH:-""}
COMMIT=${COMMIT:-""}
TAG=${TAG:-""}
MKJOBS=${MKJOBS:-4}
MKJOBS=${MKJOBS:-32}
SDK_VERSION=${SDK_VERSION:-""}
ONLY_SDK=${ONLY_SDK:-0}
SDK_TAR="${DISTFILES}/friction-vfxplatform-sdk-${SDK_VERSION}.tar"
Expand Down
8 changes: 4 additions & 4 deletions src/scripts/build_vfxplatform_sdk01.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ clang -v
SDK=${SDK:-"/opt/friction"}
SRC=${SDK}/src
DIST=${DIST:-"/mnt"}
JOBS=${JOBS:-4}
MKJOBS=${MKJOBS:-32}

NINJA_V=1.11.1
#GN_V=82d673ac
Expand Down Expand Up @@ -98,7 +98,7 @@ fi # ninja
# mv ${SKIA_SRC} ${SKIA_DIR}
# cd ${SKIA_DIR}
# ${GN_BIN} gen out/build --args='is_official_build=true is_debug=false cc="clang" cxx="clang++" extra_cflags=["-Wno-error"] target_os="linux" target_cpu="x64" skia_use_system_expat=false skia_use_system_freetype2=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_system_icu=false skia_use_system_harfbuzz=false skia_use_dng_sdk=false'
# ${NINJA_BIN} -C out/build -j${JOBS} skia
# ${NINJA_BIN} -C out/build -j${MKJOBS} skia
# fi # skia

# libunwind
Expand All @@ -109,7 +109,7 @@ if [ ! -f "${SDK}/lib/pkgconfig/libunwind.pc" ]; then
tar xf ${DIST}/${UNWIND_SRC}.tar.gz
cd ${UNWIND_SRC}
CC=clang CXX=clang++ ./configure ${DEFAULT_CONFIGURE} --disable-minidebuginfo --disable-tests
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libunwind

Expand All @@ -128,7 +128,7 @@ fi # libunwind
# CXXFLAGS="${DEFAULT_CFLAGS}" \
# LDFLAGS="${DEFAULT_LDFLAGS} -lunwind" \
# ./configure ${STATIC_CONFIGURE} --enable-libunwind
# make -j${JOBS}
# make -j${MKJOBS}
# fi # gperftools

echo "SDK PART 1 DONE"
14 changes: 7 additions & 7 deletions src/scripts/build_vfxplatform_sdk02.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ gcc -v
SDK=${SDK:-"/opt/friction"}
SRC=${SDK}/src
DIST=${DIST:-"/mnt"}
JOBS=${JOBS:-4}
MKJOBS=${MKJOBS:-32}

XKBCOMMON_V=0.7.1
QT_V=5.15.12 #5.12.12
QT_V=5.15.13
QSCINTILLA_V=2.14.1
PELF_V=0.17.0
CMAKE_V=3.26.3
Expand Down Expand Up @@ -69,7 +69,7 @@ if [ ! -f "${PELF_BIN}" ]; then
tar xf ${DIST}/${PELF_SRC}.tar.bz2
cd ${PELF_SRC}
./configure ${COMMON_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # patchelf

Expand All @@ -81,7 +81,7 @@ if [ ! -f "${CMAKE_BIN}" ]; then
tar xf ${DIST}/mxe/pkg/${CMAKE_SRC}.tar.gz
cd ${CMAKE_SRC}
./configure ${COMMON_CONFIGURE} -- -DCMAKE_USE_OPENSSL=OFF
make -j${JOBS}
make -j${MKJOBS}
make install
fi # cmake

Expand All @@ -93,7 +93,7 @@ if [ ! -f "${SDK}/lib/pkgconfig/xkbcommon.pc" ]; then
tar xf ${DIST}/${XKB_SRC}.tar.xz
cd ${XKB_SRC}
./configure ${DEFAULT_CONFIGURE} --disable-docs
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libxkbcommon

Expand Down Expand Up @@ -194,7 +194,7 @@ if [ ! -f "${QMAKE_BIN}" ]; then
-skip qtx11extras \
-skip qtxmlpatterns \
-skip qttools
make -j${JOBS}
make -j${MKJOBS}
make install
fi # qt

Expand All @@ -207,7 +207,7 @@ if [ ! -f "${SDK}/lib/libqscintilla2_friction_qt5.so" ]; then
cd ${QSC_SRC}/src
sed -i 's/qscintilla2_qt/qscintilla2_friction_qt/g' qscintilla.pro
${SDK}/bin/qmake CONFIG+=release
make -j${JOBS}
make -j${MKJOBS}
cp -a libqscintilla2_friction_qt5* ${SDK}/lib/
cp -a Qsci ${SDK}/include/
fi # qscintilla
Expand Down
28 changes: 14 additions & 14 deletions src/scripts/build_vfxplatform_sdk03.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gcc -v
SDK=${SDK:-"/opt/friction"}
SRC=${SDK}/src
DIST=${DIST:-"/mnt/mxe/pkg"}
JOBS=${JOBS:-4}
MKJOBS=${MKJOBS:-32}

# Keep in sync with https://github.com/friction2d/mxe
ZLIB_V=1.2.13
Expand Down Expand Up @@ -74,7 +74,7 @@ if [ ! -f "${SDK}/bin/nasm" ]; then
tar xf ${DIST}/${NASM_SRC}.tar.xz
cd ${NASM_SRC}
./configure ${COMMON_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # nasm

Expand All @@ -99,7 +99,7 @@ if [ ! -f "${SDK}/lib/libz.so" ]; then
tar xf ${DIST}/${ZLIB_SRC}.tar.xz
cd ${ZLIB_SRC}
./configure ${COMMON_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # zlib

Expand All @@ -114,7 +114,7 @@ if [ ! -f "${SDK}/lib/libmp3lame.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE} --disable-frontend --disable-gtktest --with-fileio=lame --enable-nasm
make -j${JOBS}
make -j${MKJOBS}
make install
fi # lame

Expand All @@ -129,7 +129,7 @@ if [ ! -f "${SDK}/lib/libvpx.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE} --disable-examples --disable-install-docs
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libvpx

Expand All @@ -144,7 +144,7 @@ if [ ! -f "${SDK}/lib/libogg.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libogg

Expand All @@ -159,7 +159,7 @@ if [ ! -f "${SDK}/lib/libvorbis.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libvorbis

Expand All @@ -174,7 +174,7 @@ if [ ! -f "${SDK}/lib/libtheora.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE} --disable-examples --disable-sdltest
make -j${JOBS}
make -j${MKJOBS}
make install
fi # libtheora

Expand All @@ -188,7 +188,7 @@ if [ ! -f "${SDK}/lib/libxvidcore.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${COMMON_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # xvidcore

Expand All @@ -203,7 +203,7 @@ if [ ! -f "${SDK}/lib/liblsmash.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${DEFAULT_CONFIGURE}
make -j${JOBS}
make -j${MKJOBS}
make install
fi # liblsmash

Expand All @@ -218,7 +218,7 @@ if [ ! -f "${SDK}/lib/libx264.so" ]; then
CXXFLAGS="${DEFAULT_CFLAGS}" \
LDFLAGS="${DEFAULT_LDFLAGS}" \
./configure ${COMMON_CONFIGURE} --enable-shared --disable-lavf --disable-swscale --disable-opencl --disable-cli
make -j${JOBS}
make -j${MKJOBS}
make install
fi # x264

Expand All @@ -238,7 +238,7 @@ if [ ! -f "${SDK}/lib/libx265.so" ]; then
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SHARED=ON \
-DENABLE_CLI=OFF ..
make -j${JOBS}
make -j${MKJOBS}
make install
rm ${SDK}/lib/libx265.a
fi # x265
Expand Down Expand Up @@ -266,7 +266,7 @@ if [ ! -f "${SDK}/lib/libaom.so" ]; then
-DCONFIG_AV1_HIGHBITDEPTH=0 \
-DCONFIG_WEBM_IO=0 \
-DBUILD_SHARED_LIBS=ON ..
make -j${JOBS}
make -j${MKJOBS}
make install
rm ${SDK}/lib/libaom.a
fi # aom
Expand Down Expand Up @@ -313,7 +313,7 @@ if [ ! -f "${SDK}/lib/pkgconfig/libavcodec.pc" ]; then
--enable-libaom \
--enable-libx265 \
--enable-libxvid
make -j${JOBS}
make -j${MKJOBS}
make install
fi # ffmpeg

Expand Down
6 changes: 3 additions & 3 deletions src/scripts/configure_qt5.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ REM # GPLv3+
set CWD=%cd%
set SRC_DIR=%CWD%\src
set QT_DIR=%SRC_DIR%\qt
set QT_V=5.15.12
set QT_V=5.15.13

set PATH=%ProgramFiles%\Python311;%ProgramFiles%\CMake\bin;%PATH%
set PATH=C:\Python;%ProgramFiles%\CMake\bin;%PATH%

cd "%SRC_DIR%\qt-everywhere-src-%QT_V%"
configure.bat -release -prefix "%QT_DIR%" -mp -platform win32-msvc -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -optimize-size -no-pch -no-glib -no-dbus -no-avx2 -no-avx512 -strip -no-openssl -no-gif -no-ico -schannel -skip qt3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtlottie -skip qtnetworkauth -skip qtpurchasing -skip qtquick3d -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -skip qttools
configure.bat -release -prefix "%QT_DIR%" -mp -platform win32-msvc -opensource -confirm-license -nomake examples -nomake tests -opengl desktop -optimize-size -no-pch -no-glib -no-dbus -no-avx2 -no-avx512 -strip -no-openssl -no-gif -no-wmf -no-ico -schannel -skip qt3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtlottie -skip qtnetworkauth -skip qtpurchasing -skip qtquick3d -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -skip qttools
4 changes: 2 additions & 2 deletions src/scripts/run_vfxplatform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ REL=${REL:-0}
BRANCH=${BRANCH:-""}
COMMIT=${COMMIT:-""}
TAG=${TAG:-""}
MKJOBS=${JOBS:-4}
MKJOBS=${MKJOBS:-32}
ONLY_SDK=${ONLY_SDK:-0}
DOWNLOAD_SDK=${DOWNLOAD_SDK:-0}
SDK_VERSION="20240123"
SDK_VERSION="20240424"
TAR_VERSION=${TAR_VERSION:-""}

DOCKER="docker run"
Expand Down

0 comments on commit 1b2af3b

Please sign in to comment.