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
|
|
|
|
2013-02-25 20:47:18 +00:00
|
|
|
STANDALONE_MAKEFILE := 1
|
2013-10-21 18:10:04 +00:00
|
|
|
DIST_SUBDIR := browser
|
2013-02-25 20:47:18 +00:00
|
|
|
|
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
|
|
|
|
|
2015-07-15 07:31:53 +00:00
|
|
|
MOZ_PKG_MANIFEST = $(srcdir)/package-manifest.in
|
2014-05-26 13:18:00 +00:00
|
|
|
|
2012-04-24 23:49:59 +00:00
|
|
|
# Some files have been already bundled with xulrunner
|
2014-05-26 13:18:00 +00:00
|
|
|
ifndef MOZ_MULET
|
2012-03-18 16:56:09 +00:00
|
|
|
MOZ_PKG_FATAL_WARNINGS = 1
|
2015-07-15 07:31:53 +00:00
|
|
|
else
|
|
|
|
DEFINES += -DMOZ_MULET
|
2012-04-24 23:49:59 +00:00
|
|
|
endif
|
2005-06-30 19:22:39 +00:00
|
|
|
|
2014-08-01 16:53:05 +00:00
|
|
|
DEFINES += -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
|
2014-05-01 11:36:05 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK3
|
|
|
|
DEFINES += -DMOZ_GTK3=1
|
|
|
|
endif
|
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-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)
|
2014-05-03 07:59:00 +00:00
|
|
|
ifdef MOZ_D3DCOMPILER_VISTA_DLL
|
2014-05-02 22:31:05 +00:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_VISTA_DLL=$(MOZ_D3DCOMPILER_VISTA_DLL)
|
2014-05-03 07:59:00 +00:00
|
|
|
endif
|
|
|
|
ifdef MOZ_D3DCOMPILER_XP_DLL
|
2014-05-02 22:31:05 +00:00
|
|
|
DEFINES += -DMOZ_D3DCOMPILER_XP_DLL=$(MOZ_D3DCOMPILER_XP_DLL)
|
2011-02-08 01:11:52 +00:00
|
|
|
endif
|
2014-05-03 07:59:00 +00:00
|
|
|
endif
|
2011-02-08 01:11:52 +00:00
|
|
|
|
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
|
2014-05-30 00:39:44 +00:00
|
|
|
ifdef MOZ_NO_DEBUG_RTL
|
2014-06-27 15:24:29 +00: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)
|
2015-01-30 01:36:39 +00:00
|
|
|
ifdef MSVC_APPCRT_DLL
|
|
|
|
DEFINES += -DMSVC_APPCRT_DLL=$(MSVC_APPCRT_DLL)
|
|
|
|
endif
|
|
|
|
ifdef MSVC_DESKTOPCRT_DLL
|
|
|
|
DEFINES += -DMSVC_DESKTOPCRT_DLL=$(MSVC_DESKTOPCRT_DLL)
|
|
|
|
endif
|
2012-03-20 02:05:20 +00:00
|
|
|
endif
|
2014-05-30 00:39:44 +00:00
|
|
|
endif
|
2012-03-20 02:05:20 +00:00
|
|
|
|
2012-01-20 11:49:23 +00:00
|
|
|
ifneq (,$(filter WINNT Darwin Android,$(OS_TARGET)))
|
|
|
|
DEFINES += -DMOZ_SHARED_MOZGLUE=1
|
|
|
|
endif
|
|
|
|
|
2012-05-04 20:19:02 +00:00
|
|
|
ifdef NECKO_WIFI
|
|
|
|
DEFINES += -DNECKO_WIFI
|
|
|
|
endif
|
|
|
|
|
2013-11-22 14:03:21 +00:00
|
|
|
ifdef GKMEDIAS_SHARED_LIBRARY
|
|
|
|
DEFINES += -DGKMEDIAS_SHARED_LIBRARY
|
|
|
|
endif
|
|
|
|
|
2015-04-01 10:50:44 +00:00
|
|
|
ifdef MAKENSISU
|
|
|
|
DEFINES += -DHAVE_MAKENSISU=1
|
|
|
|
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
|
2013-12-02 21:34:21 +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-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
|
|
|
|
2014-11-18 17:15:03 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
RESPATH = $(_APPNAME)/Contents/Resources
|
|
|
|
else
|
|
|
|
RESPATH = $(BINPATH)
|
|
|
|
endif
|
|
|
|
DEFINES += -DRESPATH=$(RESPATH)
|
|
|
|
|
2015-07-22 06:02:28 +00:00
|
|
|
LPROJ_ROOT = $(firstword $(subst -, ,$(AB_CD)))
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
ifeq (zh-TW,$(AB_CD))
|
|
|
|
LPROJ_ROOT := $(subst -,_,$(AB_CD))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
DEFINES += -DLPROJ_ROOT=$(LPROJ_ROOT)
|
2014-10-21 18:50:10 +00:00
|
|
|
|
2013-12-06 13:08:52 +00:00
|
|
|
DEFINES += -DMOZ_ICU_VERSION=$(MOZ_ICU_VERSION)
|
2013-12-08 18:03:10 +00:00
|
|
|
ifdef MOZ_NATIVE_ICU
|
|
|
|
DEFINES += -DMOZ_NATIVE_ICU
|
|
|
|
endif
|
2013-12-06 13:08:52 +00:00
|
|
|
ifdef MOZ_SHARED_ICU
|
|
|
|
DEFINES += -DMOZ_SHARED_ICU
|
|
|
|
endif
|
2015-09-04 05:45:53 +00:00
|
|
|
ifdef MOZ_JEMALLOC4
|
|
|
|
DEFINES += -DMOZ_JEMALLOC4
|
2014-05-22 22:24:22 +00:00
|
|
|
endif
|
2014-05-30 00:37:24 +00:00
|
|
|
DEFINES += -DMOZ_ICU_DBG_SUFFIX=$(MOZ_ICU_DBG_SUFFIX)
|
2014-06-05 23:15:56 +00:00
|
|
|
ifdef CLANG_CXX
|
|
|
|
DEFINES += -DCLANG_CXX
|
|
|
|
endif
|
2014-10-17 01:40:00 +00:00
|
|
|
ifdef CLANG_CL
|
|
|
|
DEFINES += -DCLANG_CL
|
|
|
|
endif
|
2014-12-24 08:13:42 +00:00
|
|
|
ifeq (x86,$(CPU_ARCH))
|
|
|
|
ifdef _MSC_VER
|
|
|
|
ifndef CLANG_CL
|
|
|
|
DEFINES += -DWOW_HELPER
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-12-06 13:08:52 +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
|
|
|
|
|
2015-07-15 07:31:53 +00:00
|
|
|
package-compare::
|
2010-02-22 05:55:51 +00:00
|
|
|
cd $(DIST); find $(PKGCOMP_FIND_OPTS) $(FINDPATH) -type f | sort > bin-list.txt
|
2015-07-15 07:31:53 +00:00
|
|
|
$(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) $(MOZ_PKG_MANIFEST)) | grep '^$(BINPATH)' | sed -e 's/^\///' | sort > $(DIST)/pack-list.txt
|
2010-02-22 05:55:51 +00:00
|
|
|
-diff -u $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
rm -f $(DIST)/pack-list.txt $(DIST)/bin-list.txt
|
|
|
|
|
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
|