mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
The "common-main.c" file is used by multiple executables. In order to make it easy to set it up we have created a separate library that these executables can link against. All of these executables also want to link against `libgit.a` though, which makes it necessary to specify both of these as dependencies for every executable. Simplify this a bit by declaring the library as a source dependency: instead of creating a static library, we now instead compile the common set of files into each executable separately. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
93 lines
2.1 KiB
Meson
93 lines
2.1 KiB
Meson
test_tool_sources = [
|
|
'../unit-tests/test-lib.c',
|
|
'test-advise.c',
|
|
'test-bitmap.c',
|
|
'test-bloom.c',
|
|
'test-bundle-uri.c',
|
|
'test-cache-tree.c',
|
|
'test-chmtime.c',
|
|
'test-config.c',
|
|
'test-crontab.c',
|
|
'test-csprng.c',
|
|
'test-date.c',
|
|
'test-delete-gpgsig.c',
|
|
'test-delta.c',
|
|
'test-dir-iterator.c',
|
|
'test-drop-caches.c',
|
|
'test-dump-cache-tree.c',
|
|
'test-dump-fsmonitor.c',
|
|
'test-dump-split-index.c',
|
|
'test-dump-untracked-cache.c',
|
|
'test-env-helper.c',
|
|
'test-example-tap.c',
|
|
'test-find-pack.c',
|
|
'test-fsmonitor-client.c',
|
|
'test-genrandom.c',
|
|
'test-genzeros.c',
|
|
'test-getcwd.c',
|
|
'test-hash-speed.c',
|
|
'test-hash.c',
|
|
'test-hashmap.c',
|
|
'test-hexdump.c',
|
|
'test-json-writer.c',
|
|
'test-lazy-init-name-hash.c',
|
|
'test-match-trees.c',
|
|
'test-mergesort.c',
|
|
'test-mktemp.c',
|
|
'test-online-cpus.c',
|
|
'test-pack-mtimes.c',
|
|
'test-parse-options.c',
|
|
'test-parse-pathspec-file.c',
|
|
'test-partial-clone.c',
|
|
'test-path-utils.c',
|
|
'test-path-walk.c',
|
|
'test-pcre2-config.c',
|
|
'test-pkt-line.c',
|
|
'test-proc-receive.c',
|
|
'test-progress.c',
|
|
'test-reach.c',
|
|
'test-read-cache.c',
|
|
'test-read-graph.c',
|
|
'test-read-midx.c',
|
|
'test-ref-store.c',
|
|
'test-reftable.c',
|
|
'test-regex.c',
|
|
'test-repository.c',
|
|
'test-revision-walking.c',
|
|
'test-rot13-filter.c',
|
|
'test-run-command.c',
|
|
'test-scrap-cache-tree.c',
|
|
'test-serve-v2.c',
|
|
'test-sha1.c',
|
|
'test-sha256.c',
|
|
'test-sigchain.c',
|
|
'test-simple-ipc.c',
|
|
'test-string-list.c',
|
|
'test-submodule-config.c',
|
|
'test-submodule-nested-repo-config.c',
|
|
'test-submodule.c',
|
|
'test-subprocess.c',
|
|
'test-tool.c',
|
|
'test-trace2.c',
|
|
'test-truncate.c',
|
|
'test-userdiff.c',
|
|
'test-wildmatch.c',
|
|
'test-windows-named-pipe.c',
|
|
'test-write-cache.c',
|
|
'test-xml-encode.c',
|
|
]
|
|
|
|
test_tool = executable('test-tool',
|
|
sources: test_tool_sources,
|
|
dependencies: [libgit_commonmain],
|
|
)
|
|
bin_wrappers += test_tool
|
|
test_dependencies += test_tool
|
|
|
|
test_fake_ssh = executable('test-fake-ssh',
|
|
sources: 'test-fake-ssh.c',
|
|
dependencies: [libgit_commonmain],
|
|
)
|
|
bin_wrappers += test_fake_ssh
|
|
test_dependencies += test_fake_ssh
|