Bug 1861467 - [wpt-sync] Update web-platform-tests to eedf737ce39c512d0ca3471f988972e...
[gecko.git] / dom / webauthn / moz.build
blob4205db43699e52a5fdd4dc0e00c2199ddc810237
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     "WebAuthnManager.cpp",
47     "WebAuthnManagerBase.cpp",
48     "WebAuthnPromiseHolder.cpp",
49     "WebAuthnResult.cpp",
50     "WebAuthnService.cpp",
51     "WebAuthnTransactionChild.cpp",
52     "WebAuthnTransactionParent.cpp",
53     "WebAuthnUtil.cpp",
56 include("/ipc/chromium/chromium-config.mozbuild")
58 FINAL_LIBRARY = "xul"
60 LOCAL_INCLUDES += [
61     "/dom/base",
62     "/dom/crypto",
63     "/security/manager/ssl",
64     "/third_party/rust",
67 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
68     UNIFIED_SOURCES += [
69         "AndroidWebAuthnService.cpp",
70     ]
72 if CONFIG["OS_ARCH"] == "WINNT":
73     OS_LIBS += [
74         "hid",
75     ]
77 if CONFIG["OS_TARGET"] == "WINNT":
78     EXPORTS.mozilla.dom += [
79         "WinWebAuthnService.h",
80     ]
81     UNIFIED_SOURCES += [
82         "WinWebAuthnService.cpp",
83     ]
85 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
86 BROWSER_CHROME_MANIFESTS += [
87     "tests/browser/browser.toml",