]> git.sesse.net Git - vlc/commitdiff
vlc-config.in.in: added a new "external" target that allow external projects
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 9 Dec 2004 15:27:48 +0000 (15:27 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 9 Dec 2004 15:27:48 +0000 (15:27 +0000)
to link with a make installed libvlc

vlc-config.in.in

index 9353452392974230f44f7ce7330a8dc59f52cf00..241081853e6ce68769e8e5702a15e83482934251 100644 (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
-