2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:18 +00:00
|
|
|
# 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/.
|
|
|
|
|
2015-06-20 07:16:50 +00:00
|
|
|
MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
|
2016-06-02 18:42:29 +00:00
|
|
|
BROWSER_CHROME_MANIFESTS += ['tests/mochitest/browser.ini']
|
2015-05-12 21:31:39 +00:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
|
|
|
|
2015-07-20 02:23:55 +00:00
|
|
|
# Hack to make this file available as a resource:// URI.
|
|
|
|
TESTING_JS_MODULES += [
|
|
|
|
'tests/mochitest/resource_test_file.html',
|
|
|
|
]
|
|
|
|
|
2014-07-15 18:12:59 +00:00
|
|
|
XPIDL_SOURCES += [
|
2015-07-08 00:53:15 +00:00
|
|
|
'nsIAddonPolicyService.idl',
|
2014-07-15 18:12:59 +00:00
|
|
|
'nsIDomainPolicy.idl',
|
|
|
|
'nsIPrincipal.idl',
|
|
|
|
'nsIScriptSecurityManager.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'caps'
|
|
|
|
|
|
|
|
EXPORTS += [
|
|
|
|
'nsJSPrincipals.h',
|
2017-03-22 10:38:40 +00:00
|
|
|
'NullPrincipal.h',
|
|
|
|
'NullPrincipalURI.h',
|
2014-07-15 18:12:59 +00:00
|
|
|
]
|
|
|
|
|
2015-05-11 21:25:59 +00:00
|
|
|
EXPORTS.mozilla = [
|
2017-03-22 17:45:40 +00:00
|
|
|
'BasePrincipal.h',
|
|
|
|
'OriginAttributes.h',
|
2015-05-11 21:25:59 +00:00
|
|
|
]
|
|
|
|
|
2016-01-29 23:19:56 +00:00
|
|
|
SOURCES += [
|
|
|
|
# Compile this separately since nsExceptionHandler.h conflicts
|
2017-03-22 10:38:40 +00:00
|
|
|
# with something from NullPrincipal.cpp.
|
2015-05-11 21:25:59 +00:00
|
|
|
'BasePrincipal.cpp',
|
2016-01-29 23:19:56 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
2017-03-22 10:39:31 +00:00
|
|
|
'ContentPrincipal.cpp',
|
2014-07-15 18:12:59 +00:00
|
|
|
'DomainPolicy.cpp',
|
2017-03-22 10:38:17 +00:00
|
|
|
'ExpandedPrincipal.cpp',
|
2014-07-15 18:12:59 +00:00
|
|
|
'nsJSPrincipals.cpp',
|
|
|
|
'nsScriptSecurityManager.cpp',
|
2017-03-22 10:38:40 +00:00
|
|
|
'NullPrincipal.cpp',
|
|
|
|
'NullPrincipalURI.cpp',
|
2017-03-22 17:45:40 +00:00
|
|
|
'OriginAttributes.cpp',
|
2017-03-22 10:39:08 +00:00
|
|
|
'SystemPrincipal.cpp',
|
2014-07-15 18:12:59 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2015-09-23 08:10:21 +00:00
|
|
|
'/docshell/base',
|
2014-07-15 18:12:59 +00:00
|
|
|
'/dom/base',
|
|
|
|
'/js/xpconnect/src',
|
|
|
|
]
|
|
|
|
|
2015-10-06 07:36:10 +00:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|
|
|
|
|
2015-02-24 20:54:40 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2017-01-10 17:46:28 +00:00
|
|
|
|
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Security: CAPS")
|
|
|
|
|