moz.build (2295B)
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 += ["PWebAuthnTransaction.ipdl"] 11 12 XPCOM_MANIFESTS += [ 13 "components.conf", 14 ] 15 16 XPIDL_SOURCES += [ 17 "nsIWebAuthnArgs.idl", 18 "nsIWebAuthnAttObj.idl", 19 "nsIWebAuthnPromise.idl", 20 "nsIWebAuthnResult.idl", 21 "nsIWebAuthnService.idl", 22 ] 23 24 XPIDL_MODULE = "dom_webauthn" 25 26 EXPORTS.mozilla.dom += [ 27 "AuthenticatorAssertionResponse.h", 28 "AuthenticatorAttestationResponse.h", 29 "AuthenticatorResponse.h", 30 "PublicKeyCredential.h", 31 "WebAuthnHandler.h", 32 "WebAuthnIPCUtils.h", 33 "WebAuthnPromiseHolder.h", 34 "WebAuthnTransactionChild.h", 35 "WebAuthnTransactionParent.h", 36 "WebAuthnUtil.h", 37 "winwebauthn/webauthn.h", 38 ] 39 40 UNIFIED_SOURCES += [ 41 "AuthenticatorAssertionResponse.cpp", 42 "AuthenticatorAttestationResponse.cpp", 43 "AuthenticatorResponse.cpp", 44 "PublicKeyCredential.cpp", 45 "WebAuthnArgs.cpp", 46 "WebAuthnAutoFillEntry.cpp", 47 "WebAuthnHandler.cpp", 48 "WebAuthnPromiseHolder.cpp", 49 "WebAuthnResult.cpp", 50 "WebAuthnService.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 UNIFIED_SOURCES += [ 69 "AndroidWebAuthnService.cpp", 70 ] 71 72 if CONFIG["TARGET_OS"] == "OSX": 73 UNIFIED_SOURCES += [ 74 "MacOSWebAuthnService.mm", 75 ] 76 OS_LIBS += [ 77 "-framework AuthenticationServices", 78 ] 79 80 if CONFIG["OS_ARCH"] == "WINNT": 81 OS_LIBS += [ 82 "hid", 83 ] 84 85 if CONFIG["OS_TARGET"] == "WINNT": 86 EXPORTS.mozilla.dom += [ 87 "WinWebAuthnService.h", 88 ] 89 UNIFIED_SOURCES += [ 90 "WinWebAuthnService.cpp", 91 ] 92 93 MOCHITEST_MANIFESTS += ["tests/mochitest.toml"] 94 BROWSER_CHROME_MANIFESTS += [ 95 "tests/browser/browser.toml", 96 ]