calendar/base/moz.build
author tbirdbld
Mon, 14 Nov 2016 03:02:33 -0800
changeset 26104 e95d9bd956af9a8e8506d857af298d14ef1e36fc
parent 22979 ae01190864a883a6dc3347eb3ddedc6b6e13ee0b
child 26822 db09093f3d2edff5e5d33a046db68309b67ab36f
permissions -rw-r--r--
No bug, Automated blocklist update from host bld-linux64-spot-340 - a=blocklist-update

# 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/windows/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')