toolkit/mozapps/installer/signing.mk
author Matt Howell <mhowell@mozilla.com>
Wed, 09 Dec 2015 17:22:19 -0500
changeset 276043 b40ba117fa757861c9caa660ae989122718b494b
parent 276041 33b00efca5d5ff7c12da75cc70a7582d3528fd2d
child 328069 ccc536cc6d4dc41f4a568ad36d44908b453ff26e
permissions -rw-r--r--
Bug 1079858, Deal with deprecation of SHA1 (SHA-1) Authenticode signatures for Windows signing, part 2 (swap cert, relanding), r=catlee, a=lizzard

# 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/.

# We shouldn't sign the first pass of a PGO build
ifndef MOZ_PROFILE_GENERATE

# Signing support
ifdef MOZ_SIGN_CMD
ifeq (WINNT,$(OS_ARCH))
MOZ_INTERNAL_SIGNING_FORMAT := sha2signcode
MOZ_EXTERNAL_SIGNING_FORMAT := sha2signcode
SIGN_INCLUDES := \
  '*.dll' \
  '*.exe' \
  $(NULL)

SIGN_EXCLUDES := \
  'D3DCompiler*.dll' \
  'msvc*.dll' \
  $(NULL)
endif # Windows

ifeq (Darwin, $(OS_ARCH))
MOZ_INTERNAL_SIGNING_FORMAT := dmgv2
MOZ_EXTERNAL_SIGNING_FORMAT :=
endif # Darwin

ifeq (linux-gnu,$(TARGET_OS))
MOZ_EXTERNAL_SIGNING_FORMAT :=
endif # Linux

ifdef MOZ_ASAN
MOZ_INTERNAL_SIGNING_FORMAT :=
MOZ_EXTERNAL_SIGNING_FORMAT :=
endif

endif # MOZ_SIGN_CMD

endif # MOZ_PROFILE_GENERATE