2012-05-21 11:12:37 +00: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/.
|
2004-03-11 23:18:19 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
2004-03-11 23:18:19 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2004-12-02 00:52:27 +00:00
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2004-03-11 23:18:19 +00:00
|
|
|
|
2013-02-25 20:47:18 +00:00
|
|
|
STANDALONE_MAKEFILE := 1
|
|
|
|
|
2004-12-02 00:52:27 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2004-03-25 03:49:32 +00:00
|
|
|
|
2005-09-15 18:09:56 +00:00
|
|
|
MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
|
|
|
|
|
2009-08-27 21:22:04 +00:00
|
|
|
MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
|
2012-04-24 23:49:59 +00:00
|
|
|
# Some files have been already bundled with xulrunner
|
|
|
|
ifndef SYSTEM_LIBXUL
|
2012-03-18 16:56:09 +00:00
|
|
|
MOZ_PKG_FATAL_WARNINGS = 1
|
2012-04-24 23:49:59 +00:00
|
|
|
endif
|
2005-06-30 19:22:39 +00:00
|
|
|
|
2006-05-04 15:43:31 +00:00
|
|
|
MOZ_NONLOCALIZED_PKG_LIST = \
|
|
|
|
xpcom \
|
|
|
|
browser \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MOZ_LOCALIZED_PKG_LIST = $(AB_CD)
|
|
|
|
|
2007-08-03 14:46:17 +00:00
|
|
|
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
|
2012-01-28 17:13:09 +00:00
|
|
|
|
2012-06-08 06:59:22 +00:00
|
|
|
ifdef LIBXUL_SDK
|
|
|
|
DEFINES += -DLIBXUL_SDK=1
|
|
|
|
endif
|
|
|
|
|
2012-01-28 17:13:09 +00:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
2009-08-27 21:22:04 +00:00
|
|
|
ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|
|
|
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
|
|
|
endif
|
|
|
|
|
2013-06-11 17:40:28 +00:00
|
|
|
ifdef MOZ_WIDGET_GTK
|
|
|
|
DEFINES += -DMOZ_GTK=1
|
2009-08-27 21:22:04 +00:00
|
|
|
endif
|
2005-06-30 19:22:39 +00:00
|
|
|
|
2012-06-12 07:10:09 +00:00
|
|
|
ifdef MOZ_NATIVE_NSPR
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSPR=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_NSS
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSS=1
|
|
|
|
endif
|
|
|
|
|
2009-09-08 18:09:12 +00:00
|
|
|
ifdef NSS_DISABLE_DBM
|
|
|
|
DEFINES += -DNSS_DISABLE_DBM=1
|
|
|
|
endif
|
|
|
|
|
2010-06-01 21:49:29 +00:00
|
|
|
ifdef _MSC_VER
|
|
|
|
DEFINES += -D_MSC_VER=$(_MSC_VER)
|
|
|
|
endif
|
|
|
|
|
2010-08-13 04:33:52 +00:00
|
|
|
DEFINES += -DJAREXT=
|
|
|
|
|
2012-07-11 02:33:03 +00:00
|
|
|
ifdef MOZ_ANGLE_RENDERER
|
|
|
|
DEFINES += -DMOZ_ANGLE_RENDERER=$(MOZ_ANGLE_RENDERER)
|
2011-02-08 01:11:52 +00:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_DLL=$(MOZ_D3DCOMPILER_DLL)
|
|
|
|
endif
|
|
|
|
|
2010-04-09 22:40:14 +00:00
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
|
|
|
|
|
2012-03-20 02:05:20 +00:00
|
|
|
# Set MSVC dlls version to package, if any.
|
|
|
|
ifdef WIN32_REDIST_DIR
|
|
|
|
DEFINES += -DMOZ_MSVC_REDIST=$(_MSC_VER)
|
|
|
|
endif
|
|
|
|
|
2012-01-20 11:49:23 +00:00
|
|
|
ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET)))
|
|
|
|
DEFINES += -DMOZ_SHARED_MOZGLUE=1
|
|
|
|
endif
|
|
|
|
|
2012-03-16 00:12:45 +00:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
DEFINES += -DMOZ_JSDEBUGGER
|
|
|
|
endif
|
|
|
|
|
2012-05-04 20:19:02 +00:00
|
|
|
ifdef NECKO_WIFI
|
|
|
|
DEFINES += -DNECKO_WIFI
|
|
|
|
endif
|
|
|
|
|
2005-06-30 19:22:39 +00:00
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
2009-08-27 21:22:04 +00:00
|
|
|
MOZ_PKG_MANIFEST = package-manifest
|
2005-06-30 19:22:39 +00:00
|
|
|
|
2011-08-18 02:40:50 +00:00
|
|
|
$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
|
2009-09-22 13:05:48 +00:00
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $< > $@
|
2008-10-21 03:17:16 +00:00
|
|
|
|
|
|
|
GARBAGE += $(MOZ_PKG_MANIFEST)
|
2005-06-30 19:22:39 +00:00
|
|
|
endif
|
|
|
|
|
2009-09-19 02:59:53 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2005-08-18 13:11:46 +00:00
|
|
|
MOZ_PKG_MAC_DSSTORE=branding/dsstore
|
|
|
|
MOZ_PKG_MAC_BACKGROUND=branding/background.png
|
|
|
|
MOZ_PKG_MAC_ICON=branding/disk.icns
|
2008-01-30 02:50:28 +00:00
|
|
|
MOZ_PKG_MAC_EXTRA=--symlink "/Applications:/ "
|
2005-08-18 13:11:46 +00:00
|
|
|
endif
|
|
|
|
|
2007-08-03 14:46:17 +00:00
|
|
|
ifndef LIBXUL_SDK
|
|
|
|
INSTALL_SDK = 1
|
|
|
|
endif
|
|
|
|
|
2011-07-19 06:51:54 +00:00
|
|
|
GENERATE_CACHE = 1
|
2011-03-17 01:09:18 +00:00
|
|
|
|
2011-12-07 22:06:52 +00:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/signing.mk
|
2004-12-02 00:52:27 +00:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
|
2004-03-25 05:15:34 +00:00
|
|
|
|
2010-03-07 09:51:24 +00:00
|
|
|
ifeq (bundle, $(MOZ_FS_LAYOUT))
|
2010-02-22 05:55:51 +00:00
|
|
|
BINPATH = $(_BINPATH)
|
|
|
|
DEFINES += -DAPPNAME=$(_APPNAME)
|
2009-08-27 21:22:04 +00:00
|
|
|
else
|
|
|
|
# Every other platform just winds up in dist/bin
|
2010-02-22 05:55:51 +00:00
|
|
|
BINPATH = bin
|
2009-08-21 17:05:28 +00:00
|
|
|
endif
|
2010-02-22 05:55:51 +00:00
|
|
|
DEFINES += -DBINPATH=$(BINPATH)
|
2009-08-21 17:05:28 +00:00
|
|
|
|
2009-04-07 17:21:57 +00:00
|
|
|
libs::
|
2010-10-08 17:00:28 +00:00
|
|
|
$(MAKE) -C $(DEPTH)/browser/locales langpack
|
2009-04-07 17:21:57 +00:00
|
|
|
|
2010-02-22 05:55:51 +00: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
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-01-23 10:23:15 +00:00
|
|
|
installer::
|
2004-12-02 00:52:27 +00:00
|
|
|
ifdef INSTALLER_DIR
|
|
|
|
$(MAKE) -C $(INSTALLER_DIR)
|
2004-03-25 05:15:34 +00:00
|
|
|
endif
|
2012-06-14 18:38:31 +00:00
|
|
|
|
|
|
|
ifdef ENABLE_MARIONETTE
|
|
|
|
DEFINES += -DENABLE_MARIONETTE=1
|
|
|
|
endif
|