[vlc-devel] commit: macosx: Use $suffix in Pre-Compile.sh, and install as requested by funman. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Apr 15 22:43:49 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr 15 22:43:39 2008 +0200| [d6164715d6897789de38ddb29ec458f2ce328a74]
macosx: Use $suffix in Pre-Compile.sh, and install as requested by funman.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d6164715d6897789de38ddb29ec458f2ce328a74
---
projects/macosx/framework/Pre-Compile.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/projects/macosx/framework/Pre-Compile.sh b/projects/macosx/framework/Pre-Compile.sh
index 15c3369..fe50324 100644
--- a/projects/macosx/framework/Pre-Compile.sh
+++ b/projects/macosx/framework/Pre-Compile.sh
@@ -92,17 +92,18 @@ if test "${ACTION}" = "build"; then
if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then
prefix=".libs/"
install_library "${VLC_BUILD_DIR}/src/${prefix}vlc" "${target}" "bin" "@loader_path/lib"
- mv ${target}/vlc ${target}/VLC
- chmod +x ${target}/VLC
+ install ${target}/vlc ${target}/VLC
+ suffix="dylib"
else
prefix=""
+ suffix="so"
fi
##########################
# Build the modules folder (Same as VLCKit.framework/modules in Makefile)
echo "Building modules folder..."
# Figure out what modules are available to install
- for module in `find ${VLC_BUILD_DIR}/modules -name *.so` ; do
+ for module in `find ${VLC_BUILD_DIR}/modules -name *.${suffix}` ; do
# Check to see that the reported module actually exists
if test -n ${module}; then
install_library ${module} ${target_modules} "module"
More information about the vlc-devel
mailing list