Bug 1885489 - Part 5: Add SnapshotIterator::readInt32(). r=iain
[gecko.git] / dom / webauthn / moz.build
blob47309034c82fc627874aa3dfe728da22f1bfe98f
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files("**"):
8     BUG_COMPONENT = ("Core", "DOM: Web Authentication")
10 IPDL_SOURCES += ["PWebAuthnTransaction.ipdl"]
12 XPCOM_MANIFESTS += [
13     "components.conf",
16 XPIDL_SOURCES += [
17     "nsIWebAuthnArgs.idl",
18     "nsIWebAuthnAttObj.idl",
19     "nsIWebAuthnPromise.idl",
20     "nsIWebAuthnResult.idl",
21     "nsIWebAuthnService.idl",
24 XPIDL_MODULE = "dom_webauthn"
26 EXPORTS.mozilla.dom += [
27     "AuthenticatorAssertionResponse.h",
28     "AuthenticatorAttestationResponse.h",
29     "AuthenticatorResponse.h",
30     "PublicKeyCredential.h",
31     "WebAuthnManager.h",
32     "WebAuthnManagerBase.h",
33     "WebAuthnPromiseHolder.h",
34     "WebAuthnTransactionChild.h",
35     "WebAuthnTransactionParent.h",
36     "WebAuthnUtil.h",
37     "winwebauthn/webauthn.h",
40 UNIFIED_SOURCES += [
41     "AuthenticatorAssertionResponse.cpp",
42     "AuthenticatorAttestationResponse.cpp",
43     "AuthenticatorResponse.cpp",
44     "PublicKeyCredential.cpp",
45     "WebAuthnArgs.cpp",
46     "WebAuthnAutoFillEntry.cpp",
47     "WebAuthnManager.cpp",
48     "WebAuthnManagerBase.cpp",
49     "WebAuthnPromiseHolder.cpp",
50     "WebAuthnResult.cpp",
51     "WebAuthnService.cpp",
52     "WebAuthnTransactionChild.cpp",
53     "WebAuthnTransactionParent.cpp",
54     "WebAuthnUtil.cpp",
57 include("/ipc/chromium/chromium-config.mozbuild")
59 FINAL_LIBRARY = "xul"
61 LOCAL_INCLUDES += [
62     "/dom/base",
63     "/dom/crypto",
64     "/security/manager/ssl",
65     "/third_party/rust",
68 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
69     UNIFIED_SOURCES += [
70         "AndroidWebAuthnService.cpp",
71     ]
73 if CONFIG["TARGET_OS"] == "OSX":
74     UNIFIED_SOURCES += [
75         "MacOSWebAuthnService.mm",
76     ]
77     OS_LIBS += [
78         "-framework AuthenticationServices",
79     ]
81 if CONFIG["OS_ARCH"] == "WINNT":
82     OS_LIBS += [
83         "hid",
84     ]
86 if CONFIG["OS_TARGET"] == "WINNT":
87     EXPORTS.mozilla.dom += [
88         "WinWebAuthnService.h",
89     ]
90     UNIFIED_SOURCES += [
91         "WinWebAuthnService.cpp",
92     ]
94 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
95 BROWSER_CHROME_MANIFESTS += [
96     "tests/browser/browser.toml",