calendar/installer/Makefile.in
author Mark Banner <bugzilla@standard8.plus.com>
Thu, 06 Dec 2012 07:38:59 +0000
changeset 14502 0228cef8fb832e863f225a27f20828adb922a2f9
parent 13273 6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f
child 14744 ead82f3bfe13bf7c748624563a81c3ccf0aef9ce
permissions -rw-r--r--
Port bug 809803 from mozilla-central to comm-central - Move strip flags into STRIP_FLAGS. Needed to port Bug 813526 to fix bustage

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH       = @DEPTH@
topsrcdir   = @top_srcdir@
srcdir      = @srcdir@
VPATH       = @srcdir@

include $(DEPTH)/config/autoconf.mk

NO_PKG_FILES = \
    sunbird-config \
    regchrome* \
    regxpcom* \
    xpcshell* \
    xpidl* \
    xpt_dump* \
    xpt_link* \
    nspr-config \
    $(NULL)

include $(topsrcdir)/config/rules.mk

MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in

ifdef BUILD_STATIC_LIBS
ifeq (WINNT,$(OS_ARCH))
MOZ_PKG_MANIFEST_P = $(srcdir)/windows/packages-static
# XXX Enable when landing unix installer
# else
# ifneq (,$(filter-out OS2 Darwin,$(OS_ARCH)))
# MOZ_PKG_MANIFEST_P = $(srcdir)/unix/packages-static
# endif
endif
else
$(error you need a "--enable-static --disable-shared" build to create an installer)
endif

MOZ_NONLOCALIZED_PKG_LIST = \
    xpcom \
    calendar \
    $(NULL)

MOZ_LOCALIZED_PKG_LIST = $(AB_CD)

DEFINES += -DAB_CD=$(AB_CD)

ifdef MOZ_UPDATER
DEFINES += -DMOZ_UPDATER=1
endif

ifdef MOZ_PKG_MANIFEST_P
MOZ_PKG_MANIFEST = packages-static

$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
	$(PYTHON) $(MOZILLA_SRCDIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $< > $@
endif

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
MOZ_PKG_MAC_DSSTORE=branding/dsstore
MOZ_PKG_MAC_BACKGROUND=branding/background.png
MOZ_PKG_MAC_ICON=branding/disk.icns
endif

include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/packager.mk

ifeq (WINNT,$(OS_ARCH))
PKGCOMP_FIND_OPTS = 
else
PKGCOMP_FIND_OPTS = -L
endif

package-compare::
ifdef MOZ_PKG_MANIFEST_P
	cd $(DIST); find $(PKGCOMP_FIND_OPTS) bin -type f | sort > bin-list.txt
	grep "^bin" $(MOZ_PKG_MANIFEST) | sed -e 's/\\/\//g' | sort > $(DIST)/pack-list.txt
	-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
endif

installer: removed-files
ifdef INSTALLER_DIR
	$(MAKE) -C $(INSTALLER_DIR)
endif

make-package : removed-files-checked

removed-files-checked : removed-files stage-package
	$(PERL) $(srcdir)/check-remove-files.pl removed-files $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)