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