1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # assemble package names, see convention at
6 # http://developer.mozilla.org/index.php?title=En/Package_Filename_Convention
7 # Note that release packages are named during the post-build release
8 # automation, so they aren't part of this file.
10 ifndef PACKAGE_NAME_MK_INCLUDED
11 PACKAGE_NAME_MK_INCLUDED
:= 1
13 ifndef MOZ_PKG_VERSION
14 MOZ_PKG_VERSION
= $(MOZ_APP_VERSION
)
17 ifndef MOZ_PKG_PLATFORM
18 MOZ_PKG_PLATFORM
:= $(TARGET_RAW_OS
)-$(TARGET_RAW_CPU
)
20 ifeq ($(MOZ_BUILD_APP
),mobile
/android
)
21 MOZ_PKG_PLATFORM
:= android-
$(TARGET_RAW_CPU
)
24 # TARGET_RAW_OS/TARGET_RAW_CPU may be unintuitive, so we hardcode some special formats
25 ifeq ($(OS_ARCH
),WINNT
)
26 ifeq ($(TARGET_CPU
),x86
)
27 MOZ_PKG_PLATFORM
:= win32
29 ifeq ($(TARGET_CPU
),aarch64
)
30 MOZ_PKG_PLATFORM
:= win64-aarch64
32 MOZ_PKG_PLATFORM
:= win64
36 ifeq ($(OS_ARCH
),Darwin
)
37 MOZ_PKG_PLATFORM
:= mac
39 ifeq ($(TARGET_RAW_OS
),linux-gnu
)
40 MOZ_PKG_PLATFORM
:= linux-
$(TARGET_RAW_CPU
)
42 endif #MOZ_PKG_PLATFORM
45 MOZ_PKG_PLATFORM
:= $(MOZ_PKG_PLATFORM
)-$(MOZ_PKG_SPECIAL
)
48 MOZ_PKG_DIR ?
= $(MOZ_APP_NAME
)
50 ifndef MOZ_PKG_APPNAME
51 MOZ_PKG_APPNAME
= $(MOZ_APP_NAME
)
54 ifdef MOZ_SIMPLE_PACKAGE_NAME
55 PKG_BASENAME
:= $(MOZ_SIMPLE_PACKAGE_NAME
)
57 PKG_BASENAME
= $(MOZ_PKG_APPNAME
)-$(MOZ_PKG_VERSION
).
$(AB_CD
).
$(MOZ_PKG_PLATFORM
)
61 PKG_INST_BASENAME
= $(PKG_BASENAME
).installer
62 PKG_STUB_BASENAME
= $(PKG_BASENAME
).installer-stub
63 PKG_INST_PATH
= install/sea
/
64 PKG_UPDATE_BASENAME
= $(PKG_BASENAME
)
65 CHECKSUMS_FILE_BASENAME
= $(PKG_BASENAME
)
66 MOZ_INFO_BASENAME
= $(PKG_BASENAME
)
67 PKG_UPDATE_PATH
= update
/
68 COMPLETE_MAR
= $(PKG_UPDATE_PATH
)$(PKG_UPDATE_BASENAME
).complete.mar
69 ifdef MOZ_SIMPLE_PACKAGE_NAME
70 PKG_LANGPACK_BASENAME
= $(MOZ_SIMPLE_PACKAGE_NAME
).langpack
73 PKG_LANGPACK_BASENAME
= $(MOZ_PKG_APPNAME
)-$(MOZ_PKG_VERSION
).
$(AB_CD
).langpack
74 PKG_LANGPACK_PATH
= $(MOZ_PKG_PLATFORM
)/xpi
/
76 LANGPACK
= $(PKG_LANGPACK_PATH
)$(PKG_LANGPACK_BASENAME
).xpi
77 PKG_SRCPACK_BASENAME
= source
78 PKG_BUNDLE_BASENAME
= $(MOZ_PKG_APPNAME
)-$(MOZ_PKG_VERSION
)
81 # Symbol package naming
82 SYMBOL_FULL_ARCHIVE_BASENAME
= $(PKG_BASENAME
).crashreporter-symbols-full
83 SYMBOL_ARCHIVE_BASENAME
= $(PKG_BASENAME
).crashreporter-symbols
85 # Generated file package naming
86 GENERATED_SOURCE_FILE_PACKAGE
= $(PKG_BASENAME
).generated-files.
tar.gz
88 # Code coverage package naming
89 CODE_COVERAGE_ARCHIVE_BASENAME
= $(PKG_BASENAME
).code-coverage-gcno
91 # Mozsearch package naming
92 MOZSEARCH_ARCHIVE_BASENAME
= $(PKG_BASENAME
).mozsearch-index
93 MOZSEARCH_INCLUDEMAP_BASENAME
= $(PKG_BASENAME
).mozsearch-distinclude
94 MOZSEARCH_SCIP_INDEX_BASENAME
= $(PKG_BASENAME
).mozsearch-scip-index
95 MOZSEARCH_JAVA_INDEX_BASENAME
= $(PKG_BASENAME
).mozsearch-java-index
98 MOZHARNESS_PACKAGE
= mozharness.zip
100 # Test package naming
101 TEST_PACKAGE
= $(PKG_BASENAME
).common.tests.
tar.gz
102 CPP_TEST_PACKAGE
= $(PKG_BASENAME
).cppunittest.tests.
tar.gz
103 XPC_TEST_PACKAGE
= $(PKG_BASENAME
).xpcshell.tests.
tar.gz
104 MOCHITEST_PACKAGE
= $(PKG_BASENAME
).mochitest.tests.
tar.gz
105 REFTEST_PACKAGE
= $(PKG_BASENAME
).reftest.tests.
tar.gz
106 WP_TEST_PACKAGE
= $(PKG_BASENAME
).web-platform.tests.
tar.gz
107 TALOS_PACKAGE
= $(PKG_BASENAME
).talos.tests.
tar.gz
108 AWSY_PACKAGE
= $(PKG_BASENAME
).awsy.tests.
tar.gz
109 GTEST_PACKAGE
= $(PKG_BASENAME
).gtest.tests.
tar.gz
111 # `.xpt` artifacts: for use in artifact builds.
112 XPT_ARTIFACTS_ARCHIVE_BASENAME
= $(PKG_BASENAME
).xpt_artifacts
114 ifneq (,$(wildcard $(DIST
)/bin
/application.ini
))
115 BUILDID
= $(shell $(PYTHON3
) $(MOZILLA_DIR
)/config
/printconfigsetting.py
$(DIST
)/bin
/application.ini App BuildID
)
117 BUILDID
= $(shell $(PYTHON3
) $(MOZILLA_DIR
)/config
/printconfigsetting.py
$(DIST
)/bin
/platform.ini Build BuildID
)
120 MOZ_SOURCESTAMP_FILE
= $(DIST
)/$(PKG_PATH
)/$(MOZ_INFO_BASENAME
).txt
121 MOZ_BUILDINFO_FILE
= $(DIST
)/$(PKG_PATH
)/$(MOZ_INFO_BASENAME
).json
122 MOZ_BUILDHUB_JSON
= $(DIST
)/$(PKG_PATH
)/buildhub.json
123 MOZ_BUILDID_INFO_TXT_FILE
= $(DIST
)/$(PKG_PATH
)/$(MOZ_INFO_BASENAME
)_info.txt
124 MOZ_MOZINFO_FILE
= $(DIST
)/$(PKG_PATH
)/$(MOZ_INFO_BASENAME
).mozinfo.json
125 MOZ_TEST_PACKAGES_FILE
= $(DIST
)/$(PKG_PATH
)/$(PKG_BASENAME
).test_packages.json
128 ifdef MOZ_SIMPLE_PACKAGE_NAME
129 JSSHELL_NAME
:= $(MOZ_SIMPLE_PACKAGE_NAME
).jsshell.zip
131 JSSHELL_NAME
= jsshell-
$(MOZ_PKG_PLATFORM
).zip
133 PKG_JSSHELL
= $(DIST
)/$(JSSHELL_NAME
)
135 endif # PACKAGE_NAME_MK_INCLUDED