From 473906a052f21523a3fe450f4664f247f72b3d9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 19 Mar 2008 20:59:09 +0200 Subject: [PATCH] pkg-config for the plugin API (Don't expect this to work yet though) --- src/Makefile.am | 8 +++++++- src/vlc-plugin.pc.in | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/vlc-plugin.pc.in diff --git a/src/Makefile.am b/src/Makefile.am index e465c5923b..494aca4077 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,6 +10,8 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym vlc-control.pc.in BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h CLEANFILES = $(BUILT_SOURCES) +SUFFIXES = .pc.in .pc + ############################################################################### # Headers ############################################################################### @@ -134,13 +136,17 @@ modules/modules.c: modules/builtin.h ############################################################################### pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = vlc-control.pc +pkgconfig_DATA = vlc-control.pc vlc-plugin.pc CLEANFILES += $(pkgconfig_DATA) vlc-control.pc: vlc-control.pc.in $(top_builddir)/config.status cd $(top_builddir) && \ $(SHELL) ./config.status --file=src/vlc-control.pc +.pc.in.pc: $(top_builddir)/config.status + cd "$(top_builddir)" && \ + $(SHELL) ./config.status --file="src/$@" + ############################################################################### # Building libvlc ############################################################################### diff --git a/src/vlc-plugin.pc.in b/src/vlc-plugin.pc.in new file mode 100644 index 0000000000..6640bd9155 --- /dev/null +++ b/src/vlc-plugin.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: VLC plugin API +Description: VLC media player plugin interface +Version: @VERSION@ +Cflags: -I${includedir}/vlc/plugin \ + -D_FILE_OFFSET_BITS=64 \ + -D__USE_UNIX98 \ + -D_LARGEFILE64_SOURCE \ + -D_REENTRANT \ + -D_THREAD_SAFE +Libs: -L${libdir} -lvlc -- 2.39.5