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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//media/media_options.gni") 8 import("//media/media_options.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 } 73 }
74 74
75 component("midi") { 75 component("midi") {
76 sources = [ 76 sources = [
77 "midi_export.h", 77 "midi_export.h",
78 "midi_manager.cc", 78 "midi_manager.cc",
79 "midi_manager.h", 79 "midi_manager.h",
80 "midi_manager_mac.cc", 80 "midi_manager_mac.cc",
81 "midi_manager_mac.h", 81 "midi_manager_mac.h",
82 "midi_manager_win.cc",
83 "midi_manager_win.h",
84 "midi_message_queue.cc", 82 "midi_message_queue.cc",
85 "midi_message_queue.h", 83 "midi_message_queue.h",
86 "midi_message_util.cc", 84 "midi_message_util.cc",
87 "midi_message_util.h", 85 "midi_message_util.h",
88 "midi_port_info.cc", 86 "midi_port_info.cc",
89 "midi_port_info.h", 87 "midi_port_info.h",
90 "midi_scheduler.cc", 88 "midi_scheduler.cc",
91 "midi_scheduler.h", 89 "midi_scheduler.h",
92 "midi_switches.cc", 90 "midi_switches.cc",
93 "midi_switches.h", 91 "midi_switches.h",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 if (is_mac) { 130 if (is_mac) {
133 libs += [ 131 libs += [
134 "CoreAudio.framework", 132 "CoreAudio.framework",
135 "CoreFoundation.framework", 133 "CoreFoundation.framework",
136 "CoreMIDI.framework", 134 "CoreMIDI.framework",
137 ] 135 ]
138 } 136 }
139 137
140 if (is_win) { 138 if (is_win) {
141 deps += [ "//device/usb" ] 139 deps += [ "//device/usb" ]
140
141 if (midi_use_winrt) {
142 sources += [
143 "midi_manager_winrt.cc",
144 "midi_manager_winrt.h",
145 ]
146
147 # TODO(crbug.com/512433): WRL suggests linking with runtimeobject.lib
148 # instead of loading methods dynamically at runtime (as in
149 # base::win::IsWindows10TabletMode). Works in both static and component
150 # builds but should require further checks.
151 libs += [ "runtimeobject.lib" ]
152 } else {
153 sources += [
154 "midi_manager_win.cc",
155 "midi_manager_win.h",
156 ]
157 }
142 } 158 }
143 159
144 if (use_alsa && use_udev) { 160 if (use_alsa && use_udev) {
145 deps += [ 161 deps += [
146 "//crypto", 162 "//crypto",
147 "//crypto:platform", 163 "//crypto:platform",
148 ] 164 ]
149 libs += [ "asound" ] 165 libs += [ "asound" ]
150 sources += [ 166 sources += [
151 "midi_manager_alsa.cc", 167 "midi_manager_alsa.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 sources += [ "midi_manager_alsa_unittest.cc" ] 208 sources += [ "midi_manager_alsa_unittest.cc" ]
193 } 209 }
194 210
195 if (use_x11) { 211 if (use_x11) {
196 deps += [ "//tools/xdisplaycheck" ] 212 deps += [ "//tools/xdisplaycheck" ]
197 } 213 }
198 214
199 # This target should not require the Chrome executable to run. 215 # This target should not require the Chrome executable to run.
200 assert_no_deps = [ "//chrome" ] 216 assert_no_deps = [ "//chrome" ]
201 } 217 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698