Commit a80cde4d 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
parent 47ba7e37
......@@ -6,16 +6,16 @@ endif
endif
# This is just for development purposes.
# The resulting VLC.app will only run in this tree.
VLC.app: VLC-tmp
# The resulting VLC-dev.app will only run in this tree.
VLC-dev.app: VLC-tmp
rm -Rf $@
cp -R VLC-tmp $@
$(INSTALL) -m 0755 $(top_builddir)/bin/.libs/vlc $@/Contents/MacOS/VLC
$(LN_S) -f ../../../modules $@/Contents/MacOS/plugins
# 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
VLC-release.app: VLC-tmp
VLC.app: VLC-tmp
rm -Rf $@
cp -R VLC-tmp $@
PRODUCT="$@" ACTION="release-makefile" src_dir=$(srcdir) build_dir=$(top_builddir) sh $(srcdir)/projects/macosx/framework/Pre-Compile.sh
......@@ -57,9 +57,9 @@ VLC-tmp: vlc
done
printf "APPLVLC#" >| $@/Contents/PkgInfo
package-macosx: VLC-release.app
package-macosx: VLC.app
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/
cp -R $(srcdir)/extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app
cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
......@@ -80,9 +80,9 @@ package-macosx: VLC-release.app
rm -f "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
rm -rf "$(top_builddir)/vlc-$(VERSION)"
package-macosx-zip: VLC-release.app
package-macosx-zip: VLC.app
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 -R AUTHORS COPYING README THANKS NEWS extras/package/macosx/Delete_Preferences.app/ \
$(abs_top_builddir)/vlc-$(VERSION)/Goodies/
cp $(srcdir)/extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf
......
......@@ -25,8 +25,8 @@ cd $WD
#############################################
# Config
INTELROOT=$SRCROOT/build32/VLC-release.app
INTEL64ROOT=$SRCROOT/build64/VLC-release.app
INTELROOT=$SRCROOT/build32/VLC.app
INTEL64ROOT=$SRCROOT/build64/VLC.app
# PPCROOT
UBROOT=$SRCROOT/build-fat/VLC.app
......@@ -121,5 +121,5 @@ fi
# 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
......@@ -4,12 +4,12 @@
#
# 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.
#
# 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
echo "running Pre-Compile.sh in release-makefile mode"
......@@ -211,8 +211,8 @@ if [ "$RELEASE_MAKEFILE" != "yes" ] ; then
fi
##########################
# Hack for VLC-release.app
if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then
# Hack for VLC.app
if [ "$FULL_PRODUCT_NAME" = "VLC.app" ] ; then
vlc_install "bin/${prefix}" "vlc" "${target}" "bin" "@loader_path/lib"
mv ${target}/vlc ${target}/VLC
chmod +x ${target}/VLC
......@@ -261,7 +261,7 @@ fi
##########################
# Exporting headers
if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then
if [ "$FULL_PRODUCT_NAME" = "VLC.app" ] ; then
echo "Exporting headers..."
mkdir -p ${target_include}/vlc
$pbxcp ${VLC_SRC_DIR}/include/vlc/*.h ${target_include}/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