Commit 066cf53d authored by Rex Dieter's avatar Rex Dieter Committed by Arun Raghavan
Browse files

build: Make sure files with SSE2 code are compiled with -msse2


Signed-off-by: Arun Raghavan's avatarArun Raghavan <arun@arunraghavan.net>
parent d58164e4
...@@ -93,10 +93,17 @@ libcommon_audio_la_SOURCES = resampler/include/push_resampler.h \ ...@@ -93,10 +93,17 @@ libcommon_audio_la_SOURCES = resampler/include/push_resampler.h \
window_generator.cc window_generator.cc
if HAVE_X86 if HAVE_X86
libcommon_audio_la_SOURCES += \ noinst_LTLIBRARIES += libcommon_audio_sse2.la
libcommon_audio_sse2_la_SOURCES = \
resampler/sinc_resampler_sse.cc \ resampler/sinc_resampler_sse.cc \
fir_filter_sse.cc \ fir_filter_sse.cc \
fir_filter_sse.h fir_filter_sse.h
libcommon_audio_sse2_la_CFLAGS = $(AM_CFLAGS) $(COMMON_CFLAGS) -msse2
libcommon_audio_sse2_la_CXXFLAGS = $(AM_CXXFLAGS) $(COMMON_CXXFLAGS) -msse2
libcommon_audio_sse2_la_LDFLAGS = $(AM_LDFLAGS)
libcommon_audio_la_LIBADD = libcommon_audio_sse2.la
endif endif
if HAVE_ARM if HAVE_ARM
......
...@@ -147,9 +147,14 @@ libwebrtc_audio_processing_la_SOURCES += \ ...@@ -147,9 +147,14 @@ libwebrtc_audio_processing_la_SOURCES += \
endif endif
if HAVE_X86 if HAVE_X86
libwebrtc_audio_processing_la_SOURCES += \ noinst_LTLIBRARIES = libwebrtc_audio_processing_privatearch.la
LIBWEBRTC_PRIVATEARCH=libwebrtc_audio_processing_privatearch.la
libwebrtc_audio_processing_privatearch_la_SOURCES = \
aec/aec_core_sse2.c \ aec/aec_core_sse2.c \
aec/aec_rdft_sse2.c aec/aec_rdft_sse2.c
libwebrtc_audio_processing_privatearch_la_CFLAGS = $(AM_CFLAGS) $(COMMON_CFLAGS) -msse2
libwebrtc_audio_processing_privatearch_la_CXXFLAGS = $(AM_CXXFLAGS) $(COMMON_CXXFLAGS) -msse2
libwebrtc_audio_processing_privatearch_la_LDFLAGS = $(AM_LDFLAGS)
endif endif
if HAVE_NEON if HAVE_NEON
...@@ -167,6 +172,7 @@ libwebrtc_audio_processing_la_LIBADD = $(top_builddir)/webrtc/libwebrtc.la \ ...@@ -167,6 +172,7 @@ libwebrtc_audio_processing_la_LIBADD = $(top_builddir)/webrtc/libwebrtc.la \
$(top_builddir)/webrtc/system_wrappers/libsystem_wrappers.la \ $(top_builddir)/webrtc/system_wrappers/libsystem_wrappers.la \
$(top_builddir)/webrtc/common_audio/libcommon_audio.la \ $(top_builddir)/webrtc/common_audio/libcommon_audio.la \
$(top_builddir)/webrtc/modules/audio_coding/libaudio_coding.la \ $(top_builddir)/webrtc/modules/audio_coding/libaudio_coding.la \
$(LIBWEBRTC_PRIVATEARCH) \
-lpthread -lpthread
libwebrtc_audio_processing_la_LDFLAGS = $(AM_LDFLAGS) \ libwebrtc_audio_processing_la_LDFLAGS = $(AM_LDFLAGS) \
-Wl,--no-undefined \ -Wl,--no-undefined \
......
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