forked from len0rd/rockbox
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
This commit is contained in:
parent
a16ad96b1b
commit
135d1f439a
1 changed files with 11 additions and 3 deletions
14
tools/configure
vendored
14
tools/configure
vendored
|
@ -301,8 +301,6 @@ whichadvanced () {
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
if [ "yes" = "$voice" ]; then
|
if [ "yes" = "$voice" ]; then
|
||||||
toolset="${toolset} voicefont wavtrim"
|
|
||||||
|
|
||||||
# Ask about languages to build
|
# Ask about languages to build
|
||||||
echo "Select a number for the language to use (default is english)"
|
echo "Select a number for the language to use (default is english)"
|
||||||
# The multiple-language feature is currently broken
|
# The multiple-language feature is currently broken
|
||||||
|
@ -1803,6 +1801,12 @@ else
|
||||||
simmagic2='/@SIMUL2@/D'
|
simmagic2='/@SIMUL2@/D'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$swcodec" = "yes"; then
|
||||||
|
voicetoolset="rbspeexenc voicefont wavtrim"
|
||||||
|
else
|
||||||
|
voicetoolset="voicefont wavtrim"
|
||||||
|
fi
|
||||||
|
|
||||||
sed > Makefile \
|
sed > Makefile \
|
||||||
-e "s,@ROOTDIR@,${rootdir},g" \
|
-e "s,@ROOTDIR@,${rootdir},g" \
|
||||||
-e "s,@DEBUG@,${debug},g" \
|
-e "s,@DEBUG@,${debug},g" \
|
||||||
|
@ -1859,6 +1863,7 @@ sed > Makefile \
|
||||||
-e "s,@ENC_OPTS@,${ENC_OPTS},g" \
|
-e "s,@ENC_OPTS@,${ENC_OPTS},g" \
|
||||||
-e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
|
-e "s,@TTS_ENGINE@,${TTS_ENGINE},g" \
|
||||||
-e "s,@TTS_OPTS@,${TTS_OPTS},g" \
|
-e "s,@TTS_OPTS@,${TTS_OPTS},g" \
|
||||||
|
-e "s,@VOICETOOLSET@,${voicetoolset},g" \
|
||||||
<<EOF
|
<<EOF
|
||||||
## Automaticly generated. http://www.rockbox.org/
|
## Automaticly generated. http://www.rockbox.org/
|
||||||
|
|
||||||
|
@ -1973,6 +1978,9 @@ clean:
|
||||||
tools:
|
tools:
|
||||||
\$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
|
\$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @TOOLSET@
|
||||||
|
|
||||||
|
voicetools:
|
||||||
|
\$(SILENT)\$(MAKE) -C \$(TOOLSDIR) CC=\$(HOSTCC) @VOICETOOLSET@
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
\$(SILENT)rm -f TAGS
|
\$(SILENT)rm -f TAGS
|
||||||
\$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
|
\$(SILENT)\$(MAKE) -C \$(FIRMDIR) tags
|
||||||
|
@ -2063,7 +2071,7 @@ if [ "yes" = "$voice" ]; then
|
||||||
|
|
||||||
cat >> Makefile <<EOF
|
cat >> Makefile <<EOF
|
||||||
|
|
||||||
voice: tools features
|
voice: voicetools features
|
||||||
\$(SILENT)for f in \`cat \$(BUILDDIR)/${apps}/features\`; do feat="\$\$feat:\$\$f" ; done ; \\
|
\$(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 \\
|
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
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue