meson: Convert the 'neon' option into a feature
Easier to express things, now that runtime is a no-op.
This commit is contained in:
@ -112,7 +112,7 @@ if have_armv7
|
||||
]
|
||||
endif
|
||||
|
||||
if neon_opt == 'yes'
|
||||
if neon_opt.enabled()
|
||||
common_audio_sources += [
|
||||
'fir_filter_neon.cc',
|
||||
'resampler/sinc_resampler_neon.cc',
|
||||
|
@ -180,7 +180,7 @@ else
|
||||
]
|
||||
endif
|
||||
|
||||
if neon_opt == 'yes'
|
||||
if neon_opt.enabled()
|
||||
webrtc_audio_processing_sources += [
|
||||
'aecm/aecm_core_neon.cc',
|
||||
]
|
||||
|
6
webrtc/third_party/pffft/meson.build
vendored
6
webrtc/third_party/pffft/meson.build
vendored
@ -4,11 +4,7 @@ pffft_sources = [
|
||||
|
||||
pffft_cflags = [ '-D_GNU_SOURCE' ]
|
||||
|
||||
if neon_opt == 'runtime'
|
||||
warning('pffft cannot check NEON support at runtime, will build without NEON')
|
||||
endif
|
||||
|
||||
if not have_inline_sse or (have_arm and neon_opt != 'yes') or (have_mips and host_machine.endian() == 'little') or have_mips64
|
||||
if not have_inline_sse or (have_arm and not neon_opt.enabled()) or (have_mips and host_machine.endian() == 'little') or have_mips64
|
||||
pffft_cflags += [ '-DPFFFT_SIMD_DISABLE' ]
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user