Create build.bat
This commit is contained in:
26
build.bat
Normal file
26
build.bat
Normal 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
|
||||||
Reference in New Issue
Block a user