mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
FS#8482 take two. Make the language files built first, so that the largest
size can be used as buffer size for languages. Work to this also contributed by Jonas Haggqvist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16343 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
43141cbfdb
commit
8ebbe99328
8 changed files with 108 additions and 42 deletions
|
|
@ -0,0 +1,37 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
# $Id: $
|
||||
#
|
||||
|
||||
# the header we generate
|
||||
HEADER = $(BUILDDIR)/max_language_size.h
|
||||
|
||||
# This sets up 'SRC' based on the files mentioned in SOURCES
|
||||
include $(TOOLSDIR)/makesrc.inc
|
||||
SOURCES=$(SRC)
|
||||
|
||||
# OUTP is the list of files to depend upon
|
||||
OUTP = $(patsubst %.lang,$(OBJDIR)/%.lng, $(SOURCES))
|
||||
|
||||
# the generated file with features specified genlang-style
|
||||
FEATS=$(BUILDDIR)/apps/genlang-features
|
||||
|
||||
ifndef V
|
||||
SILENT=@
|
||||
endif
|
||||
PRINTS=$(SILENT)$(call info,$(1))
|
||||
|
||||
all: $(HEADER)
|
||||
|
||||
# generic rule for creating .lng from .lang
|
||||
$(OBJDIR)/%.lng : %.lang $(FEATS)
|
||||
$(call PRINTS,GENLANG $<)
|
||||
$(SILENT)$(TOOLSDIR)/genlang -e=$(APPSDIR)/lang/english.lang -t=$(MODELNAME)`cat $(FEATS)` -i=$(TARGET_ID) -b=$@ $<
|
||||
|
||||
$(HEADER): $(OUTP)
|
||||
$(call PRINTS,Make $(HEADER))
|
||||
echo "#define MAX_LANGUAGE_SIZE `du -b $(OBJDIR)/* |sort -n |tail -n 1 |cut -f 1`" > $(HEADER)
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
#ifdef HAVE_LCD_BITMAP /* Not for the Player */
|
||||
*.lang
|
||||
#else
|
||||
afrikaans.lang
|
||||
bulgarian.lang
|
||||
catala.lang
|
||||
czech.lang
|
||||
dansk.lang
|
||||
deutsch.lang
|
||||
eesti.lang
|
||||
english.lang
|
||||
espanol.lang
|
||||
esperanto.lang
|
||||
finnish.lang
|
||||
francais.lang
|
||||
galego.lang
|
||||
greek.lang
|
||||
hebrew.lang
|
||||
islenska.lang
|
||||
italiano.lang
|
||||
magyar.lang
|
||||
nederlands.lang
|
||||
norsk.lang
|
||||
norsk-nynorsk.lang
|
||||
polski.lang
|
||||
portugues-brasileiro.lang
|
||||
portugues.lang
|
||||
romaneste.lang
|
||||
russian.lang
|
||||
slovenscina.lang
|
||||
svenska.lang
|
||||
tagalog.lang
|
||||
turkce.lang
|
||||
wallisertitsch.lang
|
||||
#endif /* HAVE_LCD_BITMAP */
|
||||
Loading…
Add table
Add a link
Reference in a new issue