summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-11-16 21:03:38 +0000
committerDave Chapman <dave@dchapman.com>2007-11-16 21:03:38 +0000
commit135d1f439a4d85115dd54baaf8e90a977e5a6d08 (patch)
treeedb933042c4c453eacb6959dc681e5924febd095
parenta16ad96b1b4ccdc86ccf4467c4b930c6582eca42 (diff)
downloadrockbox-135d1f439a4d85115dd54baaf8e90a977e5a6d08.zip
rockbox-135d1f439a4d85115dd54baaf8e90a977e5a6d08.tar.gz
rockbox-135d1f439a4d85115dd54baaf8e90a977e5a6d08.tar.bz2
rockbox-135d1f439a4d85115dd54baaf8e90a977e5a6d08.tar.xz
Create a separate voicetoolset declaration - voicefont, wavtrim and (for swcodec) rbspeexenc - and only build them when "make voice" is run. This brings the voice tools into line with the other build-specific tools and only builds them when needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15648 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/configure14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 1faf02c..9ee2d3a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -301,8 +301,6 @@ whichadvanced () {
echo "done"
if [ "yes" = "$voice" ]; then
- toolset="${toolset} voicefont wavtrim"
-
# Ask about languages to build
echo "Select a number for the language to use (default is english)"
# The multiple-language feature is currently broken
@@ -1803,6 +1801,12 @@ else
simmagic2='/@SIMUL2@/D'
fi
+if test "$swcodec" = "yes"; then
+ voicetoolset="rbspeexenc voicefont wavtrim"
+else
+ voicetoolset="voicefont wavtrim"
+fi
+
sed > Makefile \
-e "s,@ROOTDIR@,${rootdir},g" \
-e "s,@DEBUG@,${debug},g" \
@@ -1859,6 +1863,7 @@ sed > Makefile \
-e "s,@ENC_OPTS@,${ENC_OPTS},g" \
-e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
-e "s,@TTS_OPTS@,${TTS_OPTS},g" \
+ -e "s,@VOICETOOLSET@,${voicetoolset},g" \
<<EOF
## Automaticly generated. http://www.rockbox.org/
@@ -1973,6 +1978,9 @@ clean:
tools:
\$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
+voicetools:
+ \$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @VOICETOOLSET@
+
tags:
\$(SILENT)rm -f TAGS
\$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
@@ -2063,7 +2071,7 @@ if [ "yes" = "$voice" ]; then
cat >> Makefile <<EOF
-voice: tools features
+voice: voicetools features
\$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
for lang in \`echo \$(VOICELANGUAGE) |sed "s/,/ /g"\`; do \$(TOOLSDIR)/voice.pl -V -l=\$\$lang -t=\$(ARCHOS)\$\$feat -i=\$(TARGET_ID) -e=\$(ENCODER) -E="\$(ENC_OPTS)" -s=\$(TTS_ENGINE) -S="\$(TTS_OPTS)"; done \\
EOF