Skip to content

Commit

Permalink
Update Windows build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 7, 2024
1 parent c907446 commit 40c10a3
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 14 deletions.
16 changes: 16 additions & 0 deletions src/scripts/build_qscintilla.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off

REM ### BUILD QSCINTILLA FOR FRICTION
REM # Copyright (c) Friction contributors
REM # GPLv3+

set CWD=%cd%
set SRC_DIR=%CWD%\src
set QT_DIR=%SRC_DIR%\qt
set QSCINTILLA_DIR=%SRC_DIR%\qscintilla

set PATH=%ProgramFiles%\CMake\bin;%QT_DIR%\bin;%PATH%

cd "%QSCINTILLA_DIR%\src"
%QT_DIR%\bin\qmake.exe CONFIG+=release
nmake
17 changes: 17 additions & 0 deletions src/scripts/build_qt5.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off

REM ### BUILD QT 5.15 FOR FRICTION
REM # Copyright (c) Friction contributors
REM # GPLv3+

set CWD=%cd%
set SRC_DIR=%CWD%\src
set QT_DIR=%SRC_DIR%\qt
set QT_V=5.15.12

set PATH=%ProgramFiles%\Python311;%ProgramFiles%\CMake\bin;%PATH%

cd "%SRC_DIR%\qt-everywhere-src-%QT_V%"
nmake
nmake
nmake install
14 changes: 0 additions & 14 deletions src/scripts/build_windows_skia.bat

This file was deleted.

15 changes: 15 additions & 0 deletions src/scripts/configure_qt5.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

REM ### CONFIGURE QT 5.15 FOR FRICTION
REM # Copyright (c) Friction contributors
REM # GPLv3+

set CWD=%cd%
set SRC_DIR=%CWD%\src
set QT_DIR=%SRC_DIR%\qt
set QT_V=5.15.12

set PATH=%ProgramFiles%\Python311;%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

0 comments on commit 40c10a3

Please sign in to comment.