caps/moz.build
author Michael Layzell <michael@thelayzells.com>
Wed, 07 Jun 2017 14:36:46 -0400
changeset 412899 8dd7bd8a399a1d21cad7361765b8c85947b49be5
parent 397089 76ca93b1b80ce713d4379e02edb11d4397930fb5
child 422454 adf6435ac760a25dda3f267f6419db334f08f440
permissions -rw-r--r--
Bug 1369627 - Part 2: Send DimensionInfo down to the content process synchronously when creating a new window, r=smaug MozReview-Commit-ID: GlzJ491RLUE

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

MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
BROWSER_CHROME_MANIFESTS += ['tests/mochitest/browser.ini']
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']

# Hack to make this file available as a resource:// URI.
TESTING_JS_MODULES += [
    'tests/mochitest/resource_test_file.html',
]

XPIDL_SOURCES += [
    'nsIAddonPolicyService.idl',
    'nsIDomainPolicy.idl',
    'nsIPrincipal.idl',
    'nsIScriptSecurityManager.idl',
]

XPIDL_MODULE = 'caps'

EXPORTS += [
    'nsJSPrincipals.h',
    'NullPrincipal.h',
    'NullPrincipalURI.h',
]

EXPORTS.mozilla = [
    'BasePrincipal.h',
    'OriginAttributes.h',
]

SOURCES += [
    # Compile this separately since nsExceptionHandler.h conflicts
    # with something from NullPrincipal.cpp.
    'BasePrincipal.cpp',
]

UNIFIED_SOURCES += [
    'ContentPrincipal.cpp',
    'DomainPolicy.cpp',
    'ExpandedPrincipal.cpp',
    'nsJSPrincipals.cpp',
    'nsScriptSecurityManager.cpp',
    'NullPrincipal.cpp',
    'NullPrincipalURI.cpp',
    'OriginAttributes.cpp',
    'SystemPrincipal.cpp',
]

LOCAL_INCLUDES += [
    '/docshell/base',
    '/dom/base',
    '/js/xpconnect/src',
]

if CONFIG['ENABLE_TESTS']:
    DIRS += ['tests/gtest']

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

FINAL_LIBRARY = 'xul'

with Files("**"):
    BUG_COMPONENT = ("Core", "Security: CAPS")