Commit a1b2ad27 authored by Diego Elio Pettenò's avatar Diego Elio Pettenò Committed by Jean-Baptiste Kempf

build: avoid adding assembler source code conditionally

Instead, create an extra library and link that one in conditionally. This
simplifies compiler language selection for the library.

close #15395
Signed-off-by: Diego Elio Pettenò's avatarDiego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent c4cd717e
......@@ -57,8 +57,13 @@ libtrivial_channel_mixer_plugin_la_SOURCES = \
libsimple_channel_mixer_plugin_la_SOURCES = \
audio_filter/channel_mixer/simple.c
libsimple_channel_mixer_plugin_la_CFLAGS =
libsimple_channel_mixer_plugin_la_LIBADD =
if HAVE_NEON
libsimple_channel_mixer_plugin_la_SOURCES += arm_neon/simple_channel_mixer.S
EXTRA_LTLIBRARIES += libsimple_channel_mixer_plugin_arm_neon.la
libsimple_channel_mixer_plugin_arm_neon_la_SOURCES = arm_neon/simple_channel_mixer.S
libsimple_channel_mixer_plugin_la_LIBADD += libsimple_channel_mixer_plugin_arm_neon.la
libsimple_channel_mixer_plugin_la_CFLAGS += -DCAN_COMPILE_ARM
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment