meson: add nasm wrap for Windows

This commit is contained in:
Myaamori 2020-10-28 04:15:02 +00:00 committed by Ryan Lucia
parent 2510ef25c2
commit b1c2fbdb19
3 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,14 @@ project('Aegisub', ['c', 'cpp'],
cmake = import('cmake') cmake = import('cmake')
if host_machine.system() == 'windows'
sys_nasm = find_program('nasm', required: false)
if not sys_nasm.found()
nasm = subproject('nasm').get_variable('nasm')
meson.override_find_program('nasm', nasm)
endif
endif
if host_machine.system() == 'windows' if host_machine.system() == 'windows'
version_sh = find_program('tools/version.ps1') version_sh = find_program('tools/version.ps1')
else else

6
subprojects/nasm.wrap Normal file
View file

@ -0,0 +1,6 @@
[wrap-file]
directory = nasm-2.15.05
source_url = https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/nasm-2.15.05-win64.zip
source_filename = nasm-2.15.05-win64.zip
source_hash = f5c93c146f52b4f1664fa3ce6579f961a910e869ab0dae431bd871bdd2584ef2
patch_directory = nasm

View file

@ -0,0 +1,3 @@
project('nasm', version: '2.15.05')
nasm = find_program('nasm.exe', dirs: meson.current_source_dir())