mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add batch file for MinGW build on Windows
This commit is contained in:
parent
27a2d32e49
commit
407bb15bde
@ -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)
|
||||
|
28
development/cmake/mingw.bat
Normal file
28
development/cmake/mingw.bat
Normal 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
|
Loading…
Reference in New Issue
Block a user