summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-02-13 21:39:23 +0100
committerChristian <zerov83@gmail.com>2016-02-13 21:39:23 +0100
commit96a27aa661e2e5562dd9fac1b8eadf0304f92da1 (patch)
tree37d5ba75017552e71524be02c563aa97311b83ff /Makefile
parent63f30c89b51e54301d5dbfa981dc95e8f11af6c5 (diff)
downloadvdr-plugin-plex-96a27aa661e2e5562dd9fac1b8eadf0304f92da1.tar.gz
vdr-plugin-plex-96a27aa661e2e5562dd9fac1b8eadf0304f92da1.tar.bz2
define for compiling without libskindesiger.
Use 'make DISABLESKINDESIGNER=1'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 060e952..31fa4ca 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ LIBS += $(shell pkg-config --libs libskindesignerapi)
### Configuration (edit this for your needs)
CONFIG := #-DDEBUG # uncomment to build DEBUG
+DISABLESKINDESIGNER ?= 0
### The version number of this plugin (taken from the main source file):
@@ -59,10 +60,13 @@ PACKAGE = vdr-$(ARCHIVE)
SOFILE = libvdr-$(PLUGIN).so
### Includes and Defines (add further entries here):
-
+ifneq ($(DISABLESKINDESIGNER),1)
+CONFIG += -DSKINDESIGNER
INCLUDES += $(shell pkg-config --cflags libskindesignerapi)
DEFINES += -DLIBSKINDESIGNERAPIVERSION='"$(shell pkg-config --modversion libskindesignerapi)"'
+endif
+
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DPLUGIN='"$(PLUGIN)"' -D_GNU_SOURCE $(CONFIG) \
$(if $(GIT_REV), -DGIT_REV='"$(GIT_REV)"')
@@ -90,13 +94,16 @@ OBJS = $(PLUGIN).o \
Stream.o \
Media.o \
plexOsd.o \
- plexSdOsd.o \
+ device.o
+
+ifneq ($(DISABLESKINDESIGNER),1)
+OBJS += plexSdOsd.o \
viewGridNavigator.o \
browserGrid.o \
viewHeader.o \
detailView.o \
- pictureCache.o \
- device.o
+ pictureCache.o
+endif
SRCS = $(wildcard $(OBJS:.o=.c)) $(PLUGIN).cpp