Commit f9adddf1 authored by Rafaël Carré's avatar Rafaël Carré

OSX: build relocatable VLC.app by default

Use VLC-dev.app when developing and rebuilding frequently
(cherry picked from commit a80cde4d)

Conflicts:

	extras/package/macosx/package.mak
	projects/macosx/framework/Pre-Compile.sh
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 2528cb4f
...@@ -6,17 +6,17 @@ endif ...@@ -6,17 +6,17 @@ endif
endif endif
# This is just for development purposes. # This is just for development purposes.
# The resulting VLC.app will only run in this tree. # The resulting VLC-dev.app will only run in this tree.
VLC.app: VLC-tmp VLC-dev.app: VLC-tmp
rm -Rf $@ rm -Rf $@
cp -R VLC-tmp $@ cp -R VLC-tmp $@
$(INSTALL) -m 0755 $(top_builddir)/bin/.libs/vlc $@/Contents/MacOS/VLC $(INSTALL) -m 0755 $(top_builddir)/bin/.libs/vlc $@/Contents/MacOS/VLC
$(LN_S) -f ../../../modules $@/Contents/MacOS/plugins $(LN_S) -f ../../../modules $@/Contents/MacOS/plugins
rm -Rf VLC-tmp rm -Rf VLC-tmp
# VLC-release.app for packaging and giving it to your friends # VLC.app for packaging and giving it to your friends
# use package-macosx to get a nice dmg # use package-macosx to get a nice dmg
VLC-release.app: VLC-tmp VLC.app: VLC-tmp
rm -Rf $@ rm -Rf $@
cp -R VLC-tmp $@ cp -R VLC-tmp $@
PRODUCT="$@" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh PRODUCT="$@" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
...@@ -62,9 +62,9 @@ VLC-tmp: vlc ...@@ -62,9 +62,9 @@ VLC-tmp: vlc
done done
printf "APPLVLC#" >| $@/Contents/PkgInfo printf "APPLVLC#" >| $@/Contents/PkgInfo
package-macosx: VLC-release.app ChangeLog package-macosx: VLC.app ChangeLog
mkdir -p "$(top_builddir)/vlc-$(VERSION)/Goodies/" mkdir -p "$(top_builddir)/vlc-$(VERSION)/Goodies/"
cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app" cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"
cd $(srcdir); cp AUTHORS COPYING README THANKS NEWS $(abs_top_builddir)/vlc-$(VERSION)/Goodies/ cd $(srcdir); cp AUTHORS COPYING README THANKS NEWS $(abs_top_builddir)/vlc-$(VERSION)/Goodies/
cp $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/ cp $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
cp -R $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app cp -R $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app
...@@ -86,9 +86,9 @@ package-macosx: VLC-release.app ChangeLog ...@@ -86,9 +86,9 @@ package-macosx: VLC-release.app ChangeLog
rm -f "$(top_builddir)/vlc-$(VERSION)-rw.dmg" rm -f "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
rm -rf "$(top_builddir)/vlc-$(VERSION)" rm -rf "$(top_builddir)/vlc-$(VERSION)"
package-macosx-zip: VLC-release.app ChangeLog package-macosx-zip: VLC.app ChangeLog
mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/
cp -R $(top_builddir)/VLC-release.app $(top_builddir)/vlc-$(VERSION)/VLC.app cp -R $(top_builddir)/VLC.app $(top_builddir)/vlc-$(VERSION)/VLC.app
cp $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/ cp $(top_builddir)/ChangeLog $(top_builddir)/vlc-$(VERSION)/Goodies/
cd $(srcdir); cp -R AUTHORS COPYING README THANKS NEWS extras/package/macosx/Delete_Preferences.app/ \ cd $(srcdir); cp -R AUTHORS COPYING README THANKS NEWS extras/package/macosx/Delete_Preferences.app/ \
$(abs_top_builddir)/vlc-$(VERSION)/Goodies/ $(abs_top_builddir)/vlc-$(VERSION)/Goodies/
......
...@@ -25,8 +25,8 @@ cd $WD ...@@ -25,8 +25,8 @@ cd $WD
############################################# #############################################
# Config # Config
INTELROOT=$SRCROOT/build32/VLC-release.app INTELROOT=$SRCROOT/build32/VLC.app
INTEL64ROOT=$SRCROOT/build64/VLC-release.app INTEL64ROOT=$SRCROOT/build64/VLC.app
# PPCROOT # PPCROOT
UBROOT=$SRCROOT/build-fat/VLC.app UBROOT=$SRCROOT/build-fat/VLC.app
...@@ -121,5 +121,5 @@ fi ...@@ -121,5 +121,5 @@ fi
# Now, you need to copy the resulting UBROOT bundle into VLC's build directory # Now, you need to copy the resulting UBROOT bundle into VLC's build directory
# and make sure it is named "VLC-release.app". # and make sure it is named "VLC.app".
# Afterwards, run 'make package-macosx' and follow release_howto.txt in /doc # Afterwards, run 'make package-macosx' and follow release_howto.txt in /doc
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
# #
# Script that install libvlc and its modules inside VLCKit. # Script that install libvlc and its modules inside VLCKit.
# #
# This is for some creepy reasons also used by legacy VLC-release.app or # This is for some creepy reasons also used by legacy VLC.app or
# the moz plugin. # the moz plugin.
# #
# We are building VLC-release.app or the moz plugin # We are building VLC.app or the moz plugin
# #
if test "${ACTION}" = "release-makefile"; then if test "${ACTION}" = "release-makefile"; then
echo "running Pre-Compile.sh in release-makefile mode" echo "running Pre-Compile.sh in release-makefile mode"
...@@ -210,8 +210,8 @@ if [ "$RELEASE_MAKEFILE" != "yes" ] ; then ...@@ -210,8 +210,8 @@ if [ "$RELEASE_MAKEFILE" != "yes" ] ; then
fi fi
########################## ##########################
# Hack for VLC-release.app # Hack for VLC.app
if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then if [ "$FULL_PRODUCT_NAME" = "VLC.app" ] ; then
vlc_install "bin/${prefix}" "vlc" "${target}" "bin" "@loader_path/lib" vlc_install "bin/${prefix}" "vlc" "${target}" "bin" "@loader_path/lib"
mv ${target}/vlc ${target}/VLC mv ${target}/vlc ${target}/VLC
chmod +x ${target}/VLC chmod +x ${target}/VLC
......
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