1 REM Run this script via double click.
3 REM Create a link and add cmd.exe /k in the preferences in front of the mingw.bat call to prevent closing the cmd window.
7 REM Install Qt from qt.io
8 set PATH=C:\Qt\Qt5.9.4\5.9.4\msvc2015\bin;%PATH%
10 set LYX_SOURCE=%~DP0..\..
11 set LYX_BUILD=%LYX_SOURCE%\..\build-result-5-2015
13 echo LyX source: %LYX_SOURCE%
14 echo LyX build : %LYX_BUILD%
17 REM first remove an existing compilation to assure a clean version
19 del /s/q %LYX_BUILD%\*
20 rmdir /s/q %LYX_BUILD%\LYX_INSTALLED
22 REM Download http://sourceforge.net/projects/lyx/files/Win_installers/Dependencies/lyx20-deps-msvc2010-x86.zip
23 REM Extract on the same level as LyX sources
24 set GNUWIN32_DIR=D:\LyXGit\Master\lyx-windows-deps-msvc2015
27 call "C:\Programme (x86)\MSVC2015\VC\vcvarsall.bat" x86
30 cmake %LYX_SOURCE% -G"NMake Makefiles" -DLYX_USE_QT=QT5 -DLYX_MERGE_FILES=1 -DLYX_NLS=1 -DLYX_INSTALL=1 -DLYX_RELEASE=1 -DLYX_CONSOLE=OFF
40 REM go back to the dir where the script was called from