add shell for libwebpextras

meant to contain additional utility functions useful in processing webp
input/output.

Change-Id: I014ae6b917d62e826aa23a3bbe99aac4462a97c2
This commit is contained in:
James Zern
2015-03-05 23:48:46 -08:00
parent 44bd95612e
commit 5c176d2d9b
6 changed files with 99 additions and 4 deletions

13
src/extras/Makefile.am Normal file
View File

@ -0,0 +1,13 @@
lib_LTLIBRARIES = libwebpextras.la
libwebpextras_la_SOURCES =
libwebpextras_la_SOURCES += extras.c
libwebpextrasinclude_HEADERS =
libwebpextrasinclude_HEADERS += ../webp/extras.h
libwebpextrasinclude_HEADERS += ../webp/types.h
libwebpextras_la_LIBADD = ../libwebp.la
libwebpextras_la_LDFLAGS = -no-undefined -version-info 0:0:0
libwebpextrasincludedir = $(includedir)/webp
pkgconfig_DATA = libwebpextras.pc

23
src/extras/extras.c Normal file
View File

@ -0,0 +1,23 @@
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
// -----------------------------------------------------------------------------
//
// Additional WebP utilities.
//
#include "../webp/extras.h"
#define XTRA_MAJ_VERSION 0
#define XTRA_MIN_VERSION 0
#define XTRA_REV_VERSION 0
//------------------------------------------------------------------------------
int WebPGetExtrasVersion(void) {
return (XTRA_MAJ_VERSION << 16) | (XTRA_MIN_VERSION << 8) | XTRA_REV_VERSION;
}

View File

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libwebpextras
Description: Additional utility functions useful in processing WebP files
Version: @PACKAGE_VERSION@
Requires: libwebp >= 0.5.0
Cflags: -I${includedir}
Libs: -L${libdir} -lwebpextras