Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Unified Diff: media/midi/BUILD.gn

Issue 2243183002: Web MIDI backend for Windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/midi/BUILD.gn
diff --git a/media/midi/BUILD.gn b/media/midi/BUILD.gn
index cfeb039968141daa27e546d6083a43844dc981fb..28feeade983e2c2f408662028cc4ee1f1938d48d 100644
--- a/media/midi/BUILD.gn
+++ b/media/midi/BUILD.gn
@@ -79,8 +79,6 @@ component("midi") {
"midi_manager.h",
"midi_manager_mac.cc",
"midi_manager_mac.h",
- "midi_manager_win.cc",
- "midi_manager_win.h",
"midi_message_queue.cc",
"midi_message_queue.h",
"midi_message_util.cc",
@@ -139,6 +137,24 @@ component("midi") {
if (is_win) {
deps += [ "//device/usb" ]
+
+ if (midi_use_winrt) {
+ sources += [
+ "midi_manager_winrt.cc",
+ "midi_manager_winrt.h",
+ ]
+
+ # TODO(crbug.com/512433): WRL suggests linking with runtimeobject.lib
+ # instead of loading methods dynamically at runtime (as in
+ # base::win::IsWindows10TabletMode). Works in both static and component
+ # builds but should require further checks.
+ libs += [ "runtimeobject.lib" ]
+ } else {
+ sources += [
+ "midi_manager_win.cc",
+ "midi_manager_win.h",
+ ]
+ }
}
if (use_alsa && use_udev) {

Powered by Google App Engine
This is Rietveld 408576698