2012-05-31 15:00:27 +04:00
|
|
|
# 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/.
|
2008-06-02 03:44:22 +04:00
|
|
|
|
2012-12-14 04:33:20 +04:00
|
|
|
DEPTH = @DEPTH@
|
2008-06-02 03:44:22 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2013-10-25 06:07:16 +04:00
|
|
|
STANDALONE_MAKEFILE := 1
|
|
|
|
|
2008-06-02 03:44:22 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
|
|
|
|
|
2010-09-10 19:46:02 +04:00
|
|
|
MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
|
2013-11-12 01:44:09 +04:00
|
|
|
# Some files have been already bundled with xulrunner
|
|
|
|
ifndef SYSTEM_LIBXUL
|
|
|
|
MOZ_PKG_FATAL_WARNINGS = 1
|
|
|
|
endif
|
2008-06-02 03:44:22 +04:00
|
|
|
|
|
|
|
MOZ_NONLOCALIZED_PKG_LIST = \
|
|
|
|
xpcom \
|
2014-01-09 06:02:13 +04:00
|
|
|
im \
|
2008-06-02 03:44:22 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MOZ_LOCALIZED_PKG_LIST = $(AB_CD)
|
|
|
|
|
2009-11-20 01:51:14 +03:00
|
|
|
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
|
2013-11-12 01:44:09 +04:00
|
|
|
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
2009-11-20 01:51:14 +03:00
|
|
|
ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|
|
|
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (gtk2, $(MOZ_WIDGET_TOOLKIT))
|
|
|
|
DEFINES += -DMOZ_GTK2=1
|
|
|
|
endif
|
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
ifdef _MSC_VER
|
|
|
|
DEFINES += -D_MSC_VER=$(_MSC_VER)
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += -DJAREXT=
|
|
|
|
|
|
|
|
ifdef MOZ_ANGLE_RENDERER
|
|
|
|
DEFINES += -DMOZ_ANGLE_RENDERER=$(MOZ_ANGLE_RENDERER)
|
2014-05-06 19:42:24 +04:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_VISTA_DLL=$(MOZ_D3DCOMPILER_VISTA_DLL)
|
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_XP_DLL=$(MOZ_D3DCOMPILER_XP_DLL)
|
2009-11-20 01:51:14 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_UPDATER
|
|
|
|
DEFINES += -DMOZ_UPDATER=1
|
|
|
|
endif
|
2008-06-02 03:44:22 +04:00
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
ifdef MOZ_NATIVE_NSPR
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSPR=1
|
2010-03-11 13:48:10 +03:00
|
|
|
endif
|
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
ifdef MOZ_NATIVE_NSS
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSS=1
|
2010-09-10 19:46:02 +04:00
|
|
|
endif
|
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
|
2010-09-10 19:46:02 +04:00
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
# Set MSVC dlls version to package, if any.
|
|
|
|
ifdef WIN32_REDIST_DIR
|
|
|
|
DEFINES += -DMOZ_MSVC_REDIST=$(_MSC_VER)
|
2013-03-13 05:01:02 +04:00
|
|
|
endif
|
|
|
|
|
2012-06-03 03:15:26 +04:00
|
|
|
ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET)))
|
|
|
|
DEFINES += -DMOZ_SHARED_MOZGLUE=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef NECKO_WIFI
|
|
|
|
DEFINES += -DNECKO_WIFI
|
|
|
|
endif
|
|
|
|
|
2014-02-28 04:39:11 +04:00
|
|
|
ifdef MOZ_PURPLE
|
|
|
|
DEFINES += -DMOZ_PURPLE
|
|
|
|
endif
|
|
|
|
|
2008-06-02 03:44:22 +04:00
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
2010-09-10 19:46:02 +04:00
|
|
|
MOZ_PKG_MANIFEST = package-manifest
|
2008-06-02 03:44:22 +04:00
|
|
|
|
2012-03-20 03:35:31 +04:00
|
|
|
$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
|
2014-01-09 06:02:54 +04:00
|
|
|
$(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $< -o $@)
|
2009-11-20 01:51:14 +03:00
|
|
|
|
|
|
|
GARBAGE += $(MOZ_PKG_MANIFEST)
|
2008-06-02 03:44:22 +04:00
|
|
|
endif
|
|
|
|
|
2010-07-29 04:24:56 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2008-06-02 03:44:22 +04:00
|
|
|
MOZ_PKG_MAC_DSSTORE=branding/dsstore
|
|
|
|
MOZ_PKG_MAC_BACKGROUND=branding/background.png
|
|
|
|
MOZ_PKG_MAC_ICON=branding/disk.icns
|
2008-07-25 09:32:58 +04:00
|
|
|
MOZ_PKG_MAC_EXTRA=--symlink "/Applications:/ "
|
2008-06-02 03:44:22 +04:00
|
|
|
endif
|
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
NON_OMNIJAR_FILES =
|
2010-09-10 19:46:02 +04:00
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
ifndef LIBXUL_SDK
|
|
|
|
INSTALL_SDK = 1
|
2009-11-20 01:51:14 +03:00
|
|
|
endif
|
2009-04-24 14:45:12 +04:00
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
GENERATE_CACHE=1
|
|
|
|
|
|
|
|
include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/signing.mk
|
|
|
|
include $(MOZILLA_SRCDIR)/toolkit/mozapps/installer/packager.mk
|
2009-04-24 14:45:12 +04:00
|
|
|
|
2010-09-10 19:46:02 +04:00
|
|
|
ifeq (Darwin, $(OS_ARCH))
|
|
|
|
BINPATH = $(_BINPATH)
|
|
|
|
DEFINES += -DAPPNAME=$(_APPNAME)
|
|
|
|
else
|
|
|
|
BINPATH = bin
|
|
|
|
endif
|
|
|
|
DEFINES += -DBINPATH=$(BINPATH)
|
2009-04-24 14:45:12 +04:00
|
|
|
|
2014-06-24 16:34:56 +04:00
|
|
|
DEFINES += -DMOZ_ICU_VERSION=$(MOZ_ICU_VERSION)
|
|
|
|
ifdef MOZ_NATIVE_ICU
|
|
|
|
DEFINES += -DMOZ_NATIVE_ICU
|
|
|
|
endif
|
|
|
|
ifdef MOZ_SHARED_ICU
|
|
|
|
DEFINES += -DMOZ_SHARED_ICU
|
|
|
|
endif
|
|
|
|
DEFINES += -DMOZ_ICU_DBG_SUFFIX=$(MOZ_ICU_DBG_SUFFIX)
|
|
|
|
|
2013-11-12 01:44:09 +04:00
|
|
|
libs::
|
2014-01-09 06:02:13 +04:00
|
|
|
$(MAKE) -C $(DEPTH)/im/locales langpack
|
2013-11-12 01:44:09 +04:00
|
|
|
|
2010-09-10 19:46:02 +04:00
|
|
|
ifeq (WINNT,$(OS_ARCH))
|
|
|
|
PKGCOMP_FIND_OPTS =
|
|
|
|
else
|
|
|
|
PKGCOMP_FIND_OPTS = -L
|
|
|
|
endif
|
|
|
|
ifeq (Darwin, $(OS_ARCH))
|
|
|
|
FINDPATH = $(_APPNAME)/Contents/MacOS
|
|
|
|
else
|
|
|
|
FINDPATH=bin
|
2009-11-20 01:51:14 +03:00
|
|
|
endif
|
|
|
|
|
2010-07-29 04:24:56 +04:00
|
|
|
package-compare:: $(MOZ_PKG_MANIFEST)
|
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
|
|
|
cd $(DIST); find $(PKGCOMP_FIND_OPTS) $(FINDPATH) -type f | sort > bin-list.txt
|
|
|
|
grep "^$(BINPATH)" $(MOZ_PKG_MANIFEST) | sed -e 's/^\///' | sort > $(DIST)/pack-list.txt
|
|
|
|
-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
rm -f $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
endif
|
2009-11-20 01:51:14 +03:00
|
|
|
|
2013-01-12 02:12:44 +04:00
|
|
|
installer:
|
2013-11-12 01:44:09 +04:00
|
|
|
ifdef INSTALLER_DIR
|
|
|
|
$(MAKE) -C $(INSTALLER_DIR)
|
2008-06-02 03:44:22 +04:00
|
|
|
endif
|
2013-11-12 01:44:09 +04:00
|
|
|
|
|
|
|
APP_SOURCE_STAMP = $(firstword $(shell hg -R $(topsrcdir) parent --template="{node|short}\n" 2>/dev/null))
|
|
|
|
APP_SOURCE_REPO = $(shell hg -R $(topsrcdir) showconfig paths.default 2>/dev/null | sed -e "s/^ssh:/http:/")
|
|
|
|
make-sourcestamp-file::
|
|
|
|
@echo "$(APP_SOURCE_REPO)/rev/$(APP_SOURCE_STAMP)" >> $(MOZ_SOURCESTAMP_FILE)
|