5 Star 26 Fork 0

Gitee 极速下载/neovim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
cmake.config
cmake.deps
cmake.packaging
cmake
ConvertPo.cmake
Deps.cmake
Find.cmake
FindIconv.cmake
FindLibintl.cmake
FindLibuv.cmake
FindLpeg.cmake
FindLuajit.cmake
FindLuv.cmake
FindTreesitter.cmake
FindUTF8proc.cmake
FindUnibilium.cmake
FindWasmtime.cmake
GenerateVersion.cmake
InstallHelpers.cmake
PreventInTreeBuilds.cmake
RunTests.cmake
UninstallHelper.cmake
Util.cmake
WindowsDllCopy.cmake
contrib
deps
runtime
scripts
src
test
.cirrus.yml
.clang-format
.clang-tidy
.clangd
.editorconfig
.emmyrc.json
.git-blame-ignore-revs
.gitattributes
.gitignore
.luacheckrc
.luacov
.luarc.json
.mailmap
.stylua.toml
.stylua2.toml
.styluaignore
BSDmakefile
BUILD.md
CMakeLists.txt
CMakePresets.json
CONTRIBUTING.md
INSTALL.md
LICENSE.txt
MAINTAIN.md
Makefile
README.md
build.zig
build.zig.zon
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/neovim/neovim
克隆/下载
GenerateVersion.cmake 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
dundargoc 提交于 2年前 . build: various fixes
set(NVIM_VERSION
"v${NVIM_VERSION_MAJOR}.${NVIM_VERSION_MINOR}.${NVIM_VERSION_PATCH}${NVIM_VERSION_PRERELEASE}")
execute_process(
COMMAND git --git-dir=${NVIM_SOURCE_DIR}/.git --work-tree=${NVIM_SOURCE_DIR} describe --first-parent --dirty --always
OUTPUT_VARIABLE GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
RESULT_VARIABLE RES)
if(RES)
message(STATUS "Using NVIM_VERSION: ${NVIM_VERSION}")
file(WRITE "${OUTPUT}" "")
return()
endif()
# Extract build info: "v0.9.0-145-g0f9113907" => "g0f9113907"
string(REGEX REPLACE ".*\\-" "" NVIM_VERSION_BUILD "${GIT_TAG}")
# `git describe` annotates the most recent tagged release; for pre-release
# builds we append that to the dev version.
if(NVIM_VERSION_PRERELEASE)
# Extract pre-release info: "v0.8.0-145-g0f9113907" => "145-g0f9113907"
string(REGEX REPLACE "^v[0-9]+.[0-9]+.[0-9]+-" "" NVIM_VERSION_GIT "${GIT_TAG}")
# Replace "-" with "+": "145-g0f9113907" => "145+g0f9113907"
string(REGEX REPLACE "^([0-9]+)-([a-z0-9]+)" "\\1+\\2" NVIM_VERSION_GIT "${NVIM_VERSION_GIT}")
set(NVIM_VERSION "${NVIM_VERSION}-${NVIM_VERSION_GIT}")
endif()
set(NVIM_VERSION_STRING "#define NVIM_VERSION_MEDIUM \"${NVIM_VERSION}\"\n#define NVIM_VERSION_BUILD \"${NVIM_VERSION_BUILD}\"\n")
string(SHA1 CURRENT_VERSION_HASH "${NVIM_VERSION_STRING}")
if(EXISTS ${OUTPUT})
file(SHA1 "${OUTPUT}" NVIM_VERSION_HASH)
endif()
if(NOT "${NVIM_VERSION_HASH}" STREQUAL "${CURRENT_VERSION_HASH}")
message(STATUS "Using NVIM_VERSION: ${NVIM_VERSION}")
file(WRITE "${OUTPUT}" "${NVIM_VERSION_STRING}")
if(WIN32)
configure_file("${OUTPUT}" "${OUTPUT}" NEWLINE_STYLE UNIX)
endif()
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/neovim.git
git@gitee.com:mirrors/neovim.git
mirrors
neovim
neovim
master

搜索帮助