2016-01-19 01:21:06 +00:00
|
|
|
REM Run this script via double click.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
::echo off
|
|
|
|
|
|
|
|
REM Install Qt from qt.io
|
2016-01-19 16:39:18 +00:00
|
|
|
set PATH=C:\Qt\Qt5.5.1\5.5\msvc2010\bin;%PATH%
|
2016-01-19 01:21:06 +00:00
|
|
|
|
|
|
|
set LYX_SOURCE=%~DP0..\..
|
2016-01-19 16:39:18 +00:00
|
|
|
set LYX_BUILD=%LYX_SOURCE%\..\build-result-5-2010
|
2016-01-19 01:21:06 +00:00
|
|
|
|
|
|
|
echo LyX source: %LYX_SOURCE%
|
|
|
|
echo LyX build : %LYX_BUILD%
|
|
|
|
|
2016-01-19 16:39:18 +00:00
|
|
|
|
|
|
|
REM first remove an existing compilation to assure a clean version
|
|
|
|
mkdir %LYX_BUILD%
|
2016-01-22 11:33:16 +00:00
|
|
|
del /s/q %LYX_BUILD%\*
|
|
|
|
rmdir /s/q %LYX_BUILD%\LYX_INSTALLED
|
2016-01-19 16:39:18 +00:00
|
|
|
|
2016-01-19 01:21:06 +00:00
|
|
|
REM Download http://sourceforge.net/projects/lyx/files/Win_installers/Dependencies/lyx20-deps-msvc2010-x86.zip
|
|
|
|
REM Extract on the same level as LyX sources
|
2016-01-19 16:39:18 +00:00
|
|
|
set GNUWIN32_DIR=%LYX_SOURCE%\..\lyx20-deps-msvc2010-x86\deps20
|
2016-01-19 01:21:06 +00:00
|
|
|
|
|
|
|
REM MSVC 2010 tools
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
|
|
|
|
|
|
|
|
cd %LYX_BUILD%
|
2016-01-22 11:33:16 +00:00
|
|
|
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
|
2016-01-19 01:21:06 +00:00
|
|
|
|
|
|
|
nmake doc
|
|
|
|
nmake translations
|
|
|
|
nmake
|
|
|
|
nmake install
|
|
|
|
|
|
|
|
goto :eof
|
|
|
|
:eof
|
|
|
|
|
|
|
|
REM go back to the dir where the script was called from
|
|
|
|
cd /D %CALLED_FROM%
|