toolkit/components/extensions/moz.build
author Margareta Eliza Balazs <ebalazs@mozilla.com>
Thu, 11 Jan 2018 22:32:27 +0200
changeset 398940 0524b54f7f9dc0568a55b5d70fef4180d4cb1838
parent 398936 6d539e4a02bd5a819c798c16ffc2fdbe9fb5fab2
child 399595 5b293bcd3fc71b67fd5fcbdeca83f4886d3b3cde
permissions -rw-r--r--
Backed out changeset 6d539e4a02bd (bug 1403519) for lint failures on a CLOSED TREE

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

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