I'm sure people working on Windows customize their Qt.bat file with respect
to the one at
https://musescore.org/en/developers-handbook/compilation/compile-instructions-windows-mingw-git.
Here's my version, just FYI.

Ignore  the funny PF and PF86 folders. The essence of the changes are:

* A little bit of spacing for clarity
* The values reported using echo are the actual values set, not the ones you
intended to set, but got confused and only changed the echo and not the
actual setting (or mistyped the set version)
* The PATH is pretty-printed
* You can use a single batch file to set up different Windows shortcuts.
This version supports options for running QtCreator or a command line. 

@echo off
echo Setting up a MinGW/Qt only environment...
echo(

set QTDIR=C:\Qt\5.6\mingw492_32
echo -- Set QTDIR to %QTDIR%
echo(

set PATH=%QTDIR%\bin
set PATH=%PATH%;C:\Qt\Tools\mingw492_32\bin
set PATH=%PATH%;C:\Qt\Tools\mingw492_32\lib
set PATH=%PATH%;C:\PF86\CMake\bin
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
set PATH=%PATH%;%SystemRoot%\System32
set PATH=%PATH%;C:\PF\Git\Cmd
REM doxygen
REM MiKTeX

echo -- set PATH to:
ECHO.%PATH:;= & ECHO.%
echo(

set QMAKESPEC=win32-g++
echo -- set QMAKESPEC to %QMAKESPEC%

set MAKEFLAGS=-j %NUMBER_OF_PROCESSORS%
echo -- Set MAKEFLAGS to %MAKEFLAGS%

set WORKDIR=MuseScore-gsoc-implode
echo -- Set WORKDIR   to %WORKDIR%

:parse
IF "%~1"=="" GOTO endparse
IF "%~1"=="qt" GOTO startqt
IF "%~1"=="cmd" GOTO startcmd
SHIFT
GOTO parse
:endparse

:startqt:

pause
start /low qtcreator -lastsession
exit

:startcmd:

e:
cd "/MuseScoreBuilds/%WORKDIR%/MuseScore"

echo(
cd
echo(

cmd.exe




--
View this message in context: 
http://dev-list.musescore.org/For-your-consideration-another-version-of-the-Qt-bat-file-tp7579953.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to