add batch file for MinGW build on Windows

This commit is contained in:
Peter Kümmel 2016-01-12 20:10:51 +01:00
parent 27a2d32e49
commit 407bb15bde
2 changed files with 29 additions and 1 deletions

View File

@ -648,7 +648,7 @@ if(PYTHONINTERP_FOUND)
endif()
endif()
if (NOT PYTHONINTERP_FOUND)
if(NOT PYTHONINTERP_FOUND AND NOT GNUWIN32_DIR)
unset(PYTHON_EXECUTABLE CACHE)
unset(PYTHON_VERSION_MAJOR)
unset(PYTHON_VERSION_MINOR)

View File

@ -0,0 +1,28 @@
echo off
set PATH=C:\Qt\Qt5.6.0\5.6\mingw492_32\bin;%PATH%
set PATH=C:\Qt\Qt5.6.0\Tools\mingw492_32\bin;%PATH%
set LYX_SOURCE=%~DP0..\..
set LYX_BUILD=%LYX_SOURCE%\..\compile-mingw
echo LyX source: %LYX_SOURCE%
echo LyX build : %LYX_BUILD%
set GNUWIN32_DIR=%LYX_SOURCE%\..\msvc2010-deps
set PATH="%GNUWIN32_DIR%\deps20\Python";%PATH%
mkdir %LYX_BUILD%
rmdir /s/q %LYX_BUILD%
mkdir %LYX_BUILD%
cd %LYX_BUILD%
cmake %LYX_SOURCE% -GNinja -DLYX_3RDPARTY_BUILD=ON -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
ninja
ninja install
cd ..
goto :eof
:eof