summaryrefslogtreecommitdiffstats
path: root/python/mozrelease/mozrelease/platforms.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /python/mozrelease/mozrelease/platforms.py
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python/mozrelease/mozrelease/platforms.py')
-rw-r--r--python/mozrelease/mozrelease/platforms.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/python/mozrelease/mozrelease/platforms.py b/python/mozrelease/mozrelease/platforms.py
new file mode 100644
index 0000000000..2970725a73
--- /dev/null
+++ b/python/mozrelease/mozrelease/platforms.py
@@ -0,0 +1,54 @@
+# 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/.
+
+update_platform_map = {
+ "android": ["Android_arm-eabi-gcc3"],
+ "android-arm": ["Android_arm-eabi-gcc3"],
+ "android-x86": ["Android_x86-gcc3"],
+ "android-x86_64": ["Android_x86-64-gcc3"],
+ "android-aarch64": ["Android_aarch64-gcc3"],
+ "linux-i686": ["Linux_x86-gcc3"],
+ "linux-x86_64": ["Linux_x86_64-gcc3"],
+ "mac": [
+ "Darwin_x86_64-gcc3-u-i386-x86_64",
+ "Darwin_x86-gcc3-u-i386-x86_64",
+ "Darwin_aarch64-gcc3",
+ "Darwin_x86-gcc3",
+ "Darwin_x86_64-gcc3",
+ ],
+ "win32": ["WINNT_x86-msvc", "WINNT_x86-msvc-x86", "WINNT_x86-msvc-x64"],
+ "win64": ["WINNT_x86_64-msvc", "WINNT_x86_64-msvc-x64"],
+ "win64-aarch64": ["WINNT_aarch64-msvc-aarch64"],
+}
+
+# ftp -> shipped locales map
+sl_platform_map = {
+ "linux-i686": "linux",
+ "linux-x86_64": "linux",
+ "mac": "osx",
+ "win32": "win32",
+ "win64": "win64",
+}
+
+# ftp -> info file platform map
+info_file_platform_map = {
+ "linux-i686": "linux",
+ "linux-x86_64": "linux64",
+ "mac": "macosx64",
+ "win32": "win32",
+ "win64": "win64",
+ "win64-aarch64": "win64_aarch64",
+}
+
+
+def ftp2updatePlatforms(platform):
+ return update_platform_map[platform]
+
+
+def ftp2shippedLocales(platform):
+ return sl_platform_map.get(platform, platform)
+
+
+def ftp2infoFile(platform):
+ return info_file_platform_map.get(platform, platform)