gecko-dev/toolkit/components/extensions/webidl-api/moz.build

46 lines
1.4 KiB
Python

# -*- 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 = ("WebExtensions", "General")
UNIFIED_SOURCES += [
"ExtensionAPIBase.cpp",
"ExtensionAPIRequest.cpp",
"ExtensionAPIRequestForwarder.cpp",
"ExtensionBrowser.cpp",
"ExtensionEventListener.cpp",
"ExtensionEventManager.cpp",
"ExtensionPort.cpp",
]
EXPORTS.mozilla.extensions += [
"ExtensionAPIBase.h",
"ExtensionBrowser.h",
"ExtensionEventManager.h",
"ExtensionPort.h",
]
# The following is not a real WebExtensions API, it is a test WebIDL
# interface that includes a collection of the cases useful to unit
# test the API request forwarding mechanism without tying it to
# a specific WebExtensions API.
UNIFIED_SOURCES += ["ExtensionMockAPI.cpp"]
EXPORTS.mozilla.extensions += ["ExtensionMockAPI.h"]
# Propagate the build config to be able to use it in souce code preprocessing
# (used in mozilla::extensions::ExtensionAPIAllowed to disable the webidl
# bindings in non-nightly builds).
if CONFIG["MOZ_WEBEXT_WEBIDL_ENABLED"]:
DEFINES["MOZ_WEBEXT_WEBIDL_ENABLED"] = True
include("/ipc/chromium/chromium-config.mozbuild")
LOCAL_INCLUDES += [
"/js/xpconnect/src",
]
FINAL_LIBRARY = "xul"