[vlc-devel] commit: pkg-config for the plugin API ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Mar 19 20:00:48 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed Mar 19 20:59:09 2008 +0200| [473906a052f21523a3fe450f4664f247f72b3d9e]

pkg-config for the plugin API

(Don't expect this to work yet though)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=473906a052f21523a3fe450f4664f247f72b3d9e
---

 src/Makefile.am      |    8 +++++++-
 src/vlc-plugin.pc.in |   15 +++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index e465c59..494aca4 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 0000000..6640bd9
--- /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




More information about the vlc-devel mailing list