summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-06 14:35:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-06 14:35:44 +0100
commit3ca88fb987fe95e0174e3586ea9f33021ebdde06 (patch)
tree8e0aeb20f20273221e994f7088e9b8e3be1fdcf9 /Makefile
parent13fe2afbddd19feef1516121a8279fe3ddf359bd (diff)
Integrate with cairo-cogl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d97aa20..22f084a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,15 @@ else
DEFINES+=-DHAVE_GLX=0
endif
+COGL:=$(shell pkg-config --exists cairo-gl && echo 1 || echo 0)
+ifneq ($(COGL),0)
+DEFINES+=-DHAVE_COGL=1
+SOURCES+=cogl.c
+REQUIRES+=cairo-cogl
+else
+DEFINES+=-DHAVE_COGL=0
+endif
+
all: spinner-demo spiral-demo slideshow-demo tiger-demo fish-demo flowers-demo gears-demo chart-demo
ifeq ($(shell pkg-config --exists poppler-glib && echo 1), 1)