зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734975: Fix XULRunner packaging in universal builds. r=bsmedberg
This commit is contained in:
Родитель
18e6967fd4
Коммит
06df9e443d
|
@ -67,7 +67,6 @@ MOZ_PKG_APPNAME = $(MOZ_APP_NAME)
|
|||
APPNAME = $(MOZ_MACBUNDLE_NAME)
|
||||
INSTALLER_DIR = $(MOZ_BUILD_APP)/installer
|
||||
ifeq ($(MOZ_BUILD_APP),xulrunner) # {
|
||||
INSTALLER_DIR = xulrunner/installer/mac
|
||||
APPNAME = XUL.framework
|
||||
APP_CONTENTS = Versions/Current
|
||||
endif # } xulrunner
|
||||
|
|
|
@ -71,6 +71,18 @@ ifeq ($(OS_ARCH),WINNT)
|
|||
INSTALLER_DIR = windows
|
||||
endif
|
||||
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
ifndef _APPNAME
|
||||
_APPNAME = $(MOZ_MACBUNDLE_NAME)
|
||||
endif
|
||||
ifndef _BINPATH
|
||||
_BINPATH = /$(_APPNAME)/Contents/MacOS
|
||||
endif # _BINPATH
|
||||
ifdef UNIVERSAL_BINARY
|
||||
STAGEPATH = universal/
|
||||
endif
|
||||
endif
|
||||
|
||||
PACKAGE = $(PKG_PATH)$(PKG_BASENAME)$(PKG_SUFFIX)
|
||||
|
||||
# By default, the SDK uses the same packaging type as the main bundle,
|
||||
|
@ -140,7 +152,11 @@ MAKE_SDK = $(CREATE_FINAL_TAR) - $(MOZ_APP_NAME)-sdk | gzip -vf9 > $(SDK)
|
|||
endif
|
||||
ifeq ($(MOZ_PKG_FORMAT),BZ2)
|
||||
PKG_SUFFIX = .tar.bz2
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
INNER_MAKE_PACKAGE = $(CREATE_FINAL_TAR) - -C $(STAGEPATH)$(MOZ_PKG_DIR) $(_APPNAME) | bzip2 -vf > $(PACKAGE)
|
||||
else
|
||||
INNER_MAKE_PACKAGE = $(CREATE_FINAL_TAR) - $(MOZ_PKG_DIR) | bzip2 -vf > $(PACKAGE)
|
||||
endif
|
||||
INNER_UNMAKE_PACKAGE = bunzip2 -c $(UNPACKAGE) | $(UNPACK_TAR)
|
||||
MAKE_SDK = $(CREATE_FINAL_TAR) - $(MOZ_APP_NAME)-sdk | bzip2 -vf > $(SDK)
|
||||
endif
|
||||
|
@ -392,12 +408,6 @@ INNER_UNMAKE_PACKAGE = \
|
|||
popd
|
||||
endif
|
||||
ifeq ($(MOZ_PKG_FORMAT),DMG)
|
||||
ifndef _APPNAME
|
||||
_APPNAME = $(MOZ_MACBUNDLE_NAME)
|
||||
endif
|
||||
ifndef _BINPATH
|
||||
_BINPATH = /$(_APPNAME)/Contents/MacOS
|
||||
endif # _BINPATH
|
||||
PKG_SUFFIX = .dmg
|
||||
PKG_DMG_FLAGS =
|
||||
ifneq (,$(MOZ_PKG_MAC_DSSTORE))
|
||||
|
@ -416,9 +426,6 @@ ifneq (,$(MOZ_PKG_MAC_EXTRA))
|
|||
PKG_DMG_FLAGS += $(MOZ_PKG_MAC_EXTRA)
|
||||
endif
|
||||
_ABS_MOZSRCDIR = $(shell cd $(MOZILLA_DIR) && pwd)
|
||||
ifdef UNIVERSAL_BINARY
|
||||
STAGEPATH = universal/
|
||||
endif
|
||||
ifndef PKG_DMG_SOURCE
|
||||
PKG_DMG_SOURCE = $(STAGEPATH)$(MOZ_PKG_DIR)
|
||||
endif
|
||||
|
@ -772,7 +779,7 @@ ifdef MOZ_PKG_MANIFEST
|
|||
$(patsubst %,$(DIST)/manifests/%/chrome,$(MOZ_LOCALIZED_PKG_LIST))
|
||||
printf "manifest components/interfaces.manifest\nmanifest components/components.manifest\nmanifest chrome/nonlocalized.manifest\nmanifest chrome/localized.manifest\n" > $(DIST)/$(MOZ_PKG_DIR)/$(_BINPATH)/chrome.manifest
|
||||
else # !MOZ_PKG_MANIFEST
|
||||
ifeq ($(MOZ_PKG_FORMAT),DMG)
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
||||
ifndef STAGE_SDK
|
||||
@cd $(DIST) && rsync -auv --copy-unsafe-links $(_APPNAME) $(MOZ_PKG_DIR)
|
||||
@echo "Linking XPT files..."
|
||||
|
|
|
@ -48,6 +48,8 @@ NO_PKG_FILES = \
|
|||
xulrunner-config \
|
||||
regchrome* \
|
||||
regxpcom* \
|
||||
xpcshell* \
|
||||
run-mozilla* \
|
||||
$(NULL)
|
||||
|
||||
# If we're on mac, we don't want an end-user-facing DMG, we want a .tar.bz2
|
||||
|
@ -55,6 +57,8 @@ NO_PKG_FILES = \
|
|||
|
||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||
MOZ_PKG_FORMAT = BZ2
|
||||
_APPNAME = XUL.framework
|
||||
_BINPATH = /$(_APPNAME)/Versions/Current
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
Загрузка…
Ссылка в новой задаче