Source code

Revision control

Other Tools

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/.
6
7
with Files("**"):
8
BUG_COMPONENT = ("Core", "DOM: Web Authentication")
9
10
IPDL_SOURCES += [
11
'PWebAuthnTransaction.ipdl'
12
]
13
14
XPIDL_SOURCES += [
15
'nsIU2FTokenManager.idl'
16
]
17
18
XPIDL_MODULE = 'dom_webauthn'
19
20
EXPORTS.mozilla.dom += [
21
'AuthenticatorAssertionResponse.h',
22
'AuthenticatorAttestationResponse.h',
23
'AuthenticatorResponse.h',
24
'PublicKeyCredential.h',
25
'U2FHIDTokenManager.h',
26
'U2FSoftTokenManager.h',
27
'U2FTokenManager.h',
28
'U2FTokenTransport.h',
29
'WebAuthnCBORUtil.h',
30
'WebAuthnManager.h',
31
'WebAuthnManagerBase.h',
32
'WebAuthnTransactionChild.h',
33
'WebAuthnTransactionParent.h',
34
'WebAuthnUtil.h',
35
'winwebauthn/webauthn.h',
36
]
37
38
UNIFIED_SOURCES += [
39
'AuthenticatorAssertionResponse.cpp',
40
'AuthenticatorAttestationResponse.cpp',
41
'AuthenticatorResponse.cpp',
42
'cbor-cpp/src/encoder.cpp',
43
'cbor-cpp/src/output_dynamic.cpp',
44
'PublicKeyCredential.cpp',
45
'U2FHIDTokenManager.cpp',
46
'U2FSoftTokenManager.cpp',
47
'U2FTokenManager.cpp',
48
'WebAuthnCBORUtil.cpp',
49
'WebAuthnManager.cpp',
50
'WebAuthnManagerBase.cpp',
51
'WebAuthnTransactionChild.cpp',
52
'WebAuthnTransactionParent.cpp',
53
'WebAuthnUtil.cpp',
54
]
55
56
include('/ipc/chromium/chromium-config.mozbuild')
57
58
FINAL_LIBRARY = 'xul'
59
60
LOCAL_INCLUDES += [
61
'/dom/base',
62
'/dom/crypto',
63
'/security/manager/ssl',
64
'/third_party/rust',
65
]
66
67
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
68
EXPORTS.mozilla.dom += [
69
'AndroidWebAuthnTokenManager.h',
70
]
71
UNIFIED_SOURCES += [
72
'AndroidWebAuthnTokenManager.cpp',
73
]
74
75
if CONFIG['OS_ARCH'] == 'WINNT':
76
OS_LIBS += [
77
'hid',
78
]
79
80
if CONFIG['OS_TARGET'] == 'WINNT':
81
EXPORTS.mozilla.dom += [
82
'WinWebAuthnManager.h',
83
]
84
UNIFIED_SOURCES += [
85
'WinWebAuthnManager.cpp',
86
]
87
88
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
89
BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']