mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
build: Put all codec optiomization definitions in one place
It was already mostly there. Change-Id: I24ff278d9bf18a54be4b67c3075d5ebbe7947f65
This commit is contained in:
parent
4c933a1d01
commit
6c2a7ddc74
5 changed files with 14 additions and 39 deletions
|
|
@ -13,21 +13,11 @@
|
|||
|
||||
# disable strict aliasing optimizations for now, it gives warnings due to
|
||||
# some horrid typecasting
|
||||
_SPEEXFLAGS = $(filter-out -fstrict-aliasing, $(CODECFLAGS)) \
|
||||
SPEEXFLAGS = $(filter-out -fstrict-aliasing, $(CODECFLAGS)) \
|
||||
-fno-strict-aliasing -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \
|
||||
-I$(RBCODECLIB_DIR)/codecs/libspeex
|
||||
|
||||
# build voice codec with core -O switch
|
||||
VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(_SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC
|
||||
|
||||
# libspeex is faster on ARM-targets with -O1 instead of -O2
|
||||
SPEEXFLAGS = $(filter-out -O%,$(_SPEEXFLAGS))
|
||||
|
||||
ifeq ($(ARCH),arch_arm)
|
||||
SPEEXFLAGS += -O1
|
||||
else
|
||||
SPEEXFLAGS += -O2
|
||||
endif
|
||||
VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC
|
||||
|
||||
# libspeex
|
||||
SPEEXLIB := $(CODECDIR)/libspeex.a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue