mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
Enable dav1d SIMD on more architectures
This commit is contained in:
parent
1e73896b07
commit
ad1bfb30d5
19 changed files with 402 additions and 20 deletions
|
|
@ -61,6 +61,7 @@ set_config('HAVE_YASM', have_yasm)
|
|||
# Until the YASM variable is not necessary in old-configure.
|
||||
add_old_configure_assignment('YASM', have_yasm)
|
||||
|
||||
<<<<<<< HEAD
|
||||
# Android NDK
|
||||
# ==============================================================
|
||||
|
||||
|
|
@ -69,6 +70,45 @@ def compiling_android(compile_env, build_project, gonkdir, _):
|
|||
return compile_env and (gonkdir or build_project in ('mobile/android', 'js'))
|
||||
|
||||
include('android-ndk.configure', when=compiling_android)
|
||||
=======
|
||||
# nasm detection
|
||||
# ==============================================================
|
||||
nasm = check_prog('NASM', ['nasm'], allow_missing=True)
|
||||
|
||||
@depends_if(nasm)
|
||||
@checking('nasm version')
|
||||
def nasm_version(nasm):
|
||||
version = check_cmd_output(
|
||||
nasm, '-v',
|
||||
onerror=lambda: die('Failed to get nasm version.')
|
||||
).splitlines()[0].split()[2]
|
||||
return Version(version)
|
||||
|
||||
@depends(nasm, nasm_version)
|
||||
def have_nasm(nasm, version):
|
||||
if nasm and version >= Version('2.14'):
|
||||
return True
|
||||
|
||||
set_config('HAVE_NASM', have_nasm)
|
||||
|
||||
@depends(have_nasm, target)
|
||||
def nasm_asflags(have_nasm, target):
|
||||
if have_nasm:
|
||||
asflags = {
|
||||
('OSX', 'x86'): '-f macho32',
|
||||
('OSX', 'x86_64'): '-f macho64',
|
||||
('WINNT', 'x86'): '-f win32',
|
||||
('WINNT', 'x86_64'): '-f win64',
|
||||
}.get((target.os, target.cpu), None)
|
||||
if asflags is None:
|
||||
if target.cpu == 'x86':
|
||||
asflags = '-f elf32'
|
||||
elif target.cpu == 'x86_64':
|
||||
asflags = '-f elf64'
|
||||
return asflags
|
||||
|
||||
set_config('NASM_ASFLAGS', nasm_asflags)
|
||||
>>>>>>> 2d3d34f993 (Enable dav1d SIMD on more architectures)
|
||||
|
||||
# MacOS deployment target version
|
||||
# ==============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue