mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +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
|
|
@ -1803,6 +1803,17 @@ VARIABLES = {
|
|||
If yasm is not available on this system, or does not support the
|
||||
current target architecture, an error will be raised.
|
||||
"""),
|
||||
|
||||
'USE_NASM': (bool, bool,
|
||||
"""Use the nasm assembler to assemble assembly files from SOURCES.
|
||||
|
||||
By default, the build will use the toolchain assembler, $(AS), to
|
||||
assemble source files in assembly language (.s or .asm files). Setting
|
||||
this value to ``True`` will cause it to use nasm instead.
|
||||
|
||||
If nasm is not available on this system, or does not support the
|
||||
current target architecture, an error will be raised.
|
||||
"""),
|
||||
}
|
||||
|
||||
# Sanity check: we don't want any variable above to have a list as storage type.
|
||||
|
|
|
|||
|
|
@ -1005,24 +1005,13 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||
passthru.variables['AS'] = yasm
|
||||
passthru.variables['ASFLAGS'] = context.config.substs.get('YASM_ASFLAGS')
|
||||
passthru.variables['AS_DASH_C_FLAG'] = ''
|
||||
|
||||
for (symbol, cls) in [
|
||||
('ANDROID_RES_DIRS', AndroidResDirs),
|
||||
('ANDROID_EXTRA_RES_DIRS', AndroidExtraResDirs),
|
||||
('ANDROID_ASSETS_DIRS', AndroidAssetsDirs)]:
|
||||
paths = context.get(symbol)
|
||||
if not paths:
|
||||
continue
|
||||
for p in paths:
|
||||
if isinstance(p, SourcePath) and not os.path.isdir(p.full_path):
|
||||
raise SandboxValidationError('Directory listed in '
|
||||
'%s is not a directory: \'%s\'' %
|
||||
(symbol, p.full_path), context)
|
||||
yield cls(context, paths)
|
||||
|
||||
android_extra_packages = context.get('ANDROID_EXTRA_PACKAGES')
|
||||
if android_extra_packages:
|
||||
yield AndroidExtraPackages(context, android_extra_packages)
|
||||
if context.get('USE_NASM') is True:
|
||||
nasm = context.config.substs.get('NASM')
|
||||
if not nasm or not context.config.substs.get('HAVE_NASM'):
|
||||
raise SandboxValidationError('nasm 2.14 or later is not available', context)
|
||||
passthru.variables['AS'] = nasm
|
||||
passthru.variables['ASFLAGS'] = context.config.substs.get('NASM_ASFLAGS')
|
||||
passthru.variables['AS_DASH_C_FLAG'] = ''
|
||||
|
||||
if passthru.variables:
|
||||
yield passthru
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue