build: rename binaries and paths to allow side-by-side installation

Changed the binary names to mango-wl and mmsg-wl and the
configuration paths to mango-wl/ to allow parallel installations of
mango main branch and wl-roots only.
This commit is contained in:
CtrlLuzzio 2026-06-06 17:19:16 -04:00
parent 10b2b733c5
commit 5b19c8da93
5 changed files with 15 additions and 15 deletions

View file

@ -90,7 +90,7 @@ if get_option('asan')
link_args += '-fsanitize=address'
endif
executable('mango',
executable('mango-wl',
'src/mango.c',
'src/common/util.c',
wayland_sources,
@ -117,7 +117,7 @@ dwl_ipc_protocol = 'protocols/dwl-ipc-unstable-v2.xml'
wayland_scanner_client_header = generator(
wayland_scanner,
output: '@BASENAME@-protocol.h',
output: '@BASENAME@-protocol.h',
arguments: ['client-header', '@INPUT@', '@OUTPUT@']
)
@ -128,7 +128,7 @@ wayland_scanner_private_code = generator(
)
# use generator in mmsg target
executable('mmsg',
executable('mmsg-wl',
'mmsg/mmsg.c',
wayland_scanner_private_code.process(dwl_ipc_protocol),
wayland_scanner_client_header.process(dwl_ipc_protocol),
@ -145,7 +145,7 @@ executable('mmsg',
mandir = get_option('mandir')
desktop_install_dir = join_paths(prefix, 'share/wayland-sessions')
portal_install_dir = join_paths(prefix, 'share/xdg-desktop-portal')
install_data('assets/mango.desktop', install_dir : desktop_install_dir)
install_data('assets/mango-wl.desktop', install_dir : desktop_install_dir)
install_data('assets/mango-portals.conf', install_dir : portal_install_dir)
install_data('assets/config.conf', install_dir : join_paths(sysconfdir, 'mango'))
install_data('mmsg/mmsg.1', install_dir : join_paths(mandir, 'man1'))
install_data('assets/config.conf', install_dir : join_paths(sysconfdir, 'mango-wl'))
install_data('mmsg/mmsg-wl.1', install_dir : join_paths(mandir, 'man1'))