suite/branding/branding-common.mozbuild
author Rob Lemley <rob@thunderbird.net>
Wed, 08 Apr 2020 18:29:48 -0400
changeset 38748 6d4c1e45518002fd062d717ccaa226fa9350d34c
parent 36505 7d01e0dd2fba7c79e64568fa25c04bcffe72699a
permissions -rw-r--r--
Bug 1621787 - Additional license notice for Bzip2. r=kaie Bzip2 sources will be added to third_party/bzip2. This is the license text from the current version.

# -*- 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',
    ]

    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
      FINAL_TARGET_FILES.chrome.icons.default += [
          'default.png',
          'default128.png',
          'default16.png',
          'default48.png',
          'default64.png',
      ]
    # Note: mac icons are handled in /suite/app during the final application
    # packaging
    if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk'):
        if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
            icon_suffix = '.ico'
        else:
            icon_suffix = '.png'

        if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
            icon_dir = 'gtk'
        else:
            icon_dir = CONFIG['MOZ_WIDGET_TOOLKIT']

        desktop_icons = [
            'abcardWindow',
            'ablistWindow',
            'addressbookWindow',
            'bookmarkproperties',
            'downloadManager',
            'editorWindow',
            'findBookmarkWindow',
            'findHistoryWindow',
            'history-window',
            'JSConsoleWindow',
            'main-window',
            'messengerWindow',
            'msgcomposeWindow',
            'places',
        ]

        if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
            # Windows icons
            desktop_icons += [
                'gif-file',
                'html-file',
                'image-file',
                'jpeg-file',
                'script-file',
                'xml-file',
                'xul-file',
            ]

        desktop_icons_small = []
        desktop_icons_large = []

        if icon_dir == 'gtk':
            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
            )
        ]