forked from rticommunity/plotjuggler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win32build.bat
63 lines (52 loc) · 1.54 KB
/
win32build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@echo off
cd %~dp0
SET MINGW_PATH=C:/Qt/Tools/mingw730_64/bin
SET CMAKE_PATH=C:/Qt/Tools/CMake_64/bin
SET CMAKE_PREFIX_PATH=C:/Qt/5.12.10/mingw73_64
SET PATH=%MINGW_PATH%;%CMAKE_PATH%;%PATH%
SET CMAKE_C_COMPILER=%MINGW_PATH%/gcc.exe
SET CMAKE_CXX_COMPILER=%MINGW_PATH%/g++.exe
CLS
:MENU
CLS
ECHO == PLOTJUGGLER BUILDER FOR WINDOWS ==
ECHO -------------------------------------
ECHO 1. COMPILE
ECHO 2. CREATE INSTALLER
ECHO 3. CLEAR BULD FOLDER
ECHO -------------------------------------
ECHO ==========PRESS 'Q' TO QUIT==========
ECHO.
SET INPUT=
SET /P INPUT=Please select a number:
IF /I '%INPUT%'=='1' GOTO Selection1
IF /I '%INPUT%'=='2' GOTO Selection2
IF /I '%INPUT%'=='3' GOTO Selection3
IF /I '%INPUT%'=='Q' GOTO Quit
CLS
GOTO MENU
:Selection1
mkdir build
cd build
cmake -S ".." -G "MinGW Makefiles"
make -j -l 8
PAUSE
GOTO MENU
:Selection2
RMDIR /S /Q %~dp0\installer\io.plotjuggler.application\data
%CMAKE_PREFIX_PATH%\bin\windeployqt.exe --release --dir %~dp0\installer\io.plotjuggler.application\data %~dp0\build\bin\PlotJuggler.exe
xcopy %~dp0\build\bin\*.* %~dp0\installer\io.plotjuggler.application\data /Y /S /f /z
C:\Qt\Tools\QtInstallerFramework\4.0\bin\binarycreator.exe --offline-only -c %~dp0\installer\config.xml -p %~dp0\installer %~dp0\PlotJugglerInstaller.exe
PAUSE
GOTO MENU
:Selection3
RMDIR /S /Q build
PAUSE
GOTO MENU
:Quit
CLS
ECHO ==============THANKYOU===============
ECHO -------------------------------------
ECHO ======PRESS ANY KEY TO CONTINUE======
PAUSE>NUL
EXIT