A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6# \/ \/ \/ \/ \/
7# $Id$
8#
9
10PICTUREFLOW_SRCDIR = $(APPSDIR)/plugins/pictureflow
11PICTUREFLOW_OBJDIR = $(BUILDDIR)/apps/plugins/pictureflow
12
13PICTUREFLOW_SRC := $(call preprocess, $(PICTUREFLOW_SRCDIR)/SOURCES)
14PICTUREFLOW_OBJ := $(call c2obj, $(PICTUREFLOW_SRC))
15
16OTHER_SRC += $(PICTUREFLOW_SRC)
17
18ifndef APP_TYPE
19 ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.rock
20else
21 ### simulator
22 ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.rock
23endif
24
25PICTUREFLOWFLAGS = $(filter-out -O%,$(PLUGINFLAGS)) -O2
26
27$(PICTUREFLOW_OBJDIR)/pictureflow.rock: $(PICTUREFLOW_OBJ)
28
29$(PICTUREFLOW_OBJDIR)/pictureflow.refmap: $(PICTUREFLOW_OBJ)
30
31$(PICTUREFLOW_OUTLDS): $(PLUGIN_LDS) $(PICTUREFLOW_OBJDIR)/pictureflow.refmap
32 $(call PRINTS,PP $(@F))$(call preprocess2file,$<,$@,-DPLUGIN -DOVERLAY_OFFSET=$(shell \
33 $(TOOLSDIR)/ovl_offset.pl $(PICTUREFLOW_OBJDIR)/pictureflow.refmap))
34
35$(PICTUREFLOW_OBJDIR)/pictureflow.ovl: $(PICTUREFLOW_OBJ) $(PICTUREFLOW_OUTLDS)
36 $(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
37 $(filter %.o, $^) \
38 $(filter %.a, $+) \
39 -lgcc $(PICTUREFLOW_OVLFLAGS)
40 $(call PRINTS,LD $(@F))$(call objcopy_plugin,$(basename $@).elf,$@)
41
42# special pattern rule for compiling pictureflow with extra flags
43$(PICTUREFLOW_OBJDIR)/%.o: $(PICTUREFLOW_SRCDIR)/%.c $(PICTUREFLOW_SRCDIR)/pictureflow.make
44 $(SILENT)mkdir -p $(dir $@)
45 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PICTUREFLOWFLAGS) -c $< -o $@