vlc-config.in.in: added a new "external" target that allow external projects

to link with a make installed libvlc
This commit is contained in:
Sigmund Augdal Helberg 2004-12-09 15:27:48 +00:00
parent 6c733713f9
commit 62d71fe1d2
1 changed files with 19 additions and 1 deletions

View File

@ -202,6 +202,10 @@ while test $# -gt 0; do
;;
mozilla)
;;
external)
echo_external=yes
ldflags="${ldflags} -lvlc"
;;
*)
module="$1"
;;
@ -293,6 +297,20 @@ if test "${echo_libs}" = yes; then
for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done
fi
fi
if test "${echo_external}" = yes; then
if test "${echo_pic}" = yes; then
for module in `echo "${builtins}"`; do
ldflags="${ldflags} @libdir@/vlc/lib${module}_pic.a"
done
else
for module in `echo "${builtins}"`; do
ldflags="${ldflags} @libdir@/vlc/lib${module}.a"
done
fi
for module in `echo "${builtins}"`; do
register_flags "${module}"
done
register_flags "vlc"
fi
echo "${libs} ${ldflags}"
fi