Skip to content
代码片段 群组 项目
提交 d79df2a3 编辑于 作者: Lzu Tao's avatar Lzu Tao
浏览文件

Apply new InstallSymlink script

上级 ef2e7619
No related branches found
No related tags found
无相关合并请求
...@@ -56,8 +56,6 @@ enable_lzma = get_option('lzma_support') ...@@ -56,8 +56,6 @@ enable_lzma = get_option('lzma_support')
# ============================================================================= # =============================================================================
GetZstdLibraryVersion_py = files('GetZstdLibraryVersion.py') GetZstdLibraryVersion_py = files('GetZstdLibraryVersion.py')
CreateSymlink_py = files('CreateSymlink.py')
CopyFile_py = files('CopyFile.py')
# ============================================================================= # =============================================================================
# Getting project version from zstd.h # Getting project version from zstd.h
......
...@@ -61,24 +61,12 @@ executable('zstd-frugal', ...@@ -61,24 +61,12 @@ executable('zstd-frugal',
# Program symlinks # Program symlinks
# ============================================================================= # =============================================================================
foreach f : [ 'zstdcat', 'unzstd' ] InstallSymlink_py = join_paths('..', 'InstallSymlink.py')
custom_target(f, meson.add_install_script(InstallSymlink_py, 'zstd', 'zstdcat', zstd_bindir)
output : f, meson.add_install_script(InstallSymlink_py, 'zstd', 'unzstd', zstd_bindir)
input: zstd,
command : [python3, CreateSymlink_py, '@PLAINNAME@', '@OUTPUT@'],
build_always_stale: false,
install : true,
install_dir: zstd_bindir)
endforeach
if enable_multithread if enable_multithread
custom_target('zstdmt', meson.add_install_script(InstallSymlink_py, 'zstd', 'zstdmt', zstd_bindir)
output : 'zstdmt',
input: zstd,
command : [python3, CreateSymlink_py, '@PLAINNAME@', '@OUTPUT@'],
build_always_stale: false,
install : true,
install_dir: zstd_bindir)
endif endif
# ============================================================================= # =============================================================================
...@@ -86,25 +74,10 @@ endif ...@@ -86,25 +74,10 @@ endif
# ============================================================================= # =============================================================================
zstd_man1_dir = join_paths(zstd_mandir, 'man1') zstd_man1_dir = join_paths(zstd_mandir, 'man1')
zstd_1_file = join_paths(programs_dir, 'zstd.1')
custom_target('zstd.1', install_man(join_paths(programs_dir, 'zstd.1'),
output : 'zstd.1', join_paths(programs_dir, 'zstdgrep.1'),
input: zstd_1_file,
command : [python3, CopyFile_py, '@INPUT@', '@OUTPUT@'],
build_always_stale: false,
install : true,
install_dir: zstd_man1_dir)
foreach f : [ 'zstdcat.1', 'unzstd.1' ]
custom_target(f,
output : f,
input: zstd_1_file,
command : [python3, CreateSymlink_py, '@PLAINNAME@', '@OUTPUT@'],
install : true,
build_always_stale: false,
install_dir: zstd_man1_dir)
endforeach
install_man(join_paths(programs_dir, 'zstdgrep.1'),
join_paths(programs_dir, 'zstdless.1')) join_paths(programs_dir, 'zstdless.1'))
meson.add_install_script(InstallSymlink_py, 'zstd.1', 'zstdcat.1', zstd_man1_dir)
meson.add_install_script(InstallSymlink_py, 'zstd.1', 'unzstd.1', zstd_man1_dir)
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册