summaryrefslogtreecommitdiff
path: root/apps/plugins/tagcache/tagcache.make
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-10-04 08:51:10 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2023-10-05 21:24:37 -0400
commit1ed640da24eb97255328c4498035ba524f6265fc (patch)
treee89771f51a031cc114d36f6dd9c261b04cd4667d /apps/plugins/tagcache/tagcache.make
parent6634a60bf0750159ffc34bdff548fac0817e72bc (diff)
downloadrockbox-1ed640da24eb97255328c4498035ba524f6265fc.tar.gz
rockbox-1ed640da24eb97255328c4498035ba524f6265fc.zip
[Feature] db_commit plugin allows a more verbose commit
prints logf messages to the screen buffer and dumps the output to .rockbox/db_commit_log.txt logs warnings about tags that can't be displayed by the current font adds an option to the tagcache using the file .rockbox/database_commit.ignore to prevent auto commit Change-Id: Ib381b3b6d9dd19d76c95d0e87e605f7378e29674
Diffstat (limited to 'apps/plugins/tagcache/tagcache.make')
-rw-r--r--apps/plugins/tagcache/tagcache.make30
1 files changed, 30 insertions, 0 deletions
diff --git a/apps/plugins/tagcache/tagcache.make b/apps/plugins/tagcache/tagcache.make
new file mode 100644
index 0000000000..5d6d65cb0e
--- /dev/null
+++ b/apps/plugins/tagcache/tagcache.make
@@ -0,0 +1,30 @@
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10TCPLUG_SRCDIR := $(APPSDIR)/plugins/tagcache
11TCPLUG_BUILDDIR := $(BUILDDIR)/apps/plugins/tagcache
12
13ROCKS += $(TCPLUG_BUILDDIR)/db_commit.rock
14
15TCPLUG_FLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-unused \
16 -I$(TCPLUG_SRCDIR) -ffunction-sections \
17 -fdata-sections -Wl,--gc-sections
18TCPLUG_SRC := $(call preprocess, $(TCPLUG_SRCDIR)/SOURCES)
19TCPLUG_OBJ := $(call c2obj, $(TCPLUG_SRC))
20
21# add source files to OTHER_SRC to get automatic dependencies
22OTHER_SRC += $(APPSDIR)/tagcache.c $(TCPLUG_SRC)
23
24$(TCPLUG_BUILDDIR)/db_commit.rock: $(TCPLUG_OBJ)
25
26# special pattern rule for compiling with extra flags
27$(TCPLUG_BUILDDIR)/%.o: $(TCPLUG_SRCDIR)/%.c $(TCPLUG_SRCDIR)/tagcache.make
28 $(SILENT)mkdir -p $(dir $@)
29 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(TCPLUG_FLAGS) -c $< -o $@
30