Makefile.in 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # vim:set ts=8 sw=8 sts=8 noet:
  2. #
  3. # This Source Code Form is subject to the terms of the Mozilla Public
  4. # License, v. 2.0. If a copy of the MPL was not distributed with this
  5. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. STANDALONE_MAKEFILE := 1
  7. # input location for the build, usually $(DIST)
  8. # set this to $(DIST)/l10n-stage per override for L10n builds
  9. PACKAGE_BASE_DIR = $(DIST)
  10. # Default output location for update archive
  11. STAGE_DIR = $(ABS_DIST)/$(PKG_UPDATE_PATH)
  12. ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
  13. ifdef UNIVERSAL_BINARY
  14. ifneq (,$(filter %/l10n-stage,$(PACKAGE_BASE_DIR)))
  15. PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)/$(MOZ_MACBUNDLE_NAME)
  16. else
  17. PACKAGE_DIR = $(PACKAGE_BASE_DIR)/universal/$(MOZ_PKG_DIR)/$(MOZ_MACBUNDLE_NAME)
  18. endif
  19. else
  20. PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)/$(MOZ_MACBUNDLE_NAME)
  21. endif
  22. else
  23. PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)
  24. endif
  25. MAR_BIN = $(DIST)/host/bin/mar$(HOST_BIN_SUFFIX)
  26. MBSDIFF_BIN = $(DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX)
  27. OVERRIDE_DEFAULT_GOAL := full-update
  28. full-update:: complete-patch
  29. ifeq ($(OS_TARGET), WINNT)
  30. ifdef AB_CD
  31. UNPACKAGE = '$(PACKAGE_BASE_DIR)/$(PACKAGE)'
  32. endif
  33. endif
  34. include $(topsrcdir)/config/rules.mk
  35. include $(topsrcdir)/toolkit/mozapps/installer/signing.mk
  36. include $(topsrcdir)/toolkit/mozapps/installer/packager.mk
  37. ifdef MOZ_EXTERNAL_SIGNING_FORMAT
  38. # We can't use sha2signcode on mar files
  39. MOZ_EXTERNAL_SIGNING_FORMAT := $(filter-out sha2signcode,$(MOZ_EXTERNAL_SIGNING_FORMAT))
  40. MOZ_EXTERNAL_SIGNING_FORMAT := mar $(MOZ_EXTERNAL_SIGNING_FORMAT)
  41. endif
  42. dir-stage := $(call mkdir_deps,$(STAGE_DIR))
  43. complete-patch:: $(dir-stage)
  44. MAR=$(MAR_BIN) \
  45. $(srcdir)/make_full_update.sh \
  46. '$(DIST)/$(COMPLETE_MAR)' \
  47. '$(PACKAGE_DIR)'
  48. ifdef MOZ_SIGN_CMD
  49. $(MOZ_SIGN_CMD) -f mar '$(DIST)/$(COMPLETE_MAR)'
  50. endif
  51. partial-patch:: $(dir-stage)
  52. MAR=$(MAR_BIN) \
  53. MBSDIFF=$(MBSDIFF_BIN) \
  54. $(srcdir)/make_incremental_update.sh \
  55. '$(STAGE_DIR)/$(PKG_UPDATE_BASENAME).partial.$(SRC_BUILD_ID)-$(DST_BUILD_ID).mar' \
  56. '$(SRC_BUILD)' \
  57. '$(DST_BUILD)'
  58. ifdef MOZ_SIGN_CMD
  59. $(MOZ_SIGN_CMD) -f mar '$(STAGE_DIR)/$(PKG_UPDATE_BASENAME).partial.$(SRC_BUILD_ID)-$(DST_BUILD_ID).mar'
  60. endif