summaryrefslogtreecommitdiff
path: root/apps/codecs/libwmavoice/libwmavoice.make
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-08-07 17:55:02 +0000
committerMohamed Tarek <mt@rockbox.org>2010-08-07 17:55:02 +0000
commit4ff2cf4f0c96908f28c5037521251e0c809130bb (patch)
treea7aaacd8ad380bd842bef4ef1cf3c1861a62fa70 /apps/codecs/libwmavoice/libwmavoice.make
parenteb369699c6b7258df92169d0e1721aa5b2c108d8 (diff)
downloadrockbox-4ff2cf4f0c96908f28c5037521251e0c809130bb.tar.gz
rockbox-4ff2cf4f0c96908f28c5037521251e0c809130bb.zip
WMA Voice now plays and seeks in the sim. The code is still in floating point, and is not added to the main build. There's still a bug with the decoder in the current state that it outputs a fewer number of samples than ffmpeg's.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27744 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmavoice/libwmavoice.make')
-rw-r--r--apps/codecs/libwmavoice/libwmavoice.make37
1 files changed, 37 insertions, 0 deletions
diff --git a/apps/codecs/libwmavoice/libwmavoice.make b/apps/codecs/libwmavoice/libwmavoice.make
new file mode 100644
index 0000000000..0497e18e1b
--- /dev/null
+++ b/apps/codecs/libwmavoice/libwmavoice.make
@@ -0,0 +1,37 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id: libwmavoice.make 27586 2010-07-27 06:48:15Z nls $
8#
9
10# libwmavoice
11WMAVOICELIB := $(CODECDIR)/libwmavoice.a
12WMAVOICELIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libwmavoice/SOURCES)
13WMAVOICELIB_OBJ := $(call c2obj, $(WMAVOICELIB_SRC))
14OTHER_SRC += $(WMAVOICELIB_SRC)
15
16$(WMAVOICELIB): $(WMAVOICELIB_OBJ)
17 $(SILENT)$(shell rm -f $@)
18 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
19
20WMAVOICEFLAGS = -I$(APPSDIR)/codecs/libwmavoice $(filter-out -O%,$(CODECFLAGS))
21
22ifeq ($(CPU),coldfire)
23 WMAVOICEFLAGS += -O2
24else
25 WMAVOICEFLAGS += -O1
26endif
27
28ifeq ($(APP_TYPE),sdl-sim)
29# wmavoice needs libm in the simulator
30$(CODECDIR)/wmavoice.codec: $(CODECDIR)/wmavoice.o
31 $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmavoice.elf \
32 $(filter %.o, $^) \
33 $(filter %.a, $+) \
34 -lgcc -lm $(CODECLDFLAGS)
35 $(SILENT)cp $(CODECDIR)/wmavoice.elf $@
36endif
37