2016-01-13 14:42:43 +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.
|
|
|
|
|
2016-01-12 19:10:51 +00:00
|
|
|
echo off
|
|
|
|
|
2016-01-13 14:42:43 +00:00
|
|
|
REM Install Qt from qt.io
|
2016-01-13 12:12:25 +00:00
|
|
|
set PATH=C:\Qt\Qt5.5.1\5.5\mingw492_32\bin;%PATH%
|
|
|
|
set PATH=C:\Qt\Qt5.5.1\Tools\mingw492_32\bin;%PATH%
|
2016-01-12 19:10:51 +00:00
|
|
|
|
|
|
|
set LYX_SOURCE=%~DP0..\..
|
|
|
|
set LYX_BUILD=%LYX_SOURCE%\..\compile-mingw
|
|
|
|
|
|
|
|
echo LyX source: %LYX_SOURCE%
|
|
|
|
echo LyX build : %LYX_BUILD%
|
|
|
|
|
2016-01-13 14:42:43 +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
|
|
|
|
set GNUWIN32_DIR=%LYX_SOURCE%\..\lyx20-deps-msvc2010-x86\deps20
|
2016-01-12 19:10:51 +00:00
|
|
|
|
|
|
|
mkdir %LYX_BUILD%
|
|
|
|
rmdir /s/q %LYX_BUILD%
|
|
|
|
mkdir %LYX_BUILD%
|
|
|
|
|
|
|
|
cd %LYX_BUILD%
|
2016-01-13 14:42:43 +00:00
|
|
|
cmake %LYX_SOURCE% -G"MinGW Makefiles" -DLYX_PYTHON_EXECUTABLE=%GNUWIN32_DIR%\Python\python -DLYX_3RDPARTY_BUILD=1 -DLYX_ENABLE_CXX11=ON -DLYX_USE_QT=QT5 -DLYX_MERGE_REBUILD=1 -DLYX_MERGE_FILES=1 -DLYX_NLS=1 -DLYX_INSTALL=1 -DLYX_RELEASE=1 -DLYX_CONSOLE=OFF
|
2016-01-12 19:10:51 +00:00
|
|
|
|
2016-01-13 14:42:43 +00:00
|
|
|
mingw32-make doc
|
|
|
|
mingw32-make translations
|
|
|
|
mingw32-make
|
|
|
|
mingw32-make install/strip
|
2016-01-12 19:10:51 +00:00
|
|
|
|
|
|
|
goto :eof
|
|
|
|
:eof
|