meson: add nasm wrap for Windows
This commit is contained in:
parent
2510ef25c2
commit
b1c2fbdb19
3 changed files with 17 additions and 0 deletions
|
@ -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
6
subprojects/nasm.wrap
Normal 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
|
3
subprojects/packagefiles/nasm/meson.build
Normal file
3
subprojects/packagefiles/nasm/meson.build
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
project('nasm', version: '2.15.05')
|
||||||
|
|
||||||
|
nasm = find_program('nasm.exe', dirs: meson.current_source_dir())
|
Loading…
Reference in a new issue