[vlc-devel] Rémi Denis-Courmont : pkg-config support to libvlc-control
git version control
git at videolan.org
Sun Mar 2 19:02:41 CET 2008
Module: vlc
Branch: master
Commit: f8c4e779ab99f83ab0494a2ce3a2a9960dafcbf4
URL: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8c4e779ab99f83ab0494a2ce3a2a9960dafcbf4
Author: Rémi Denis-Courmont <rem at videolan.org>
Date: Sun Mar 2 20:02:34 2008 +0200
pkg-config support to libvlc-control
Signed-off-by: Rémi Denis-Courmont <rem at videolan.org>
---
.gitignore | 1 +
src/Makefile.am | 12 ++++++++++++
src/vlc-control.pc.in | 11 +++++++++++
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
index a9e4343..0d78070 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@
*.mak
*.moc.cpp
*.o
+*.pc
*.vlt
.deps
.libs
diff --git a/src/Makefile.am b/src/Makefile.am
index 2522824..ff4b1ac 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -130,6 +130,18 @@ modules/modules.c: modules/builtin.h
mv -f -- "$@.tmp" "$@"
###############################################################################
+# pkg-config integration
+###############################################################################
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = vlc-control.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
+
+###############################################################################
# Building libvlc
###############################################################################
diff --git a/src/vlc-control.pc.in b/src/vlc-control.pc.in
new file mode 100644
index 0000000..5d60c2a
--- /dev/null
+++ b/src/vlc-control.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: LibVLC control API
+Description: VLC media player external control library
+Version: @VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lvlc-control
+Libs.private: -lvlc
More information about the vlc-devel
mailing list