aboutsummaryrefslogtreecommitdiff
path: root/gitk-git/meson.build
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-02-20 05:59:56 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-20 05:59:56 -0800
commitb838bf1938926a7a900166136d995d86f8a00e24 (patch)
treeb6d565c3dcd2657c6a94f9e81b35ee8ebddaef9f /gitk-git/meson.build
parenta554262210b4a2ee6fa2d594e1f09f5830888c56 (diff)
parent4a6cc6a20eeb593f1ad0f60475a9867532d7c5d5 (diff)
downloadgit-b838bf1938926a7a900166136d995d86f8a00e24.tar.xz
Merge branch 'master' of https://github.com/j6t/gitk
* 'master' of https://github.com/j6t/gitk: gitk: introduce support for the Meson build system gitk: extract script to build executable gitk: make the "list references" default window width wider gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6 gitk: Use an external icon file on Windows gitk: Unicode file name support gitk(Windows): avoid inadvertently calling executables in the worktree
Diffstat (limited to 'gitk-git/meson.build')
-rw-r--r--gitk-git/meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/gitk-git/meson.build b/gitk-git/meson.build
new file mode 100644
index 0000000000..ca3c0cec58
--- /dev/null
+++ b/gitk-git/meson.build
@@ -0,0 +1,30 @@
+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