rockbox/tools/database/database.make
Solomon Peachy b6db69e7ef build: Move utf8proc build decision into configure script.
It is always enabled, except in the following situations:

 * bootloaders
 * warble or checkwps applications
 * devices with less than 4MB of RAM
 * imx233-based devices

imx233 is a special case; that will be backed out we figure out why
it fails to boot if the binary size exceeds 1MB.

Change-Id: If4a89e389f562bb5791a565fba99c830213473d3
2026-06-22 17:31:15 -04:00

36 lines
1.3 KiB
Makefile

# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
#
GCCOPTS += -g -DDEBUG -D__PCTOOL__ -DDBTOOL
METADATAS := $(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c)
DATABASE_SRC = $(call preprocess, $(TOOLSDIR)/database/SOURCES) $(METADATAS)
DATABASE_OBJ = $(call c2obj,$(DATABASE_SRC))
OTHER_SRC += $(DATABASE_SRC)
INCLUDES += -I$(ROOTDIR)/apps/gui \
-I$(FIRMDIR)/kernel/include \
-I$(ROOTDIR)/firmware/export \
-I$(ROOTDIR)/firmware/include \
-I$(ROOTDIR)/apps \
-I$(ROOTDIR)/apps/recorder \
-I$(ROOTDIR)/lib/rbcodec \
-I$(ROOTDIR)/lib/rbcodec/metadata \
-I$(ROOTDIR)/lib/rbcodec/dsp \
-I$(APPSDIR) \
-I$(BUILDDIR)
OTHERLIBS := $(FIXEDPOINTLIB) $(LIBUTF8PROC)
.SECONDEXPANSION: # $$(OBJ) is not populated until after this
$(BUILDDIR)/$(BINARY): $$(DATABASE_OBJ) $(OTHERLIBS)
$(call PRINTS,LD $(BINARY))
$(SILENT)$(HOSTCC) $(call a2lnk $(OTHERLIBS)) -o $@ $+