Apply new InstallSymlink script
This commit is contained in:
parent
ef2e761937
commit
d79df2a370
@ -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',
|
|||||||
# 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
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user