1 # -*- Mode: python; c-basic-offset: 4; 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/.
13 EXPORTS.mozilla.dom += [
15 "MIDIAccessManager.h",
19 "MIDIManagerParent.h",
24 "MIDIPermissionRequest.h",
25 "MIDIPlatformRunnables.h",
26 "MIDIPlatformService.h",
29 "MIDIPortInterface.h",
36 "MIDIAccessManager.cpp",
40 "MIDIManagerChild.cpp",
41 "MIDIManagerParent.cpp",
42 "MIDIMessageEvent.cpp",
43 "MIDIMessageQueue.cpp",
46 "MIDIPermissionRequest.cpp",
47 "MIDIPlatformRunnables.cpp",
48 "MIDIPlatformService.cpp",
51 "MIDIPortInterface.cpp",
54 "TestMIDIPlatformService.cpp",
57 include("/ipc/chromium/chromium-config.mozbuild")
59 if CONFIG["MOZ_WEBMIDI_MIDIR_IMPL"]:
60 DEFINES["MOZ_WEBMIDI_MIDIR_IMPL"] = True
61 DIRS += ["midir_impl"]
63 "midirMIDIPlatformService.cpp",
66 if CONFIG["OS_TARGET"] == "Linux":
67 OS_LIBS += ["asound"] # Required by midir
68 UNIFIED_SOURCES += ["AlsaCompatibility.cpp"]
75 MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]