]> git.lyx.org Git - lyx.git/blob - development/cmake/build5-2017-installer.bat
Put use_formatted_reference code in addToToc instead of updateBuffer
[lyx.git] / development / cmake / build5-2017-installer.bat
1 REM Run this script via double click.
2
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.
4
5 ::echo off
6
7 REM Install Qt from qt.io
8 set PATH=C:\Qt\Qt5.12.5\5.12.5\msvc2017\bin;%PATH%
9
10 set LYX_SOURCE=%~DP0..\..
11 set LYX_BUILD=%LYX_SOURCE%\..\build-result-5-2017
12
13 echo LyX source: %LYX_SOURCE%
14 echo LyX build : %LYX_BUILD%
15
16
17 REM first remove an existing compilation to assure a clean version
18 mkdir %LYX_BUILD%
19 del /s/q %LYX_BUILD%\*
20 rmdir /s/q %LYX_BUILD%\LYX_INSTALLED
21
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-msvc2017
25
26 REM MSVC 2017 tools
27 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
28
29 cd %LYX_BUILD%
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 
31
32 nmake doc
33 nmake translations
34 nmake
35 nmake install
36
37 goto :eof
38 :eof
39
40 REM go back to the dir where the script was called from
41 cd /D %CALLED_FROM%