2012-05-21 15:12:37 +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/.
|
2004-03-12 02:18:19 +03:00
|
|
|
|
2013-02-26 00:47:18 +04:00
|
|
|
STANDALONE_MAKEFILE := 1
|
2013-10-21 22:10:04 +04:00
|
|
|
DIST_SUBDIR := browser
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2004-12-02 03:52:27 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2004-03-25 06:49:32 +03:00
|
|
|
|
2005-09-15 22:09:56 +04:00
|
|
|
MOZ_PKG_REMOVALS = $(srcdir)/removed-files.in
|
|
|
|
|
2009-08-28 01:22:04 +04:00
|
|
|
MOZ_PKG_MANIFEST_P = $(srcdir)/package-manifest.in
|
2014-05-26 17:18:00 +04:00
|
|
|
|
|
|
|
ifdef MOZ_MULET
|
|
|
|
MOZ_PKG_MANIFEST_P += $(topsrcdir)/b2g/installer/package-manifest.in
|
|
|
|
endif
|
|
|
|
|
2012-04-25 03:49:59 +04:00
|
|
|
# Some files have been already bundled with xulrunner
|
2014-05-26 17:18:00 +04:00
|
|
|
ifndef MOZ_MULET
|
2012-03-18 20:56:09 +04:00
|
|
|
MOZ_PKG_FATAL_WARNINGS = 1
|
2012-04-25 03:49:59 +04:00
|
|
|
endif
|
2005-06-30 23:22:39 +04:00
|
|
|
|
2014-08-01 20:53:05 +04:00
|
|
|
DEFINES += -DMOZ_APP_NAME=$(MOZ_APP_NAME) -DPREF_DIR=$(PREF_DIR)
|
2012-01-28 21:13:09 +04:00
|
|
|
|
2012-06-08 10:59:22 +04:00
|
|
|
ifdef LIBXUL_SDK
|
|
|
|
DEFINES += -DLIBXUL_SDK=1
|
|
|
|
endif
|
|
|
|
|
2012-01-28 21:13:09 +04:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
DEFINES += -DMOZ_DEBUG=1
|
|
|
|
endif
|
|
|
|
|
2009-08-28 01:22:04 +04:00
|
|
|
ifdef MOZ_ENABLE_GNOME_COMPONENT
|
|
|
|
DEFINES += -DMOZ_ENABLE_GNOME_COMPONENT=1
|
|
|
|
endif
|
|
|
|
|
2013-06-11 21:40:28 +04:00
|
|
|
ifdef MOZ_WIDGET_GTK
|
|
|
|
DEFINES += -DMOZ_GTK=1
|
2014-05-01 15:36:05 +04:00
|
|
|
ifdef MOZ_ENABLE_GTK3
|
|
|
|
DEFINES += -DMOZ_GTK3=1
|
|
|
|
endif
|
2009-08-28 01:22:04 +04:00
|
|
|
endif
|
2005-06-30 23:22:39 +04:00
|
|
|
|
2012-06-12 11:10:09 +04:00
|
|
|
ifdef MOZ_NATIVE_NSPR
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSPR=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_NSS
|
|
|
|
DEFINES += -DMOZ_NATIVE_NSS=1
|
|
|
|
endif
|
|
|
|
|
2009-09-08 22:09:12 +04:00
|
|
|
ifdef NSS_DISABLE_DBM
|
|
|
|
DEFINES += -DNSS_DISABLE_DBM=1
|
|
|
|
endif
|
|
|
|
|
2010-08-13 08:33:52 +04:00
|
|
|
DEFINES += -DJAREXT=
|
|
|
|
|
2012-07-11 06:33:03 +04:00
|
|
|
ifdef MOZ_ANGLE_RENDERER
|
|
|
|
DEFINES += -DMOZ_ANGLE_RENDERER=$(MOZ_ANGLE_RENDERER)
|
2014-05-03 11:59:00 +04:00
|
|
|
ifdef MOZ_D3DCOMPILER_VISTA_DLL
|
2014-05-03 02:31:05 +04:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_VISTA_DLL=$(MOZ_D3DCOMPILER_VISTA_DLL)
|
2014-05-03 11:59:00 +04:00
|
|
|
endif
|
|
|
|
ifdef MOZ_D3DCOMPILER_XP_DLL
|
2014-05-03 02:31:05 +04:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_XP_DLL=$(MOZ_D3DCOMPILER_XP_DLL)
|
2011-02-08 04:11:52 +03:00
|
|
|
endif
|
2014-05-03 11:59:00 +04:00
|
|
|
endif
|
2011-02-08 04:11:52 +03:00
|
|
|
|
2010-04-10 02:40:14 +04:00
|
|
|
DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
|
|
|
|
|
2012-03-20 06:05:20 +04:00
|
|
|
# Set MSVC dlls version to package, if any.
|
|
|
|
ifdef WIN32_REDIST_DIR
|
2014-05-30 04:39:44 +04:00
|
|
|
ifdef MOZ_NO_DEBUG_RTL
|
2014-06-27 19:24:29 +04:00
|
|
|
DEFINES += -DMOZ_PACKAGE_MSVC_DLLS=1
|
|
|
|
DEFINES += -DMSVC_C_RUNTIME_DLL=$(MSVC_C_RUNTIME_DLL)
|
|
|
|
DEFINES += -DMSVC_CXX_RUNTIME_DLL=$(MSVC_CXX_RUNTIME_DLL)
|
2012-03-20 06:05:20 +04:00
|
|
|
endif
|
2014-05-30 04:39:44 +04:00
|
|
|
endif
|
2012-03-20 06:05:20 +04:00
|
|
|
|
2012-01-20 15:49:23 +04:00
|
|
|
ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET)))
|
|
|
|
DEFINES += -DMOZ_SHARED_MOZGLUE=1
|
|
|
|
endif
|
|
|
|
|
2012-05-05 00:19:02 +04:00
|
|
|
ifdef NECKO_WIFI
|
|
|
|
DEFINES += -DNECKO_WIFI
|
|
|
|
endif
|
|
|
|
|
2013-11-22 18:03:21 +04:00
|
|
|
ifdef GKMEDIAS_SHARED_LIBRARY
|
|
|
|
DEFINES += -DGKMEDIAS_SHARED_LIBRARY
|
|
|
|
endif
|
|
|
|
|
2005-06-30 23:22:39 +04:00
|
|
|
ifdef MOZ_PKG_MANIFEST_P
|
2009-08-28 01:22:04 +04:00
|
|
|
MOZ_PKG_MANIFEST = package-manifest
|
2005-06-30 23:22:39 +04:00
|
|
|
|
2011-08-18 06:40:50 +04:00
|
|
|
$(MOZ_PKG_MANIFEST): $(MOZ_PKG_MANIFEST_P) $(GLOBAL_DEPS)
|
2014-05-26 17:18:00 +04:00
|
|
|
$(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $(MOZ_PKG_MANIFEST_P) -o $@)
|
2008-10-21 07:17:16 +04:00
|
|
|
|
|
|
|
GARBAGE += $(MOZ_PKG_MANIFEST)
|
2005-06-30 23:22:39 +04:00
|
|
|
endif
|
|
|
|
|
2009-09-19 06:59:53 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2005-08-18 17:11:46 +04:00
|
|
|
MOZ_PKG_MAC_DSSTORE=branding/dsstore
|
|
|
|
MOZ_PKG_MAC_BACKGROUND=branding/background.png
|
|
|
|
MOZ_PKG_MAC_ICON=branding/disk.icns
|
2013-12-03 01:34:21 +04:00
|
|
|
MOZ_PKG_MAC_EXTRA=--symlink '/Applications:/ '
|
2005-08-18 17:11:46 +04:00
|
|
|
endif
|
|
|
|
|
2007-08-03 18:46:17 +04:00
|
|
|
ifndef LIBXUL_SDK
|
|
|
|
INSTALL_SDK = 1
|
|
|
|
endif
|
|
|
|
|
2011-12-08 02:06:52 +04:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/signing.mk
|
2004-12-02 03:52:27 +03:00
|
|
|
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
|
2004-03-25 08:15:34 +03:00
|
|
|
|
2010-03-07 12:51:24 +03:00
|
|
|
ifeq (bundle, $(MOZ_FS_LAYOUT))
|
2010-02-22 08:55:51 +03:00
|
|
|
BINPATH = $(_BINPATH)
|
|
|
|
DEFINES += -DAPPNAME=$(_APPNAME)
|
2009-08-28 01:22:04 +04:00
|
|
|
else
|
|
|
|
# Every other platform just winds up in dist/bin
|
2010-02-22 08:55:51 +03:00
|
|
|
BINPATH = bin
|
2009-08-21 21:05:28 +04:00
|
|
|
endif
|
2010-02-22 08:55:51 +03:00
|
|
|
DEFINES += -DBINPATH=$(BINPATH)
|
2009-08-21 21:05:28 +04:00
|
|
|
|
2013-12-06 17:08:52 +04:00
|
|
|
DEFINES += -DMOZ_ICU_VERSION=$(MOZ_ICU_VERSION)
|
2013-12-08 22:03:10 +04:00
|
|
|
ifdef MOZ_NATIVE_ICU
|
|
|
|
DEFINES += -DMOZ_NATIVE_ICU
|
|
|
|
endif
|
2013-12-06 17:08:52 +04:00
|
|
|
ifdef MOZ_SHARED_ICU
|
|
|
|
DEFINES += -DMOZ_SHARED_ICU
|
|
|
|
endif
|
2014-05-23 02:24:22 +04:00
|
|
|
ifdef MOZ_REPLACE_MALLOC
|
|
|
|
DEFINES += -DMOZ_REPLACE_MALLOC
|
|
|
|
endif
|
|
|
|
ifdef MOZ_JEMALLOC3
|
|
|
|
DEFINES += -DMOZ_JEMALLOC3
|
|
|
|
endif
|
2014-05-30 04:37:24 +04:00
|
|
|
DEFINES += -DMOZ_ICU_DBG_SUFFIX=$(MOZ_ICU_DBG_SUFFIX)
|
2014-06-06 03:15:56 +04:00
|
|
|
ifdef CLANG_CXX
|
|
|
|
DEFINES += -DCLANG_CXX
|
|
|
|
endif
|
2013-12-06 17:08:52 +04:00
|
|
|
|
2009-04-07 21:21:57 +04:00
|
|
|
libs::
|
2010-10-08 21:00:28 +04:00
|
|
|
$(MAKE) -C $(DEPTH)/browser/locales langpack
|
2009-04-07 21:21:57 +04:00
|
|
|
|
2010-02-22 08:55:51 +03: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
|
2013-12-03 01:34:21 +04:00
|
|
|
grep '^$(BINPATH)' $(MOZ_PKG_MANIFEST) | sed -e 's/^\///' | sort > $(DIST)/pack-list.txt
|
2010-02-22 08:55:51 +03:00
|
|
|
-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
rm -f $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
endif
|
|
|
|
|
2013-01-23 14:23:15 +04:00
|
|
|
installer::
|
2004-12-02 03:52:27 +03:00
|
|
|
ifdef INSTALLER_DIR
|
|
|
|
$(MAKE) -C $(INSTALLER_DIR)
|
2004-03-25 08:15:34 +03:00
|
|
|
endif
|
2012-06-14 22:38:31 +04:00
|
|
|
|
|
|
|
ifdef ENABLE_MARIONETTE
|
|
|
|
DEFINES += -DENABLE_MARIONETTE=1
|
|
|
|
endif
|