[vlc-devel] commit: macosx/framework: Include 'vlc' executable in the Framework. It' s no real use, but its always useful. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Dec 17 03:13:36 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 17 03:13:01 2009 +0100| [d0fcff40e368b13ebf9649882c68e89355d85bd3] | committer: Pierre d'Herbemont
macosx/framework: Include 'vlc' executable in the Framework. It's no real use, but its always useful.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0fcff40e368b13ebf9649882c68e89355d85bd3
---
projects/macosx/framework/Pre-Compile.sh | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/projects/macosx/framework/Pre-Compile.sh b/projects/macosx/framework/Pre-Compile.sh
index 922755c..1dc48bc 100644
--- a/projects/macosx/framework/Pre-Compile.sh
+++ b/projects/macosx/framework/Pre-Compile.sh
@@ -66,8 +66,12 @@ if test "${ACTION}" = "build"; then
mkdir -p ${2}
# Lets copy the library from the source folder to our new destination folder
- install -m 644 ${1} ${lib_dest}
-
+ if [ "${3}" != "bin" ]; then
+ install -m 644 ${1} ${lib_dest}
+ else
+ install -m 755 ${1} ${lib_dest}
+ fi
+
# Update the dynamic library so it will know where to look for the other libraries
echo "Installing ${3} `basename ${lib_dest}`"
@@ -108,6 +112,8 @@ if test "${ACTION}" = "build"; then
install_library "${VLC_BUILD_DIR}/projects/mozilla/${prefix}npvlc.${suffix}" "${target}" "library" "@loader_path/lib"
mv ${target}/npvlc.${suffix} "${target}/VLC Plugin"
chmod +x "${target}/VLC Plugin"
+ else
+ install_library "${VLC_BUILD_DIR}/bin/${prefix}vlc" "${target}/bin" "bin" "@loader_path/../lib"
fi
##########################
@@ -136,6 +142,7 @@ if test "${ACTION}" = "build"; then
ln -sf Versions/Current/${modules} .
ln -sf Versions/Current/${include} .
ln -sf Versions/Current/${share} .
+ ln -sf Versions/Current/bin .
popd > /dev/null
fi
More information about the vlc-devel
mailing list