Create build.bat

This commit is contained in:
William McVicar
2024-01-01 23:39:20 +01:00
parent 728d3fc92b
commit 40cf350b72

26
build.bat Normal file
View File

@@ -0,0 +1,26 @@
@echo off
IF "%~1" == "--clean" (
PUSHD ..
IF EXIST "neovim" (
ECHO "Removing old neovim directory"
rmdir /s /q "neovim"
)
POPD
)
PUSHD ..
IF NOT EXIST "neovim" (
git clone https://github.com/neovim/neovim.git
)
PUSHD neovim
cmake -S cmake.deps -B .deps -D CMAKE_BUILD_TYPE=Release
cmake --build .deps --config Release
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cmake --install build --config Release --prefix "C:\Program Files\nvim"
POPD
PUSHD get-and-build-nvim-windows