mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
meson: Don't search for python3 twice
This commit is contained in:
parent
6354b57295
commit
4d179024f0
2 changed files with 8 additions and 8 deletions
|
@ -1,11 +1,5 @@
|
|||
cc = meson.get_compiler('c')
|
||||
|
||||
py3 = find_program('python3', required : false)
|
||||
if not py3.found()
|
||||
# Maybe 'python' is Python 3
|
||||
py3 = find_program('python')
|
||||
endif
|
||||
|
||||
# Find flex, configure lex generator
|
||||
flex_cdata = configuration_data()
|
||||
|
||||
|
|
10
meson.build
10
meson.build
|
@ -364,6 +364,13 @@ if libtype == 'static'
|
|||
gst_c_args += ['-DGST_STATIC_COMPILATION']
|
||||
endif
|
||||
|
||||
# Used in gst/parse/meson.build and below
|
||||
py3 = find_program('python3', required : false)
|
||||
if not py3.found()
|
||||
# Maybe 'python' is Python 3
|
||||
py3 = find_program('python')
|
||||
endif
|
||||
|
||||
subdir('gst')
|
||||
subdir('libs')
|
||||
subdir('plugins')
|
||||
|
@ -384,5 +391,4 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
python3 = find_program('python3')
|
||||
run_command(python3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
||||
run_command(py3, '-c', 'import shutil; shutil.copy("hooks/pre-commit.hook", ".git/hooks/pre-commit")')
|
||||
|
|
Loading…
Reference in a new issue