Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Travis CI integration #1

Merged
merged 3 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 33 additions and 4 deletions.
  1. +25 −0 .travis.yml
  2. +4 −2 Makefile
  3. +4 −2 examples/Makefile
View
25 .travis.yml
@@ -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
6 Makefile
@@ -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
6 examples/Makefile
@@ -1,6 +1,8 @@
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))
@@ -8,7 +10,7 @@ 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
Something went wrong with that request. Please try again.