calendar/base/moz.build
author Pike <l10n@mozilla.com> and Richard Marti <richard.marti@gmail.com> and Jorg K <jorgk@jorgk.com>
Fri, 17 Feb 2017 17:05:49 +0100
changeset 27653 6ee27a7af6cd3e7bd25f392048fd40160910275a
parent 27081 d43b66230d14c4d52bb4ea2946e49d957b8b5c35
child 28114 7d9af75e6b67effcbc74c7466242673fa48ae995
permissions -rw-r--r--
Bug 1322402 - Drop support for universal Mac builds. rs=bustage-fix

# 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/.

DIRS = [
    'public',
    'backend',
    'src',
    'modules',
]

JAR_MANIFESTS += ['jar.mn']

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    DEFINES['THEME'] = 'windows'
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    DEFINES['THEME'] = 'osx'
else:
    DEFINES['THEME'] = 'linux'

# Window icons are not needed on mac
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk2', 'gtk3'):
    icon_path = 'themes/common/icons/'
    window_icons = [
        'calendar-alarm-dialog',
        'calendar-event-dialog',
        'calendar-event-summary-dialog',
        'calendar-task-dialog',
        'calendar-task-summary-dialog',
    ]

    # Set up the icon suffix to differ between windows and linux
    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
        icon_suffix = '.ico'
    else:
        icon_suffix = '.png'

    FINAL_TARGET_FILES.chrome.icons.default += [
        '%s%s%s' % (icon_path, icon, icon_suffix) for icon in window_icons
    ]

with Files('content/**'):
    BUG_COMPONENT = ('Calendar', 'Calendar Views')

with Files('content/preferences/**'):
    BUG_COMPONENT = ('Calendar', 'Preferences')

with Files('content/dialogs/**'):
    BUG_COMPONENT = ('Calendar', 'Dialogs')

with Files('content/*task*'):
    BUG_COMPONENT = ('Calendar', 'Tasks')

with Files('content/dialogs/*alarm*'):
    BUG_COMPONENT = ('Calendar', 'Alarms')

with Files('content/widgets/*alarm*'):
    BUG_COMPONENT = ('Calendar', 'Alarms')

with Files('themes/**'):
    BUG_COMPONENT = ('Calendar', 'Calendar Views')