mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 06:31:08 +00:00
meson: skip translations if gettext is not available
This commit is contained in:
parent
a98d2a8ecc
commit
c9baaf3e50
1 changed files with 5 additions and 1 deletions
|
@ -197,7 +197,11 @@ presetdir = join_paths(get_option('datadir'), 'gstreamer-' + api_version, 'prese
|
||||||
subdir('gst')
|
subdir('gst')
|
||||||
subdir('ext')
|
subdir('ext')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
subdir('po')
|
|
||||||
|
# xgettext is optional (on Windows for instance)
|
||||||
|
if find_program('xgettext', required : false).found()
|
||||||
|
subdir('po')
|
||||||
|
endif
|
||||||
|
|
||||||
python3 = import('python3').find_python()
|
python3 = import('python3').find_python()
|
||||||
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
||||||
|
|
Loading…
Reference in a new issue