mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'rj/meson-libexecdir-fix'
Meson-based build did not handle libexecdir setting correctly, which has been corrected. * rj/meson-libexecdir-fix: po/meson.build: add missing 'ga' language code meson: fix installation when -Dlibexexdir is set
This commit is contained in:
42
meson.build
42
meson.build
@@ -1737,7 +1737,7 @@ git_builtin = executable('git',
|
||||
sources: builtin_sources + 'git.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
bin_wrappers += git_builtin
|
||||
|
||||
@@ -1745,35 +1745,35 @@ test_dependencies += executable('git-daemon',
|
||||
sources: 'daemon.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
test_dependencies += executable('git-sh-i18n--envsubst',
|
||||
sources: 'sh-i18n--envsubst.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
bin_wrappers += executable('git-shell',
|
||||
sources: 'shell.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
test_dependencies += executable('git-http-backend',
|
||||
sources: 'http-backend.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
bin_wrappers += executable('scalar',
|
||||
sources: 'scalar.c',
|
||||
dependencies: [libgit_commonmain],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
if curl.found()
|
||||
@@ -1789,14 +1789,14 @@ if curl.found()
|
||||
sources: 'remote-curl.c',
|
||||
dependencies: [libgit_curl],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
test_dependencies += executable('git-http-fetch',
|
||||
sources: 'http-fetch.c',
|
||||
dependencies: [libgit_curl],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
if expat.found()
|
||||
@@ -1804,7 +1804,7 @@ if curl.found()
|
||||
sources: 'http-push.c',
|
||||
dependencies: [libgit_curl],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
endif
|
||||
|
||||
@@ -1815,7 +1815,7 @@ if curl.found()
|
||||
)
|
||||
|
||||
install_symlink(alias + executable_suffix,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
pointing_to: 'git-remote-http',
|
||||
)
|
||||
endforeach
|
||||
@@ -1825,7 +1825,7 @@ test_dependencies += executable('git-imap-send',
|
||||
sources: 'imap-send.c',
|
||||
dependencies: [ use_curl_for_imap_send ? libgit_curl : libgit_commonmain ],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
|
||||
foreach alias : [ 'git-receive-pack', 'git-upload-archive', 'git-upload-pack' ]
|
||||
@@ -1835,7 +1835,7 @@ foreach alias : [ 'git-receive-pack', 'git-upload-archive', 'git-upload-pack' ]
|
||||
)
|
||||
|
||||
install_symlink(alias + executable_suffix,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
pointing_to: 'git',
|
||||
)
|
||||
endforeach
|
||||
@@ -1849,9 +1849,9 @@ foreach symlink : [
|
||||
'scalar',
|
||||
]
|
||||
if meson.version().version_compare('>=1.3.0')
|
||||
pointing_to = fs.relative_to(get_option('libexecdir') / 'git-core' / symlink, get_option('bindir'))
|
||||
pointing_to = fs.relative_to(git_exec_path / symlink, get_option('bindir'))
|
||||
else
|
||||
pointing_to = '../libexec/git-core' / symlink
|
||||
pointing_to = '..' / git_exec_path / symlink
|
||||
endif
|
||||
|
||||
install_symlink(symlink,
|
||||
@@ -1891,7 +1891,7 @@ foreach script : scripts_sh
|
||||
meson.project_build_root() / 'GIT-BUILD-OPTIONS',
|
||||
],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
endforeach
|
||||
|
||||
@@ -1924,7 +1924,7 @@ if perl_features_enabled
|
||||
input: perl_header_template,
|
||||
output: 'GIT-PERL-HEADER',
|
||||
configuration: {
|
||||
'GITEXECDIR_REL': get_option('libexecdir') / 'git-core',
|
||||
'GITEXECDIR_REL': git_exec_path,
|
||||
'PERLLIBDIR_REL': perllibdir,
|
||||
'LOCALEDIR_REL': get_option('datadir') / 'locale',
|
||||
'INSTLIBDIR': perllibdir,
|
||||
@@ -1948,7 +1948,7 @@ if perl_features_enabled
|
||||
output: fs.stem(script),
|
||||
command: generate_perl_command,
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
depends: [git_version_file],
|
||||
)
|
||||
test_dependencies += generated_script
|
||||
@@ -1957,9 +1957,9 @@ if perl_features_enabled
|
||||
bin_wrappers += generated_script
|
||||
|
||||
if meson.version().version_compare('>=1.3.0')
|
||||
pointing_to = fs.relative_to(get_option('libexecdir') / 'git-core' / fs.stem(script), get_option('bindir'))
|
||||
pointing_to = fs.relative_to(git_exec_path / fs.stem(script), get_option('bindir'))
|
||||
else
|
||||
pointing_to = '../libexec/git-core' / fs.stem(script)
|
||||
pointing_to = '..' / git_exec_path / fs.stem(script)
|
||||
endif
|
||||
|
||||
install_symlink(fs.stem(script),
|
||||
@@ -1989,7 +1989,7 @@ if target_python.found()
|
||||
'@OUTPUT@',
|
||||
],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir') / 'git-core',
|
||||
install_dir: git_exec_path,
|
||||
)
|
||||
test_dependencies += generated_python
|
||||
endforeach
|
||||
@@ -2023,7 +2023,7 @@ mergetools = [
|
||||
]
|
||||
|
||||
foreach mergetool : mergetools
|
||||
install_data(mergetool, install_dir: get_option('libexecdir') / 'git-core' / 'mergetools')
|
||||
install_data(mergetool, install_dir: git_exec_path / 'mergetools')
|
||||
endforeach
|
||||
|
||||
if intl.found()
|
||||
|
||||
Reference in New Issue
Block a user