From 5c271cdae60c9711fb100a544d2b014a777c3408 Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Sat, 19 Jul 2025 22:53:49 -0300 Subject: adding a simple example --- example/Makefile.am | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'example/Makefile.am') diff --git a/example/Makefile.am b/example/Makefile.am index a30c12e..fc520f7 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -1,12 +1,21 @@ if EXAMPLES -noinst_PROGRAMS = decode_resize_encode +noinst_PROGRAMS = simple +simple_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/../src +simple_LDADD = ../src/libtuberia.a +simple_LDFLAGS = -lpthread +simple_SOURCES = simple.c + +if HAS_FFMPEG +noinst_PROGRAMS += decode_resize_encode decode_resize_encode_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/../src decode_resize_encode_LDADD = ../src/libtuberia.a decode_resize_encode_LDFLAGS = -lpthread -lavcodec -lavformat -lavutil -lswscale decode_resize_encode_SOURCES = decode_resize_encode.c endif +endif + exampledir = $(docdir)/example -example_DATA = decode_resize_encode.c +example_DATA = simple.c decode_resize_encode.c -- cgit v1.2.3