Commit b462cd7e authored by Scott Deboy's avatar Scott Deboy

Replace --no-delibtoolize with --disable-libtool [true/false] and --libtool-only flags.

--disable-libtool true/false will update the -uninstalled.pc files to specify .so or .la files, respectively
--disable-libtool true is the default

If --libtool-only is passed, .pc files are updated but the build is not performed.
parent 8f63e9fc
#!/bin/bash -e
function deLibToolize {
if $1 ; then
echo "Replacing .la references with .so in *-uninstalled.pc files to make WebKit builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\(libgst.\+\).la$/\.libs\/\1\.so/' {} \;
else
echo "Replacing .so references with .la in *-uninstalled.pc files to make CVP2 builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\.libs\/\(libgst.\+\).so$/\1\.la/' {} \;
fi
}
function setBranch {
local result="${DEFAULT_BRANCH}"
......@@ -21,7 +31,9 @@ function setBranch {
}
unset DEFAULT_BRANCH
DELIBTOOLIZE=true
LIBTOOL_CHANGE_ONLY=false
INSTALL_DEPS=true
RECONFIGURE=false
UPDATE_MODULES=true
......@@ -34,19 +46,32 @@ errors=
while true; do
case "$1" in
-h | --help )
echo "usage: $0 [-h | --help ] [-v | --verbose] [--no-update] [--no-deps] [--upstream] [--introspection]"
echo "usage: $0 [-h | --help ] [--branch (branch name)] [--disable-libtool (true|false)] [--libtool-only] [--introspection] [--no-update] [--no-deps] [--reconfigure] [--upstream]"
echo " "
echo " -h | --help Print this help message."
echo " -v | --verbose Verbose build output."
echo " --branch [branch] The branch to check out."
echo " --no-delibtoolize Don't alter pkg-config files to remove libtool dependency."
echo " --disable-libtool [true/false] (default: true) - if true, .la "
echo " references in *-uninstalled.pc files are "
echo " replaced with .so references, allowing QtWebKit "
echo " to be built. If false, .so references in "
echo " *-uninstalled.pc files are replaced with .la"
echo " references, allowing CVP2 and Rygel to be built."
echo " --libtool-only modify pkg-config files based on "
echo " the --disable-libtool parameter value, will not"
echo " build or install dependencies"
echo " --introspection Enable introspection (required for CVP2 "
echo " and Rygel builds)"
echo " --no-update Don't pull and rebase before building."
echo " --no-deps Don't install dependencies before building."
echo " --reconfigure Force a reconfigure, even if a Makefile already exists."
echo " --upstream Clone from upstream where possible, instead of our repos (you probably don't want to do this)."
echo " --introspection Enable introspection"
echo " --upstream Clone from upstream where possible, instead of "
echo " our repos (you probably don't want to do this)."
exit;;
-v | --verbose ) VERBOSE=true; shift ;;
--branch ) shift; DEFAULT_BRANCH=$1 ; shift ;;
--no-delibtoolize ) DELIBTOOLIZE=false ; shift ;;
--disable-libtool ) shift; DELIBTOOLIZE=$1 ; shift ;;
--libtool-only ) LIBTOOL_CHANGE_ONLY=true ; shift ;;
--no-update ) UPDATE_MODULES=false; shift ;;
--no-deps ) INSTALL_DEPS=false; shift ;;
--reconfigure ) RECONFIGURE=true; shift ;;
......@@ -57,6 +82,11 @@ while true; do
esac
done
if $LIBTOOL_CHANGE_ONLY ; then
deLibToolize $DELIBTOOLIZE
exit
fi
# List all modules to setup
GST_MODULES=(orc gstreamer gst-plugins-{base,good,bad,ugly} gst-libav gst-plugins-dlnasrc gst-plugins-dtcpip gst-cablelabs-ruih-test)
......@@ -129,7 +159,7 @@ name=${PWD##*/}
# Restore libtoolized pkgconfig files
echo Restoring libtoolized pkgconfig files
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\.libs\/\(libgst.\+\).so$/\1\.la/' {} \;
deLibToolize false
for module in ${GST_MODULES[@]} ; do
unset MODULE_BRANCH
......@@ -225,8 +255,7 @@ done
# De-libtoolize to make these link against WebKit
if $DELIBTOOLIZE ; then
echo "De-libtoolizing to make WebKit builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\(libgst.\+\).la$/\.libs\/\1\.so/' {} \;
deLibToolize true
fi
echo "Build successful!"
......
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