Add a patch file in libwmapro to make it easier to add the library and the decoder to the main build and modify README.rockbox accordingly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27012 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2010-06-21 12:38:08 +00:00
parent 9092f7aa45
commit e481e887db
2 changed files with 48 additions and 10 deletions

View file

@ -17,17 +17,14 @@ Based on ffmpeg svn r22886 dated 15 April 2010.
Currently, the files contain minimal changes from their original state in order Currently, the files contain minimal changes from their original state in order
to be able to compile cleanly. to be able to compile cleanly.
The file wmaprodec.c contains a main function that is just a stub to make sure
linking is done properly and without errors.
COMPILING COMPILING
A make file is included that would compile and link the files when the "make" At the time of this writing (21 June 2010) the decoder isn't still included in
command is executed without arguments in any Unix-like environment. the main build since it still only works in the simulator.
The file porduces an output binary called "test" that, as of now (30 April 2010) A patch is included that would enable building the library and the codec for
, is still useless. testing and development purposes.
To clean the compiler output and retain just the source code, the following To apply the patch, you should cd to libwmapro directory and then execute the
command should be executed: following command :
make clean patch -p 0 < wmapro_mainbuild.patch

View file

@ -0,0 +1,41 @@
Index: ../codecs.make
===================================================================
--- ../codecs.make (revision 27008)
+++ ../codecs.make (working copy)
@@ -37,6 +37,7 @@
include $(APPSDIR)/codecs/libtremor/libtremor.make
include $(APPSDIR)/codecs/libwavpack/libwavpack.make
include $(APPSDIR)/codecs/libwma/libwma.make
+include $(APPSDIR)/codecs/libwmapro/libwmapro.make
include $(APPSDIR)/codecs/libcook/libcook.make
include $(APPSDIR)/codecs/librm/librm.make
include $(APPSDIR)/codecs/libatrac/libatrac.make
@@ -58,7 +59,7 @@
CODECLIBS := $(DEMACLIB) $(A52LIB) $(ALACLIB) $(ASAPLIB) \
$(FAADLIB) $(FFMPEGFLACLIB) $(M4ALIB) $(MADLIB) $(MUSEPACKLIB) \
$(SPCLIB) $(SPEEXLIB) $(TREMORLIB) $(WAVPACKLIB) $(WMALIB) $(COOKLIB) \
- $(ATRACLIB) \
+ $(ATRACLIB) $(WMAPROLIB) \
$(CODECLIB)
$(CODECS): $(CODEC_CRT0) $(CODECLINK_LDS)
@@ -83,6 +84,7 @@
$(CODECDIR)/ape-pre.map : $(CODECDIR)/libdemac-pre.a
$(CODECDIR)/ape.codec : $(CODECDIR)/libdemac.a
$(CODECDIR)/wma.codec : $(CODECDIR)/libwma.a $(CODECDIR)/libasf.a
+$(CODECDIR)/wmapro.codec : $(CODECDIR)/libwmapro.a $(CODECDIR)/libasf.a
$(CODECDIR)/wavpack_enc.codec: $(CODECDIR)/libwavpack.a
$(CODECDIR)/asap.codec : $(CODECDIR)/libasap.a
$(CODECDIR)/cook.codec : $(CODECDIR)/libcook.a $(CODECDIR)/librm.a
Index: ../SOURCES
===================================================================
--- ../SOURCES (revision 27008)
+++ ../SOURCES (working copy)
@@ -16,6 +16,7 @@
atrac3_oma.c
mpc.c
wma.c
+wmapro.c
sid.c
ape.c
nsf.c