mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
meson: inline the static 'git' library
When setting up `libgit.a` we first create the static library itself, and then declare it as part of a dependency such that compile arguments, include directories and transitive dependencies get propagated to the users of that library. As such, the static library isn't expected to be used by anything but the declared dependency. Inline the static library so that we don't even use a separate variable for it. This avoids any kind of confusion that may arise and clarifies how the library is supposed to be used. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
6128301075
commit
ce9432889c
16
meson.build
16
meson.build
@@ -1555,17 +1555,15 @@ libgit_version_library = static_library('git-version',
|
||||
include_directories: libgit_include_directories,
|
||||
)
|
||||
|
||||
libgit_library = static_library('git',
|
||||
sources: libgit_sources,
|
||||
c_args: libgit_c_args,
|
||||
link_with: libgit_version_library,
|
||||
dependencies: libgit_dependencies,
|
||||
include_directories: libgit_include_directories,
|
||||
)
|
||||
|
||||
libgit = declare_dependency(
|
||||
link_with: static_library('git',
|
||||
sources: libgit_sources,
|
||||
c_args: libgit_c_args,
|
||||
link_with: libgit_version_library,
|
||||
dependencies: libgit_dependencies,
|
||||
include_directories: libgit_include_directories,
|
||||
),
|
||||
compile_args: libgit_c_args,
|
||||
link_with: libgit_library,
|
||||
dependencies: libgit_dependencies,
|
||||
include_directories: libgit_include_directories,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user