Skip to content

Commit

Permalink
pkg-config support to libvlc-control
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Denis-Courmont <[email protected]>
  • Loading branch information
Rémi Denis-Courmont committed Mar 2, 2008
1 parent 132bf65 commit f8c4e77
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.mak
*.moc.cpp
*.o
*.pc
*.vlt
.deps
.libs
Expand Down
12 changes: 12 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ modules/modules.c: modules/builtin.h
echo ";" >> "$@.tmp"
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
###############################################################################
Expand Down
11 changes: 11 additions & 0 deletions src/vlc-control.pc.in
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8c4e77

Please sign in to comment.