diff --git a/Makefile.in b/Makefile.in index dede9c47cf5c..31765c75775c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -270,6 +270,10 @@ pretty-l10n-check: pretty-update-packaging: $(MAKE) -C tools/update-packaging MOZ_PKG_PRETTYNAMES=1 +.PHONY: pretty-installer +pretty-installer: + $(MAKE) installer MOZ_PKG_PRETTYNAMES=1 + #XXX: this is a hack, since we don't want to clobber for MSVC # PGO support, but we can't do this test in client.mk ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_) diff --git a/browser/config/mozconfigs/win32/beta b/browser/config/mozconfigs/win32/beta index 322af127e433..c86365b93220 100644 --- a/browser/config/mozconfigs/win32/beta +++ b/browser/config/mozconfigs/win32/beta @@ -1,3 +1,4 @@ +. "$topsrcdir/build/mozconfig.win-common" . "$topsrcdir/browser/config/mozconfigs/win32/common-opt" mk_add_options MOZ_PGO=1 diff --git a/browser/config/mozconfigs/win32/debug b/browser/config/mozconfigs/win32/debug index 5b9d2c55715c..3786e1ef37c4 100644 --- a/browser/config/mozconfigs/win32/debug +++ b/browser/config/mozconfigs/win32/debug @@ -1,3 +1,6 @@ +. "$topsrcdir/build/mozconfig.win-common" +MOZ_AUTOMATION_L10N_CHECK=0 +MOZ_AUTOMATION_TALOS_SENDCHANGE=0 . "$topsrcdir/browser/config/mozconfigs/common" ac_add_options --enable-debug diff --git a/browser/config/mozconfigs/win32/debug-nonunified b/browser/config/mozconfigs/win32/debug-nonunified index 653433a40158..2b73f1476b38 100644 --- a/browser/config/mozconfigs/win32/debug-nonunified +++ b/browser/config/mozconfigs/win32/debug-nonunified @@ -1,3 +1,9 @@ +. "$topsrcdir/build/mozconfig.win-common" +MOZ_AUTOMATION_CHECK=0 +MOZ_AUTOMATION_L10N_CHECK=0 +MOZ_AUTOMATION_TALOS_SENDCHANGE=0 +MOZ_AUTOMATION_UNITTEST_SENDCHANGE=0 +MOZ_AUTOMATION_UPLOAD=0 . "$topsrcdir/browser/config/mozconfigs/win32/debug" ac_add_options --disable-unified-compilation diff --git a/browser/config/mozconfigs/win32/nightly b/browser/config/mozconfigs/win32/nightly index f56f31890048..e5703a4eb9f3 100644 --- a/browser/config/mozconfigs/win32/nightly +++ b/browser/config/mozconfigs/win32/nightly @@ -1,3 +1,4 @@ +. "$topsrcdir/build/mozconfig.win-common" . "$topsrcdir/browser/config/mozconfigs/win32/common-opt" ac_add_options --enable-signmar diff --git a/browser/config/mozconfigs/win32/nightly-nonunified b/browser/config/mozconfigs/win32/nightly-nonunified index 3de1dfedbd78..4781571670a7 100644 --- a/browser/config/mozconfigs/win32/nightly-nonunified +++ b/browser/config/mozconfigs/win32/nightly-nonunified @@ -1,3 +1,9 @@ +. "$topsrcdir/build/mozconfig.win-common" +MOZ_AUTOMATION_PRETTY=1 +MOZ_AUTOMATION_UPLOAD=0 +MOZ_AUTOMATION_UNITTEST_SENDCHANGE=0 +MOZ_AUTOMATION_TALOS_SENDCHANGE=0 +MOZ_AUTOMATION_CHECK=0 . "$topsrcdir/browser/config/mozconfigs/win32/nightly" ac_add_options --disable-unified-compilation diff --git a/browser/config/mozconfigs/win32/release b/browser/config/mozconfigs/win32/release index 7feb1257d8ce..eb2f98fb7182 100644 --- a/browser/config/mozconfigs/win32/release +++ b/browser/config/mozconfigs/win32/release @@ -1,5 +1,6 @@ # This make file should be identical to the beta mozconfig, apart from the # safeguard below +. "$topsrcdir/build/mozconfig.win-common" . "$topsrcdir/browser/config/mozconfigs/win32/common-opt" mk_add_options MOZ_PGO=1 diff --git a/browser/config/mozconfigs/win64/debug b/browser/config/mozconfigs/win64/debug index bcfe6ae87143..59c659b8dae3 100644 --- a/browser/config/mozconfigs/win64/debug +++ b/browser/config/mozconfigs/win64/debug @@ -1,3 +1,6 @@ +. "$topsrcdir/build/mozconfig.win-common" +MOZ_AUTOMATION_L10N_CHECK=0 +MOZ_AUTOMATION_TALOS_SENDCHANGE=0 . "$topsrcdir/browser/config/mozconfigs/common" ac_add_options --target=x86_64-pc-mingw32 diff --git a/browser/config/mozconfigs/win64/nightly b/browser/config/mozconfigs/win64/nightly index f6bb92bb70d3..74f56b9fb135 100644 --- a/browser/config/mozconfigs/win64/nightly +++ b/browser/config/mozconfigs/win64/nightly @@ -1,3 +1,4 @@ +. "$topsrcdir/build/mozconfig.win-common" . "$topsrcdir/browser/config/mozconfigs/win64/common-win64" . "$topsrcdir/browser/config/mozconfigs/win64/common-opt" diff --git a/build/moz-automation.mk b/build/moz-automation.mk index 04d60ca22579..e13bf4d25913 100644 --- a/build/moz-automation.mk +++ b/build/moz-automation.mk @@ -23,6 +23,8 @@ tier_BUILD_SYMBOLS = buildsymbols tier_CHECK = check tier_L10N_CHECK = l10n-check tier_PRETTY_L10N_CHECK = pretty-l10n-check +tier_INSTALLER = installer +tier_PRETTY_INSTALLER = pretty-installer tier_PACKAGE = package tier_PRETTY_PACKAGE = pretty-package tier_PACKAGE_TESTS = package-tests @@ -43,6 +45,8 @@ moz_automation_symbols = \ UPLOAD_SYMBOLS \ PACKAGE \ PRETTY_PACKAGE \ + INSTALLER \ + PRETTY_INSTALLER \ UPDATE_PACKAGING \ PRETTY_UPDATE_PACKAGING \ CHECK \ @@ -56,22 +60,29 @@ MOZ_AUTOMATION_TIERS := $(foreach sym,$(moz_automation_symbols),$(if $(filter 1, automation/uploadsymbols: automation/buildsymbols automation/update-packaging: automation/package +automation/pretty-update-packaging: automation/pretty-package +automation/pretty-update-packaging: automation/pretty-installer automation/l10n-check: automation/package +automation/l10n-check: automation/installer +automation/pretty-l10n-check: automation/pretty-package +automation/pretty-l10n-check: automation/pretty-installer +automation/upload: automation/installer automation/upload: automation/package automation/upload: automation/package-tests automation/upload: automation/buildsymbols automation/upload: automation/update-packaging -# automation/package and automation/check should depend on build (which is +# automation/{pretty-}package and automation/check should depend on build (which is # implicit due to the way client.mk invokes automation/build), but buildsymbols # changes the binaries/libs, and that's what we package/test. -automation/package: automation/buildsymbols +automation/pretty-package: automation/buildsymbols automation/check: automation/buildsymbols # The 'pretty' versions of targets run before the regular ones to avoid # conflicts in writing to the same files. +automation/installer: automation/pretty-installer automation/package: automation/pretty-package automation/package-tests: automation/pretty-package-tests automation/l10n-check: automation/pretty-l10n-check @@ -87,6 +98,9 @@ AUTOMATION_EXTRA_CMDLINE-check = -k # properties. AUTOMATION_EXTRA_CMDLINE-upload = 2>&1 | tee $(AUTOMATION_UPLOAD_OUTPUT) +# Note: We have to force -j1 here, at least until bug 1036563 is fixed. +AUTOMATION_EXTRA_CMDLINE-l10n-check = -j1 + # The commands only run if the corresponding MOZ_AUTOMATION_* variable is # enabled. This means, for example, if we enable MOZ_AUTOMATION_UPLOAD, then # 'buildsymbols' will only run if MOZ_AUTOMATION_BUILD_SYMBOLS is also set. diff --git a/build/mozconfig.automation b/build/mozconfig.automation index 344e30e8f18e..57f1282349a7 100644 --- a/build/mozconfig.automation +++ b/build/mozconfig.automation @@ -14,6 +14,7 @@ mk_add_options "export MOZ_AUTOMATION_CHECK=${MOZ_AUTOMATION_CHECK-1}" mk_add_options "export MOZ_AUTOMATION_L10N_CHECK=${MOZ_AUTOMATION_L10N_CHECK-1}" mk_add_options "export MOZ_AUTOMATION_PACKAGE=${MOZ_AUTOMATION_PACKAGE-1}" mk_add_options "export MOZ_AUTOMATION_PACKAGE_TESTS=${MOZ_AUTOMATION_PACKAGE_TESTS-1}" +mk_add_options "export MOZ_AUTOMATION_INSTALLER=${MOZ_AUTOMATION_INSTALLER-0}" mk_add_options "export MOZ_AUTOMATION_TALOS_SENDCHANGE=${MOZ_AUTOMATION_TALOS_SENDCHANGE-1}" mk_add_options "export MOZ_AUTOMATION_UNITTEST_SENDCHANGE=${MOZ_AUTOMATION_UNITTEST_SENDCHANGE-1}" mk_add_options "export MOZ_AUTOMATION_UPDATE_PACKAGING=${MOZ_AUTOMATION_UPDATE_PACKAGING-0}" @@ -26,6 +27,7 @@ if test "$MOZ_AUTOMATION_PRETTY" = "1"; then mk_add_options "export MOZ_AUTOMATION_PRETTY_PACKAGE=${MOZ_AUTOMATION_PACKAGE-1}" mk_add_options "export MOZ_AUTOMATION_PRETTY_PACKAGE_TESTS=${MOZ_AUTOMATION_PACKAGE_TESTS-1}" mk_add_options "export MOZ_AUTOMATION_PRETTY_L10N_CHECK=${MOZ_AUTOMATION_L10N_CHECK-1}" + mk_add_options "export MOZ_AUTOMATION_PRETTY_INSTALLER=${MOZ_AUTOMATION_INSTALLER-0}" # Note that we always build the update packaging with pretty names even if # we don't build it without, so this is set to 1. diff --git a/build/mozconfig.win-common b/build/mozconfig.win-common new file mode 100644 index 000000000000..396f0e60e7b1 --- /dev/null +++ b/build/mozconfig.win-common @@ -0,0 +1,9 @@ +# 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/. + +if [ "x$IS_NIGHTLY" = "xyes" ]; then + MOZ_AUTOMATION_UPLOAD_SYMBOLS=1 + MOZ_AUTOMATION_UPDATE_PACKAGING=1 +fi +MOZ_AUTOMATION_INSTALLER=1