rockbox/lib/utf8proc/utf8proc.make
Solomon Peachy 4209170cb7 utf8proc: Add utf8proc for normalizing UTF-8 strings
Due to the unicode data tables, this is a pretty large library,
adding ~340K to the binary size (ie a 50% increase on some targets)

Note that nothing in-tree actually _uses_ utf8proc yet.  The plan:

 1) In the metadata parser, fully normalize+compose all strings.
 2) When looking up font glyphs, if we do not find an exact
    match for the codepoint, try to decompose and render the result.
 3) Normalize all filenames as we read them, ie before we store them
    in lists or compare filenames/pathnames.
 4) Use utf8proc for casefolding-aware sorting (on native devices)

Change-Id: I2252cee3e7891d12ff37867231aa2c20353f857b
2026-03-01 08:26:00 -05:00

24 lines
788 B
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
#
UTF8PROC_DIR := $(ROOTDIR)/lib/utf8proc
UTF8PROC_SRC := $(UTF8PROC_DIR)/utf8proc.c
UTF8PROC_OBJ := $(call c2obj, $(UTF8PROC_SRC))
OTHER_SRC += $(UTF8PROC_SRC)
LIBUTF8PROC = $(BUILDDIR)/lib/libutf8proc.a
CORE_LIBS += $(LIBUTF8PROC)
INCLUDES += -I$(UTF8PROC_DIR)
DEFINES += -DUTF8PROC_EXPORTS
$(LIBUTF8PROC): $(UTF8PROC_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null