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

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: RemovePortEventHandlers() in StopWatcher(), fixup 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
« no previous file with comments | « no previous file | media/midi/midi_manager_winrt.h » ('j') | media/midi/midi_manager_winrt.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/BUILD.gn
diff --git a/media/midi/BUILD.gn b/media/midi/BUILD.gn
index cfeb039968141daa27e546d6083a43844dc981fb..30480449848138f3e83d5b79097af16bddc9ee05 100644
--- a/media/midi/BUILD.gn
+++ b/media/midi/BUILD.gn
@@ -6,6 +6,7 @@ import("//build/config/android/config.gni")
import("//build/config/features.gni")
import("//build/config/ui.gni")
import("//media/media_options.gni")
+import("//media/midi/midi_options.gni")
import("//testing/test.gni")
if (is_android) {
@@ -79,8 +80,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 +138,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) {
« no previous file with comments | « no previous file | media/midi/midi_manager_winrt.h » ('j') | media/midi/midi_manager_winrt.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698