Move the skin parser to a seperate library
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26877 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ca564287ee
commit
36b934d241
11 changed files with 45 additions and 12 deletions
28
lib/skin_parser/Makefile
Normal file
28
lib/skin_parser/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# __________ __ ___.
|
||||||
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||||
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||||
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||||
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||||
|
# \/ \/ \/ \/ \/
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
BUILDDIR ?= .
|
||||||
|
|
||||||
|
SRC = skin_parser.c skin_debug.c skin_scan.c tag_table.c
|
||||||
|
OBJ := $(patsubst %.c,$(BUILDDIR)/%.o,$(SRC))
|
||||||
|
OUT = $(BUILDDIR)/libskin_parser.a
|
||||||
|
CC = gcc
|
||||||
|
AR = ar
|
||||||
|
INCLUDES = -I.
|
||||||
|
|
||||||
|
default: $(OUT)
|
||||||
|
|
||||||
|
$(BUILDDIR)/%.o: %.c
|
||||||
|
$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
$(OUT): $(OBJ)
|
||||||
|
$(AR) rcs $(OUT) $(OBJ)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(OBJ) $(OUT)
|
|
@ -5,17 +5,26 @@ UI_DIR = $$MYBUILDDIR/ui
|
||||||
MOC_DIR = $$MYBUILDDIR/moc
|
MOC_DIR = $$MYBUILDDIR/moc
|
||||||
RCC_DIR = $$MYBUILDDIR/rcc
|
RCC_DIR = $$MYBUILDDIR/rcc
|
||||||
|
|
||||||
|
RBBASE_DIR = $$_PRO_FILE_PWD_
|
||||||
|
RBBASE_DIR = $$replace(RBBASE_DIR,/utils/themeeditor,)
|
||||||
|
|
||||||
#Include directories
|
#Include directories
|
||||||
INCLUDEPATH += gui
|
INCLUDEPATH += gui
|
||||||
INCLUDEPATH += parser
|
|
||||||
INCLUDEPATH += models
|
INCLUDEPATH += models
|
||||||
|
|
||||||
HEADERS += parser/tag_table.h \
|
|
||||||
parser/symbols.h \
|
# Stuff for the parse lib
|
||||||
parser/skin_parser.h \
|
libskin_parser.commands = @$(MAKE) \
|
||||||
parser/skin_scan.h \
|
BUILDDIR=$$OBJECTS_DIR -C $$RBBASE_DIR/lib/skin_parser CC=\"$$QMAKE_CC\"
|
||||||
parser/skin_debug.h \
|
QMAKE_EXTRA_TARGETS += libskin_parser
|
||||||
models/parsetreemodel.h \
|
PRE_TARGETDEPS += libskin_parser
|
||||||
|
INCLUDEPATH += $$RBBASE_DIR/lib/skin_parser
|
||||||
|
LIBS += -L$$OBJECTS_DIR -lskin_parser
|
||||||
|
|
||||||
|
|
||||||
|
DEPENDPATH = $$INCLUDEPATH
|
||||||
|
|
||||||
|
HEADERS += models/parsetreemodel.h \
|
||||||
models/parsetreenode.h \
|
models/parsetreenode.h \
|
||||||
gui/editorwindow.h \
|
gui/editorwindow.h \
|
||||||
gui/skinhighlighter.h \
|
gui/skinhighlighter.h \
|
||||||
|
@ -26,11 +35,7 @@ HEADERS += parser/tag_table.h \
|
||||||
gui/tabcontent.h \
|
gui/tabcontent.h \
|
||||||
gui/configdocument.h \
|
gui/configdocument.h \
|
||||||
gui/skinviewer.h
|
gui/skinviewer.h
|
||||||
SOURCES += parser/tag_table.c \
|
SOURCES += main.cpp \
|
||||||
parser/skin_parser.c \
|
|
||||||
parser/skin_scan.c \
|
|
||||||
parser/skin_debug.c \
|
|
||||||
main.cpp \
|
|
||||||
models/parsetreemodel.cpp \
|
models/parsetreemodel.cpp \
|
||||||
models/parsetreenode.cpp \
|
models/parsetreenode.cpp \
|
||||||
gui/editorwindow.cpp \
|
gui/editorwindow.cpp \
|
||||||
|
|
Loading…
Reference in a new issue