mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-26 10:50:06 +02:00
add shell for libwebpextras
meant to contain additional utility functions useful in processing webp input/output. Change-Id: I014ae6b917d62e826aa23a3bbe99aac4462a97c2
This commit is contained in:
13
src/extras/Makefile.am
Normal file
13
src/extras/Makefile.am
Normal 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
23
src/extras/extras.c
Normal 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;
|
||||
}
|
11
src/extras/libwebpextras.pc.in
Normal file
11
src/extras/libwebpextras.pc.in
Normal 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
|
Reference in New Issue
Block a user