Sandboxie/SandboxiePlus/qmake_plus.cmd

81 lines
2.4 KiB
Batchfile
Raw Normal View History

2021-01-30 20:38:27 +00:00
REM @echo off
2021-01-30 19:08:51 +00:00
REM echo Current dir: %cd%
2021-01-30 21:07:52 +00:00
REM echo folder: %~dp0
REM echo arch: %1
2021-01-30 19:08:51 +00:00
2021-01-30 19:11:22 +00:00
IF %1 == Win32 (
2021-01-30 19:17:59 +00:00
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
2021-07-18 21:20:10 +01:00
set qt_path=%~dp0..\..\Qt\5.15.2\msvc2019
2021-01-30 21:52:10 +00:00
set build_arch=Win32
2021-01-30 19:08:51 +00:00
)
2021-01-30 19:11:22 +00:00
IF %1 == x64 (
2021-01-30 19:17:59 +00:00
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
2021-07-18 21:20:10 +01:00
set qt_path=%~dp0..\..\Qt\5.15.2\msvc2019_64
2021-01-30 21:52:10 +00:00
set build_arch=x64
2021-01-30 19:08:51 +00:00
)
2021-01-30 19:25:27 +00:00
2021-07-05 12:37:28 +01:00
mkdir %~dp0\Build_UGlobalHotkey_%build_arch%
cd %~dp0\Build_UGlobalHotkey_%build_arch%
%qt_path%\bin\qmake.exe %~dp0\UGlobalHotkey\uglobalhotkey.qc.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
%~dp0..\..\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release -j 8
IF %ERRORLEVEL% NEQ 0 goto :error
if NOT EXIST %~dp0\bin\%build_arch%\Release\UGlobalHotkey.dll goto :error
2021-01-30 23:06:03 +00:00
mkdir %~dp0\Build_qtsingleapp_%build_arch%
cd %~dp0\Build_qtsingleapp_%build_arch%
2021-01-30 19:08:51 +00:00
2021-01-30 23:06:03 +00:00
%qt_path%\bin\qmake.exe %~dp0\QtSingleApp\qtsingleapp\qtsingleapp\qtsingleapp.qc.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
%~dp0..\..\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release -j 8
2021-01-31 20:51:01 +00:00
IF %ERRORLEVEL% NEQ 0 goto :error
if NOT EXIST %~dp0\bin\%build_arch%\Release\qtsingleapp.dll goto :error
2021-01-30 20:19:36 +00:00
2021-07-05 12:37:28 +01:00
2021-01-30 23:06:03 +00:00
mkdir %~dp0\Build_MiscHelpers_%build_arch%
cd %~dp0\Build_MiscHelpers_%build_arch%
2021-01-30 19:08:51 +00:00
2021-01-30 23:06:03 +00:00
%qt_path%\bin\qmake.exe %~dp0\MiscHelpers\MiscHelpers.qc.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
%~dp0..\..\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release -j 8
2021-01-31 20:51:01 +00:00
IF %ERRORLEVEL% NEQ 0 goto :error
if NOT EXIST %~dp0\bin\%build_arch%\Release\MiscHelpers.dll goto :error
2021-01-30 19:08:51 +00:00
2021-07-05 12:37:28 +01:00
2021-01-30 23:06:03 +00:00
mkdir %~dp0\Build_QSbieAPI_%build_arch%
cd %~dp0\Build_QSbieAPI_%build_arch%
2021-01-30 19:08:51 +00:00
2021-01-30 23:06:03 +00:00
%qt_path%\bin\qmake.exe %~dp0\QSbieAPI\QSbieAPI.qc.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
%~dp0..\..\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release -j 8
2021-01-31 20:51:01 +00:00
IF %ERRORLEVEL% NEQ 0 goto :error
if NOT EXIST %~dp0\bin\%build_arch%\Release\QSbieAPI.dll goto :error
2021-01-30 19:08:51 +00:00
2021-01-30 20:19:36 +00:00
2021-07-05 12:37:28 +01:00
2021-01-30 23:06:03 +00:00
mkdir %~dp0\Build_SandMan_%build_arch%
cd %~dp0\Build_SandMan_%build_arch%
2021-01-30 19:08:51 +00:00
2021-01-30 23:06:03 +00:00
%qt_path%\bin\qmake.exe %~dp0\SandMan\SandMan.qc.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
%~dp0..\..\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release -j 8
2021-01-31 20:51:01 +00:00
IF %ERRORLEVEL% NEQ 0 goto :error
if NOT EXIST %~dp0\bin\%build_arch%\Release\SandMan.exe goto :error
2021-01-30 19:08:51 +00:00
2021-07-05 12:37:28 +01:00
2021-01-31 14:31:23 +00:00
cd %~dp0
2021-01-31 10:58:50 +00:00
rem dir .\bin
rem dir .\bin\%build_arch%
rem dir .\bin\%build_arch%\Release
2021-01-31 20:51:01 +00:00
goto :eof
:error
echo Build failed
2021-07-22 09:00:24 +01:00
exit 1