-cd "%LYX_BUILD%"
-
-REM start with a new cmake run
-::del CMakeCache.txt
-
-if [%2]==[] (
- set USED_STUDIO="Visual Studio 10"
-) else (
- set USED_STUDIO=%2%
-)
-
-
-if "%1%" == "devel" (
- REM Build solution to develop LyX
- REM you can add the option "-GNinja" for a faster compilation
- cmake %LYX_SOURCE% -GNinja -G%USED_STUDIO% -DLYX_ENABLE_CXX11=ON -DLYX_USE_QT=QT5 -DLYX_ENABLE_EXPORT_TESTS=ON -DLYX_MERGE_FILES=0 -DLYX_NLS=1 -DLYX_INSTALL=0 -DLYX_RELEASE=0 -DLYX_CONSOLE=FORCE -LYX_3RDPARTY_BUILD=1 %DEPENDENCIES_DOWNLOAD%
- msbuild lyx.sln /p:Configuration=Debug /t:LyX /t:tex2lyx
-)
-
-if "%1%" == "install" (
- REM Build solution to develop LyX
- REM set -DLYX_MERGE_REBUILD and -DLYX_MERGE_FILES to 1 for a version released with an installer
- cmake %LYX_SOURCE% -GNinja -G%USED_STUDIO% -DLYX_ENABLE_CXX11=ON -DLYX_USE_QT=QT5 -DLYX_MERGE_REBUILD=0 -DLYX_MERGE_FILES=0 -DLYX_NLS=1 -DLYX_INSTALL=1 -DLYX_RELEASE=1 -DLYX_CONSOLE=OFF %DEPENDENCIES_DOWNLOAD%
- msbuild lyx.sln /p:Configuration=Release /t:ALL_BUILD
- msbuild INSTALL.vcxproj /p:Configuration=Release
-)
-
-REM go back to the dir where the script was called from
-cd /D %CALLED_FROM%