meson: Avoid using relative paths to po directory

Replace the relative path to the po directory with a toplevel definition
of po_dir and use that instead.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/507
This commit is contained in:
Benjamin Berg 2019-04-26 12:33:58 +02:00 committed by Benjamin Berg
parent 7e00d22bfa
commit 31968ea53c
3 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@ foreach desktop_file : desktop_files
configuration: desktopconf configuration: desktopconf
), ),
output: desktop_file, output: desktop_file,
po_dir: '../po', po_dir: po_dir,
install: true, install: true,
install_dir: desktopdir, install_dir: desktopdir,
type: 'desktop' type: 'desktop'

View File

@ -243,6 +243,8 @@ libgvc = subproject('gvc',
) )
libgvc_gir = libgvc.get_variable('libgvc_gir') libgvc_gir = libgvc.get_variable('libgvc_gir')
po_dir = join_paths(meson.current_source_dir(), 'po')
subdir('js') subdir('js')
subdir('src') subdir('src')
subdir('po') subdir('po')

View File

@ -30,7 +30,7 @@ configure_file(
i18n.merge_file('evolution-calendar.desktop', i18n.merge_file('evolution-calendar.desktop',
input: 'evolution-calendar.desktop.in', input: 'evolution-calendar.desktop.in',
output: 'evolution-calendar.desktop', output: 'evolution-calendar.desktop',
po_dir: '../../po', po_dir: po_dir,
install: true, install: true,
install_dir: desktopdir, install_dir: desktopdir,
type: 'desktop' type: 'desktop'