]> git.lyx.org Git - lyx.git/blob - development/cmake/build5-2010-installer.bat
use Qt default path, don't touch source tree
[lyx.git] / development / cmake / build5-2010-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.5.1\5.5\msvc2010\bin;%PATH%
9
10 set LYX_SOURCE=%~DP0..\..
11 set LYX_BUILD=%LYX_SOURCE%\..\build-result-5-2010
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 rmdir /s/q %LYX_BUILD%
20 mkdir %LYX_BUILD%
21
22
23 REM Download http://sourceforge.net/projects/lyx/files/Win_installers/Dependencies/lyx20-deps-msvc2010-x86.zip
24 REM Extract on the same level as LyX sources
25 set GNUWIN32_DIR=%LYX_SOURCE%\..\lyx20-deps-msvc2010-x86\deps20
26
27 REM MSVC 2010 tools
28 call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
29
30 cd %LYX_BUILD%
31 cmake %LYX_SOURCE% -G"NMake Makefiles" -DLYX_PYTHON_EXECUTABLE=%GNUWIN32_DIR%\Python\python -DLYX_3RDPARTY_BUILD=1 -DLYX_USE_QT=QT5 -DLYX_MERGE_REBUILD=1 -DLYX_MERGE_FILES=1 -DLYX_NLS=1 -DLYX_INSTALL=1 -DLYX_RELEASE=1 -DLYX_CONSOLE=OFF 
32
33 nmake doc
34 nmake translations
35 nmake
36 nmake install
37
38 goto :eof
39 :eof
40
41 REM go back to the dir where the script was called from
42 cd /D %CALLED_FROM%