mirror of
https://github.com/git/git.git
synced 2026-03-04 14:37:35 +01:00
Merge branch 'ps/meson-gitk-git-gui' into next
Plumb gitk/git-gui build and install procedure in meson based builds. * ps/meson-gitk-git-gui: meson: wire up gitk and git-gui
This commit is contained in:
14
meson.build
14
meson.build
@@ -239,7 +239,9 @@ git = find_program('git', dirs: program_path, native: true, required: false)
|
||||
sed = find_program('sed', dirs: program_path, native: true)
|
||||
shell = find_program('sh', dirs: program_path, native: true)
|
||||
tar = find_program('tar', dirs: program_path, native: true)
|
||||
tclsh = find_program('tclsh', required: get_option('git_gui'), native: false)
|
||||
time = find_program('time', dirs: program_path, required: get_option('benchmarks'))
|
||||
wish = find_program('wish', required: get_option('git_gui').enabled() or get_option('gitk').enabled(), native: false)
|
||||
|
||||
# Detect the target shell that is used by Git at runtime. Note that we prefer
|
||||
# "/bin/sh" over a PATH-based lookup, which provides a working shell on most
|
||||
@@ -2254,6 +2256,16 @@ configure_file(
|
||||
configuration: build_options_config,
|
||||
)
|
||||
|
||||
gitk_option = get_option('gitk').disable_auto_if(not wish.found())
|
||||
if gitk_option.allowed()
|
||||
subproject('gitk')
|
||||
endif
|
||||
|
||||
git_gui_option = get_option('git_gui').disable_auto_if(not tclsh.found() or not wish.found())
|
||||
if git_gui_option.allowed()
|
||||
subproject('git-gui')
|
||||
endif
|
||||
|
||||
# Development environments can be used via `meson devenv -C <builddir>`. This
|
||||
# allows you to execute test scripts directly with the built Git version and
|
||||
# puts the built version of Git in your PATH.
|
||||
@@ -2280,6 +2292,8 @@ summary({
|
||||
'curl': curl,
|
||||
'expat': expat,
|
||||
'gettext': intl,
|
||||
'gitk': gitk_option.allowed(),
|
||||
'git-gui': git_gui_option.allowed(),
|
||||
'gitweb': gitweb_option.allowed(),
|
||||
'iconv': iconv,
|
||||
'pcre2': pcre2,
|
||||
|
||||
@@ -43,6 +43,10 @@ option('expat', type: 'feature', value: 'enabled',
|
||||
description: 'Build helpers used to push to remotes with the HTTP transport.')
|
||||
option('gettext', type: 'feature', value: 'auto',
|
||||
description: 'Build translation files.')
|
||||
option('gitk', type: 'feature', value: 'auto',
|
||||
description: 'Build the Gitk graphical repository browser. Requires Tcl/Tk.')
|
||||
option('git_gui', type: 'feature', value: 'auto',
|
||||
description: 'Build the git-gui graphical user interface for Git. Requires Tcl/Tk.')
|
||||
option('gitweb', type: 'feature', value: 'auto',
|
||||
description: 'Build Git web interface. Requires Perl.')
|
||||
option('iconv', type: 'feature', value: 'auto',
|
||||
|
||||
1
subprojects/git-gui
Symbolic link
1
subprojects/git-gui
Symbolic link
@@ -0,0 +1 @@
|
||||
../git-gui
|
||||
1
subprojects/gitk
Symbolic link
1
subprojects/gitk
Symbolic link
@@ -0,0 +1 @@
|
||||
../gitk-git
|
||||
Reference in New Issue
Block a user