moz.build 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. MOCHITEST_MANIFESTS += ['tests/mochitest/mochitest.ini']
  6. MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
  7. BROWSER_CHROME_MANIFESTS += ['tests/mochitest/browser.ini']
  8. XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
  9. # Hack to make this file available as a resource:// URI.
  10. TESTING_JS_MODULES += [
  11. 'tests/mochitest/resource_test_file.html',
  12. ]
  13. XPIDL_SOURCES += [
  14. 'nsIAddonPolicyService.idl',
  15. 'nsIDomainPolicy.idl',
  16. 'nsIPrincipal.idl',
  17. 'nsIScriptSecurityManager.idl',
  18. ]
  19. XPIDL_MODULE = 'caps'
  20. EXPORTS += [
  21. 'nsJSPrincipals.h',
  22. 'nsNullPrincipal.h',
  23. 'nsNullPrincipalURI.h',
  24. ]
  25. EXPORTS.mozilla = [
  26. 'BasePrincipal.h'
  27. ]
  28. SOURCES += [
  29. 'BasePrincipal.cpp',
  30. 'DomainPolicy.cpp',
  31. 'nsJSPrincipals.cpp',
  32. 'nsNullPrincipal.cpp',
  33. 'nsNullPrincipalURI.cpp',
  34. 'nsPrincipal.cpp',
  35. 'nsScriptSecurityManager.cpp',
  36. 'nsSystemPrincipal.cpp',
  37. ]
  38. LOCAL_INCLUDES += [
  39. '/docshell/base',
  40. '/dom/base',
  41. '/js/xpconnect/src',
  42. ]
  43. if CONFIG['ENABLE_TESTS']:
  44. DIRS += ['tests/gtest']
  45. include('/ipc/chromium/chromium-config.mozbuild')
  46. FINAL_LIBRARY = 'xul'