mail/app.mozbuild
author Tom Prince <mozilla@hocat.ca>
Sun, 07 Jan 2018 12:06:52 -0700
changeset 57825 ab8edf46ce58783e711fab6e83cdf2290c9dbd7a
parent 57715 e6ab2f1c372f9af2624d8a939eb42f49ff585a8e
permissions -rw-r--r--
extern-dir-hacking

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

# Note that paths in this file are relative to the top directory, which may be
# m-c or c-c.

include('/toolkit/toolkit.mozbuild')
include('../mailnews/mailnews.mozbuild')

if CONFIG['MOZ_EXTENSIONS']:
    DIRS += ['/extensions']

if CONFIG['EXTERNAL_SOURCE_DIR']:
    EXTERNAL_SOURCE_DIRS += ['/{}'.format(CONFIG['MOZ_BRANDING_DIRECTORY'])]
else:
    DIRS += ['/{}'.format(CONFIG['MOZ_BRANDING_DIRECTORY'])]

mail_dirs = []

if CONFIG['MOZ_CALENDAR']:
    mail_dirs += [
        '/calendar/lightning',
        '/calendar/timezones',
    ]

mail_dirs += [
    '/chat',
    '/editor/ui',
    '/mail',
    '/mail/components',
]

if CONFIG['EXTERNAL_SOURCE_DIR']:
    EXTERNAL_SOURCE_DIRS += mail_dirs
else:
    DIRS += [
        'comm/{}'.format(dir) for dir in mail_dirs
    ]