Permalink
Browse files

Merge pull request #1 from strukturag/travisci-integration

Travis CI integration
  • Loading branch information...
2 parents ea241a0 + b86130f commit 150926cc9746833774978479af181e9c04485fd0 @fancycode fancycode committed Feb 20, 2014
Showing with 33 additions and 4 deletions.
  1. +25 −0 .travis.yml
  2. +4 −2 Makefile
  3. +4 −2 examples/Makefile
View
@@ -0,0 +1,25 @@
+# stats available at
+# https://travis-ci.org/strukturag/gstreamer-libde265/
+language: c
+compiler:
+ - clang
+ - gcc
+
+env:
+ - GSTREAMER=0.10
+ - GSTREAMER=1.0
+
+before_install:
+ - sudo add-apt-repository -y ppa:strukturag/libde265
+ - sh -c "if [ '$GSTREAMER' = '1.0' ]; then sudo add-apt-repository -y ppa:gstreamer-developers/ppa; fi"
+ - sudo apt-get update -qq
+ - sudo apt-get install -y libde265-dev gstreamer$GSTREAMER-tools libgstreamer$GSTREAMER-dev libgstreamer-plugins-base$GSTREAMER-dev libgstreamer-plugins-bad$GSTREAMER-dev
+ - sh -c "if [ '$GSTREAMER' = '1.0' ]; then sudo apt-get install -y libgstreamer-plugins-good$GSTREAMER-dev; fi"
+
+install:
+ - git clone https://github.com/strukturag/libde265-data.git
+
+script:
+ - make GSTREAMER_VERSION=$GSTREAMER
+ - LD_LIBRARY_PATH=`pwd` gst-codec-info-$GSTREAMER libgstlibde265.so
+ - gst-inspect-$GSTREAMER --gst-plugin-path=`pwd` libgstlibde265.so
View
@@ -20,7 +20,9 @@ MATROSKA_SOURCES:= \
src/matroska/matroska-read-common.c \
src/matroska/lzo.c
-CC:=gcc
+ifeq ($(origin CC), default)
+ CC := gcc
+endif
LDFLAGS_GSTREAMER:=$(shell pkg-config --libs gstreamer-video-$(GSTREAMER_VERSION))
CFLAGS_GSTREAMER:=$(shell pkg-config --cflags gstreamer-video-$(GSTREAMER_VERSION))
@@ -60,7 +62,7 @@ libgstlibde265.so: $(OBJS) $(MATROSKA_OBJS)
$(CC) -shared -o $@ $^ -g $(LDFLAGS)
examples:
- cd examples && make GSTREAMER_VERSION=$(GSTREAMER_VERSION)
+ cd examples && make GSTREAMER_VERSION=$(GSTREAMER_VERSION) CC=$(CC)
clean:
rm -f libgstlibde265.so $(OBJS) $(MATROSKA_OBJS)
View
@@ -1,14 +1,16 @@
GSTREAMER_VERSION:=0.10
-CC:=gcc
+ifeq ($(origin CC), default)
+ CC := gcc
+endif
CFLAGS_GSTREAMER:=$(shell pkg-config --cflags gstreamer-$(GSTREAMER_VERSION))
LDFLAGS_GSTREAMER:=$(shell pkg-config --libs gstreamer-$(GSTREAMER_VERSION))
all: playhevc
playhevc: playhevc.c
- gcc -g -o $@ $< $(CFLAGS_GSTREAMER) $(LDFLAGS_GSTREAMER)
+ $(CC) -g -o $@ $< $(CFLAGS_GSTREAMER) $(LDFLAGS_GSTREAMER)
clean:
rm -f playhevc

0 comments on commit 150926c

Please sign in to comment.