summaryrefslogtreecommitdiffstats
path: root/comm/suite/branding/branding-common.mozbuild
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /comm/suite/branding/branding-common.mozbuild
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/suite/branding/branding-common.mozbuild')
-rw-r--r--comm/suite/branding/branding-common.mozbuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/comm/suite/branding/branding-common.mozbuild b/comm/suite/branding/branding-common.mozbuild
new file mode 100644
index 0000000000..7a9f005818
--- /dev/null
+++ b/comm/suite/branding/branding-common.mozbuild
@@ -0,0 +1,70 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# 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/.
+
+@template
+def SeaMonkeyBranding():
+ JS_PREFERENCE_FILES += [
+ 'seamonkey-branding.js',
+ ]
+
+ # Note: mac icons are handled in /suite/app during the final application
+ # packaging
+ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk'):
+ desktop_icons = [
+ 'abcardWindow',
+ 'ablistWindow',
+ 'addressbookWindow',
+ 'bookmarkproperties',
+ 'chatzilla-window',
+ 'downloadManager',
+ 'editorWindow',
+ 'findBookmarkWindow',
+ 'findHistoryWindow',
+ 'history-window',
+ 'JSConsoleWindow',
+ 'messengerWindow',
+ 'msgcomposeWindow',
+ 'places',
+ ]
+
+ desktop_icons_small = []
+ desktop_icons_large = []
+
+ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
+ icon_suffix = '.ico'
+ icon_dir = 'windows'
+ # Windows icons
+ desktop_icons += [
+ 'gif-file',
+ 'html-file',
+ 'image-file',
+ 'main-window',
+ 'jpeg-file',
+ 'script-file',
+ 'xml-file',
+ 'xul-file',
+ ]
+ else:
+ icon_suffix = '.png'
+ icon_dir = 'gtk'
+ FINAL_TARGET_FILES.chrome.icons.default += [
+ 'default128.png',
+ 'default16.png',
+ 'default22.png',
+ 'default24.png',
+ 'default256.png',
+ 'default32.png',
+ 'default48.png',
+ 'default64.png',
+ ]
+ desktop_icons_small = [ '%s16' % i for i in desktop_icons ]
+ desktop_icons_large = [ '%s48' % i for i in desktop_icons ]
+
+ FINAL_TARGET_FILES.chrome.icons.default += [
+ 'icons/%s/%s%s' % (icon_dir, i, icon_suffix) for i in sorted(
+ desktop_icons + desktop_icons_small + desktop_icons_large
+ )
+ ]