From fe2b5632e0933394c28406e61097c6f28a1b6506 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 11 Jul 2014 18:04:48 +0200 Subject: avscale: Initial dummy build system --- Makefile | 3 ++- configure | 6 +++++- libavscale/Makefile | 7 +++++++ libavscale/avscale.c | 0 libavscale/version.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 libavscale/Makefile create mode 100644 libavscale/avscale.c create mode 100644 libavscale/version.h diff --git a/Makefile b/Makefile index 2c53a4151d..1d93688dfc 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ $(foreach VAR,$(SILENT),$(eval override $(VAR) = @$($(VAR)))) $(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_PATH)/%=%)); $(INSTALL)) endif -ALLFFLIBS = avcodec avdevice avfilter avformat avresample avutil swscale +ALLFFLIBS = avcodec avdevice avfilter avformat avresample avscale avutil swscale IFLAGS := -I. -I$(SRC_PATH) CPPFLAGS := $(IFLAGS) $(CPPFLAGS) @@ -91,6 +91,7 @@ FFLIBS-$(CONFIG_AVFILTER) += avfilter FFLIBS-$(CONFIG_AVFORMAT) += avformat FFLIBS-$(CONFIG_AVCODEC) += avcodec FFLIBS-$(CONFIG_AVRESAMPLE) += avresample +FFLIBS-$(CONFIG_AVSCALE) += avscale FFLIBS-$(CONFIG_SWSCALE) += swscale FFLIBS := avutil diff --git a/configure b/configure index 40bf7255bd..31ce56eb25 100755 --- a/configure +++ b/configure @@ -116,6 +116,7 @@ Component options: --disable-avdevice disable libavdevice build --disable-avcodec disable libavcodec build --disable-avformat disable libavformat build + --disable-avscale disable libavscale build --disable-avutil disable libavutil build --disable-swscale disable libswscale build --disable-avfilter disable video filter support [no] @@ -1247,6 +1248,7 @@ LIBRARY_LIST=" avfilter avformat avresample + avscale avutil swscale " @@ -2324,6 +2326,7 @@ avdevice_deps="avformat avcodec avutil" avfilter_deps="avutil" avformat_deps="avcodec avutil" avresample_deps="avutil" +avscale_deps="avutil" swscale_deps="avutil" # programs @@ -4620,7 +4623,7 @@ check_disable_warning -Wno-pointer-sign # add some linker flags check_ldflags -Wl,--warn-common -check_ldflags -Wl,-rpath-link=libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample +check_ldflags -Wl,-rpath-link=libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample:libavscale enabled rpath && add_ldexeflags -Wl,-rpath,$libdir test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic @@ -5183,5 +5186,6 @@ pkgconfig_generate libavcodec "Libav codec library" "$LIBAVCODEC_V pkgconfig_generate libavformat "Libav container format library" "$LIBAVFORMAT_VERSION" "$extralibs" pkgconfig_generate libavdevice "Libav device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" pkgconfig_generate libavfilter "Libav video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" +pkgconfig_generate libavscale "Libav image rescaling library" "$LIBAVSCALE_VERSION" "$LIBM" pkgconfig_generate libavresample "Libav audio resampling library" "$LIBAVRESAMPLE_VERSION" "$LIBM" pkgconfig_generate libswscale "Libav image rescaling library" "$LIBSWSCALE_VERSION" "$LIBM" diff --git a/libavscale/Makefile b/libavscale/Makefile new file mode 100644 index 0000000000..bae67043ab --- /dev/null +++ b/libavscale/Makefile @@ -0,0 +1,7 @@ +NAME = avscale + +HEADERS = avscale.h + +OBJS = avscale.o \ + utils.o \ + diff --git a/libavscale/avscale.c b/libavscale/avscale.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libavscale/version.h b/libavscale/version.h new file mode 100644 index 0000000000..3e9f76878a --- /dev/null +++ b/libavscale/version.h @@ -0,0 +1,50 @@ +/* + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * Libav is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Libav; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVSCALE_VERSION_H +#define AVSCALE_VERSION_H + +/** + * @file + * @ingroup lavs + * Libavscale version macros. + */ + +#include "libavutil/version.h" + +#define LIBAVSCALE_VERSION_MAJOR 1 +#define LIBAVSCALE_VERSION_MINOR 0 +#define LIBAVSCALE_VERSION_MICRO 0 + +#define LIBAVSCALE_VERSION_INT AV_VERSION_INT(LIBAVSCALE_VERSION_MAJOR, \ + LIBAVSCALE_VERSION_MINOR, \ + LIBAVSCALE_VERSION_MICRO) +#define LIBAVSCALE_VERSION AV_VERSION(LIBAVSCALE_VERSION_MAJOR, \ + LIBAVSCALE_VERSION_MINOR, \ + LIBAVSCALE_VERSION_MICRO) +#define LIBAVSCALE_BUILD LIBAVSCALE_VERSION_INT + +#define LIBAVSCALE_IDENT "Lavs" AV_STRINGIFY(LIBAVSCALE_VERSION) + +/** + * FF_API_* defines may be placed below to indicate public API that will be + * dropped at a future version bump. The defines themselves are not part of + * the public API and may change, break or disappear at any time. + */ + +#endif /* AVSCALE_VERSION_H */ -- cgit v1.2.3