A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 61 lines 2.6 kB view raw
1# __________ __ ___. 2# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 4# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 5# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 6# \/ \/ \/ \/ \/ 7# $Id$ 8# 9 10PBMPINCDIR = $(BUILDDIR)/pluginbitmaps 11 12PFLAGS += -I$(PBMPINCDIR) 13 14ifneq ($(strip $(BMP2RB_MONO)),) 15PBMP = $(call preprocess, $(APPSDIR)/plugins/bitmaps/mono/SOURCES) 16endif 17ifneq ($(strip $(BMP2RB_NATIVE)),) 18PBMP += $(call preprocess, $(APPSDIR)/plugins/bitmaps/native/SOURCES) 19endif 20ifneq ($(strip $(BMP2RB_REMOTEMONO)),) 21PBMP += $(call preprocess, $(APPSDIR)/plugins/bitmaps/remote_mono/SOURCES) 22endif 23ifneq ($(strip $(BMP2RB_REMOTENATIVE)),) 24PBMP += $(call preprocess, $(APPSDIR)/plugins/bitmaps/remote_native/SOURCES) 25endif 26 27ifdef PBMP # does player use bitmaps? 28 29PBMP_BUILD := $(call full_path_subst,$(ROOTDIR)/%,$(BUILDDIR)/%,$(PBMP)) 30 31PLUGIN_BITMAPS := $(PBMP_BUILD:%.bmp=%.o) 32 33PLUGINBITMAPLIB := $(BUILDDIR)/apps/plugins/bitmaps/libpluginbitmaps.a 34PLUGINBITMAPDIR := $(dir $(PLUGINBITMAPLIB)) 35 36PBMPHFILES := $(shell echo $(PBMP_BUILD) | sed -e 's/\.[0-9x]*\.bmp/.h/g' -e 's/\.bmp/.h/g' | awk "{ gsub(/apps\/plugins\/bitmaps\/(mono|native|remote_mono|remote_native)/, \"pluginbitmaps\"); print }" ) 37 38$(PBMPHFILES): $(PLUGIN_BITMAPS) 39 40$(PLUGINBITMAPLIB): $(PLUGIN_BITMAPS) 41 $(SILENT)$(shell rm -f $@) 42 $(call PRINTS,AR $(@F))$(AR) rcs $@ $+ >/dev/null 43 44# pattern rules to create .c files from .bmp, one for each subdir: 45$(BUILDDIR)/apps/plugins/bitmaps/mono/%.c: $(ROOTDIR)/apps/plugins/bitmaps/mono/%.bmp $(TOOLSDIR)/bmp2rb 46 $(SILENT)mkdir -p $(dir $@) $(PBMPINCDIR) 47 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_MONO) -b -h $(PBMPINCDIR) $< > $@ 48 49$(BUILDDIR)/apps/plugins/bitmaps/native/%.c: $(ROOTDIR)/apps/plugins/bitmaps/native/%.bmp $(TOOLSDIR)/bmp2rb 50 $(SILENT)mkdir -p $(dir $@) $(PBMPINCDIR) 51 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_NATIVE) -b -h $(PBMPINCDIR) $< > $@ 52 53$(BUILDDIR)/apps/plugins/bitmaps/remote_mono/%.c: $(ROOTDIR)/apps/plugins/bitmaps/remote_mono/%.bmp $(TOOLSDIR)/bmp2rb 54 $(SILENT)mkdir -p $(dir $@) $(PBMPINCDIR) 55 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTEMONO) -b -h $(PBMPINCDIR) $< > $@ 56 57$(BUILDDIR)/apps/plugins/bitmaps/remote_native/%.c: $(ROOTDIR)/apps/plugins/bitmaps/remote_native/%.bmp $(TOOLSDIR)/bmp2rb 58 $(SILENT)mkdir -p $(dir $@) $(PBMPINCDIR) 59 $(call PRINTS,BMP2RB $(<F))$(BMP2RB_REMOTENATIVE) -b -h $(PBMPINCDIR) $< > $@ 60 61endif