mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-15 10:15:58 -07:00
Add Makefile.
This commit is contained in:
parent
805c26f53f
commit
ebe49d470c
2 changed files with 24 additions and 10 deletions
11
.travis.yml
11
.travis.yml
|
|
@ -17,16 +17,7 @@ cache:
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- >
|
- LIBWEBP_PERFIX=$HOME/cache/libwebp-${LIBWEBP_VERSION} && make libwebp
|
||||||
test -e $HOME/cache/libwebp-${LIBWEBP_VERSION}/lib/libwebp.so || (
|
|
||||||
cd /tmp
|
|
||||||
&& wget http://downloads.webmproject.org/releases/webp/libwebp-${LIBWEBP_VERSION}.tar.gz
|
|
||||||
&& tar xf libwebp-${LIBWEBP_VERSION}.tar.gz
|
|
||||||
&& cd libwebp-${LIBWEBP_VERSION}
|
|
||||||
&& ./configure --prefix=$HOME/cache/libwebp-${LIBWEBP_VERSION}
|
|
||||||
&& make
|
|
||||||
&& make install
|
|
||||||
)
|
|
||||||
- cd $HOME/gopath/src/github.com/harukasan/go-libwebp
|
- cd $HOME/gopath/src/github.com/harukasan/go-libwebp
|
||||||
- export CGO_CFLAGS="-I $HOME/cache/libwebp-${LIBWEBP_VERSION}/include"
|
- export CGO_CFLAGS="-I $HOME/cache/libwebp-${LIBWEBP_VERSION}/include"
|
||||||
- export CGO_LDFLAGS="-L $HOME/cache/libwebp-${LIBWEBP_VERSION}/lib"
|
- export CGO_LDFLAGS="-L $HOME/cache/libwebp-${LIBWEBP_VERSION}/lib"
|
||||||
|
|
|
||||||
23
Makefile
Normal file
23
Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
BUILDDIR=/tmp
|
||||||
|
WORKDIR=github.com/harukasan/go-libwebp
|
||||||
|
|
||||||
|
all: test
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test -v ${WORKDIR}/...
|
||||||
|
|
||||||
|
libwebp:
|
||||||
|
test -e ${LIBWEBP_PREFIX}/lib/libwebp.so || ( \
|
||||||
|
cd ${BUILDDIR} \
|
||||||
|
&& wget http://downloads.webmproject.org/releases/webp/libwebp-${LIBWEBP_VERSION}.tar.gz \
|
||||||
|
&& tar xf libwebp-${LIBWEBP_VERSION}.tar.gz \
|
||||||
|
&& cd libwebp-${LIBWEBP_VERSION} \
|
||||||
|
&& ./configure --prefix=${LIBWEBP_PREFIX} \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
)
|
||||||
|
|
||||||
|
.PHONY: \
|
||||||
|
all \
|
||||||
|
test
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue