toolkit/components/extensions/moz.build
author Dustin J. Mitchell <dustin@mozilla.com>
Mon, 02 Oct 2017 18:22:56 +0000
changeset 399750 0f0395687d36597098e4248457ed69f092c39f8f
parent 399597 46f721d7988bcc0bd1cbf22854d40abd0cf1c2b2
child 421190 d34810cab822c9f8717405c27f5ad9367eb430d9
permissions -rw-r--r--
Bug 1403519 - only build docs when necessary r=gps This marks **/docs/** as exclusively docs, and code that is autodoc'd as inclusively docs. That means that a change that purely modifies documentation files will *only* run `docs` tasks, while a change that modifies autodoc'd source code will *additionaly* run `docs` tasks. The tasks do not run by default. MozReview-Commit-ID: G9tOK0AwtrI

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


with Files('**'):
    BUG_COMPONENT = ('Toolkit', 'WebExtensions: General')

EXTRA_JS_MODULES += [
    'Extension.jsm',
    'ExtensionChild.jsm',
    'ExtensionChildDevToolsUtils.jsm',
    'ExtensionCommon.jsm',
    'ExtensionContent.jsm',
    'ExtensionPageChild.jsm',
    'ExtensionParent.jsm',
    'ExtensionPermissions.jsm',
    'ExtensionPreferencesManager.jsm',
    'ExtensionSettingsStore.jsm',
    'ExtensionStorage.jsm',
    'ExtensionStorageSync.jsm',
    'ExtensionUtils.jsm',
    'FindContent.jsm',
    'LegacyExtensionsUtils.jsm',
    'MessageChannel.jsm',
    'NativeManifests.jsm',
    'NativeMessaging.jsm',
    'ProxyScriptContext.jsm',
    'Schemas.jsm',
]

EXTRA_COMPONENTS += [
    'extension-process-script.js',
    'extensions-toolkit.manifest',
]

TESTING_JS_MODULES += [
    'ExtensionTestCommon.jsm',
    'ExtensionXPCShellUtils.jsm',
]

DIRS += [
    'schemas',
    'webrequest',
]

XPIDL_SOURCES += [
    'mozIExtensionProcessScript.idl',
]

XPIDL_MODULE = 'webextensions'

EXPORTS.mozilla = [
    'ExtensionPolicyService.h',
]

EXPORTS.mozilla.extensions = [
    'MatchGlob.h',
    'MatchPattern.h',
    'WebExtensionContentScript.h',
    'WebExtensionPolicy.h',
]

UNIFIED_SOURCES += [
    'ExtensionPolicyService.cpp',
    'MatchPattern.cpp',
    'WebExtensionPolicy.cpp',
]

FINAL_LIBRARY = 'xul'


JAR_MANIFESTS += ['jar.mn']

BROWSER_CHROME_MANIFESTS += [
    'test/browser/browser.ini',
]

MOCHITEST_MANIFESTS += [
    'test/mochitest/mochitest-remote.ini',
    'test/mochitest/mochitest.ini'
]
MOCHITEST_CHROME_MANIFESTS += ['test/mochitest/chrome.ini']
XPCSHELL_TESTS_MANIFESTS += [
    'test/xpcshell/native_messaging.ini',
    'test/xpcshell/xpcshell-e10s.ini',
    'test/xpcshell/xpcshell-remote.ini',
    'test/xpcshell/xpcshell.ini',
]

SPHINX_TREES['webextensions'] = 'docs'

with Files('docs/**'):
    SCHEDULES.exclusive = ['docs']

include('/ipc/chromium/chromium-config.mozbuild')