Merge branch 'tc/meson-use-our-version-def-h'
The meson build procedure looked for the 'version-def.h' file in a wrong directory, which has been corrected. * tc/meson-use-our-version-def-h: meson: ensure correct version-def.h is usedmaint
commit
d8093fd6c1
|
@ -1513,7 +1513,9 @@ libgit_version_library = static_library('git-version',
|
||||||
'version.c',
|
'version.c',
|
||||||
version_def_h,
|
version_def_h,
|
||||||
],
|
],
|
||||||
c_args: libgit_c_args,
|
c_args: libgit_c_args + [
|
||||||
|
'-DGIT_VERSION_H="' + version_def_h.full_path() + '"',
|
||||||
|
],
|
||||||
dependencies: libgit_dependencies,
|
dependencies: libgit_dependencies,
|
||||||
include_directories: libgit_include_directories,
|
include_directories: libgit_include_directories,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
#include "git-compat-util.h"
|
#include "git-compat-util.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "version-def.h"
|
|
||||||
#include "strbuf.h"
|
#include "strbuf.h"
|
||||||
|
|
||||||
|
#ifndef GIT_VERSION_H
|
||||||
|
# include "version-def.h"
|
||||||
|
#else
|
||||||
|
# include GIT_VERSION_H
|
||||||
|
#endif
|
||||||
|
|
||||||
const char git_version_string[] = GIT_VERSION;
|
const char git_version_string[] = GIT_VERSION;
|
||||||
const char git_built_from_commit_string[] = GIT_BUILT_FROM_COMMIT;
|
const char git_built_from_commit_string[] = GIT_BUILT_FROM_COMMIT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue