added xrick game

original xrick code by 'BigOrno' at:
http://www.bigorno.net/xrick/

Rockbox port, plus bugfixes at:
https://github.com/pierluigi-vicinanza/xrick

Further changes:

 * Additonal fixes from g#3026
 * Port to modern plugin API
 * Add Pluginlib keymap fallback
 * Support all >1bpp screens
 * Fix build warnings in miniz
 * Better error message when resources are missing

Change-Id: Id83928bc2539901b0221692f65cbca41389c58e7
This commit is contained in:
Sebastian Leonhardt 2016-01-08 01:05:36 +01:00 committed by Solomon Peachy
parent 6f1e67e5e3
commit 102c374248
88 changed files with 16514 additions and 62 deletions

View file

@ -0,0 +1,31 @@
# __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/
# $Id$
#
XRICKSRCDIR := $(APPSDIR)/plugins/xrick
XRICKBUILDDIR := $(BUILDDIR)/apps/plugins/xrick
INCLUDES += -I$(XRICKSRCDIR)../ \
-I$(XRICKSRCDIR)/3rd_party
ROCKS += $(XRICKBUILDDIR)/xrick.rock
XRICK_SRC := $(call preprocess, $(XRICKSRCDIR)/SOURCES)
XRICK_OBJ := $(call c2obj, $(XRICK_SRC))
# add source files to OTHER_SRC to get automatic dependencies
OTHER_SRC += $(XRICK_SRC)
XRICKCFLAGS = $(PLUGINFLAGS) -std=gnu99 -O2
$(XRICKBUILDDIR)/xrick.rock: $(XRICK_OBJ)
# new rule needed to use extra compile flags
$(XRICKBUILDDIR)/%.o: $(XRICKSRCDIR)/%.c
$(SILENT)mkdir -p $(dir $@)
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(XRICKCFLAGS) -c $< -o $@