mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Upstream Git has introduced support for the Meson build system. Introduce support for Meson into gitk, as well, so that Git can easily build its vendored copy of Gitk via a `subproject()` directive. The instructions can be set up as follows: $ meson setup build $ meson compile -C build $ meson install -C build Specific options, like for example where Gitk shall be installed to, can be specified at setup time via `-D`. Available options can be discovered by running `meson configure` either in the source or build directory. Signed-off-by: Patrick Steinhardt <ps@pks.im>
31 lines
563 B
Meson
31 lines
563 B
Meson
project('gitk')
|
|
|
|
shell = find_program('sh')
|
|
wish = find_program('wish')
|
|
|
|
# Verify that dependencies of "generate-tcl.sh" are satisfied.
|
|
foreach dependency : [ 'chmod', 'mv', 'sed' ]
|
|
find_program(dependency)
|
|
endforeach
|
|
|
|
custom_target(
|
|
command: [
|
|
shell,
|
|
meson.current_source_dir() / 'generate-tcl.sh',
|
|
wish.full_path(),
|
|
'@INPUT@',
|
|
'@OUTPUT@',
|
|
],
|
|
input: 'gitk',
|
|
output: 'gitk',
|
|
depend_files: [
|
|
'generate-tcl.sh',
|
|
],
|
|
install: true,
|
|
install_dir: get_option('bindir'),
|
|
)
|
|
|
|
if find_program('msgfmt').found()
|
|
subdir('po')
|
|
endif
|