mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
30ae60e7ca
* Fix/keep massaging git-describe result
Ref: https://github.com/neovim/neovim/pull/11117#issuecomment-536416223
* build: revisit generation of version from Git
Fixes "make clean && make", where "auto/versiondef.h" would be missing
since b18b84d
- because BYPRODUCTS are apparently removed when cleaning.
This includes the following improvements/changes:
- do not run git-describe during CMake's configure phase just for
reporting
- do not print with changed Git version (too noisy, simplifies code)
* Move to src/nvim (included before config) for easier flow
* fallback to describe always, write empty include file
* update_version_stamp.lua: use prefix always
22 lines
672 B
C
22 lines
672 B
C
#ifndef AUTO_VERSIONDEF_H
|
|
#define AUTO_VERSIONDEF_H
|
|
|
|
#define NVIM_VERSION_MAJOR @NVIM_VERSION_MAJOR@
|
|
#define NVIM_VERSION_MINOR @NVIM_VERSION_MINOR@
|
|
#define NVIM_VERSION_PATCH @NVIM_VERSION_PATCH@
|
|
#define NVIM_VERSION_PRERELEASE "@NVIM_VERSION_PRERELEASE@"
|
|
|
|
#cmakedefine NVIM_VERSION_MEDIUM "@NVIM_VERSION_MEDIUM@"
|
|
#ifndef NVIM_VERSION_MEDIUM
|
|
# include "auto/versiondef_git.h"
|
|
#endif
|
|
|
|
#define NVIM_API_LEVEL @NVIM_API_LEVEL@
|
|
#define NVIM_API_LEVEL_COMPAT @NVIM_API_LEVEL_COMPAT@
|
|
#define NVIM_API_PRERELEASE @NVIM_API_PRERELEASE@
|
|
|
|
#define NVIM_VERSION_CFLAGS "@NVIM_VERSION_CFLAGS@"
|
|
#define NVIM_VERSION_BUILD_TYPE "@NVIM_VERSION_BUILD_TYPE@"
|
|
|
|
#endif // AUTO_VERSIONDEF_H
|