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

to link with a make installed libvlc
parent 6c733713
...@@ -202,6 +202,10 @@ while test $# -gt 0; do ...@@ -202,6 +202,10 @@ while test $# -gt 0; do
;; ;;
mozilla) mozilla)
;; ;;
external)
echo_external=yes
ldflags="${ldflags} -lvlc"
;;
*) *)
module="$1" module="$1"
;; ;;
...@@ -293,6 +297,20 @@ if test "${echo_libs}" = yes; then ...@@ -293,6 +297,20 @@ if test "${echo_libs}" = yes; then
for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done for target in `echo "${list}"`; do printf "${top_builddir}modules/${target}.a "; done
fi fi
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}" echo "${libs} ${ldflags}"
fi fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment