mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
90b742651d
Latest flex is 2.6.4, bison is 3.8.2, nasm is 2.15.04 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3209>
24 lines
757 B
Meson
24 lines
757 B
Meson
project('win-nasm', version : '2.15.04')
|
|
|
|
py3 = import('python3').find_python()
|
|
|
|
if host_machine.system() != 'windows'
|
|
error('Can only download nasm for Windows, sorry')
|
|
endif
|
|
|
|
message('Downloading and extracting nasm binaries for Windows...')
|
|
|
|
arch = host_machine.cpu_family()
|
|
if arch == 'x86_64'
|
|
zip_hash = '94204ab5d60324669f71387c2d536cacb37341d27f236358c2ba84bf16c23f6e'
|
|
else
|
|
zip_hash = '2b8a00d9fa348e7b68bac0497e25be44db83c64d6681478fdcbfa03fca36ad76'
|
|
endif
|
|
|
|
ret = run_command(py3, files('download-binary.py'), meson.project_version(), arch, zip_hash)
|
|
if ret.returncode() != 0
|
|
message(ret.stdout())
|
|
error(ret.stderr())
|
|
endif
|
|
|
|
meson.override_find_program('nasm', find_program(join_paths('nasm-@0@'.format(meson.project_version()), 'nasm')))
|