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

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
« no previous file with comments | « no previous file | media/midi/midi_manager_winrt.h » ('j') | media/midi/midi_manager_winrt.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//media/midi/midi_options.gni")
9 import("//testing/test.gni") 10 import("//testing/test.gni")
10 11
11 if (is_android) { 12 if (is_android) {
12 # For generate_jni(). 13 # For generate_jni().
13 import("//build/config/android/rules.gni") 14 import("//build/config/android/rules.gni")
14 } 15 }
15 16
16 # Common configuration for targets in the media/midi directory. 17 # Common configuration for targets in the media/midi directory.
17 config("midi_config") { 18 config("midi_config") {
18 if (use_alsa && use_udev) { 19 if (use_alsa && use_udev) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 73 }
73 } 74 }
74 75
75 component("midi") { 76 component("midi") {
76 sources = [ 77 sources = [
77 "midi_export.h", 78 "midi_export.h",
78 "midi_manager.cc", 79 "midi_manager.cc",
79 "midi_manager.h", 80 "midi_manager.h",
80 "midi_manager_mac.cc", 81 "midi_manager_mac.cc",
81 "midi_manager_mac.h", 82 "midi_manager_mac.h",
82 "midi_manager_win.cc",
83 "midi_manager_win.h",
84 "midi_message_queue.cc", 83 "midi_message_queue.cc",
85 "midi_message_queue.h", 84 "midi_message_queue.h",
86 "midi_message_util.cc", 85 "midi_message_util.cc",
87 "midi_message_util.h", 86 "midi_message_util.h",
88 "midi_port_info.cc", 87 "midi_port_info.cc",
89 "midi_port_info.h", 88 "midi_port_info.h",
90 "midi_scheduler.cc", 89 "midi_scheduler.cc",
91 "midi_scheduler.h", 90 "midi_scheduler.h",
92 "midi_switches.cc", 91 "midi_switches.cc",
93 "midi_switches.h", 92 "midi_switches.h",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 if (is_mac) { 131 if (is_mac) {
133 libs += [ 132 libs += [
134 "CoreAudio.framework", 133 "CoreAudio.framework",
135 "CoreFoundation.framework", 134 "CoreFoundation.framework",
136 "CoreMIDI.framework", 135 "CoreMIDI.framework",
137 ] 136 ]
138 } 137 }
139 138
140 if (is_win) { 139 if (is_win) {
141 deps += [ "//device/usb" ] 140 deps += [ "//device/usb" ]
141
142 if (midi_use_winrt) {
143 sources += [
144 "midi_manager_winrt.cc",
145 "midi_manager_winrt.h",
146 ]
147
148 # TODO(crbug.com/512433): WRL suggests linking with runtimeobject.lib
149 # instead of loading methods dynamically at runtime (as in
150 # base::win::IsWindows10TabletMode). Works in both static and component
151 # builds but should require further checks.
152 libs += [ "runtimeobject.lib" ]
153 } else {
154 sources += [
155 "midi_manager_win.cc",
156 "midi_manager_win.h",
157 ]
158 }
142 } 159 }
143 160
144 if (use_alsa && use_udev) { 161 if (use_alsa && use_udev) {
145 deps += [ 162 deps += [
146 "//crypto", 163 "//crypto",
147 "//crypto:platform", 164 "//crypto:platform",
148 ] 165 ]
149 libs += [ "asound" ] 166 libs += [ "asound" ]
150 sources += [ 167 sources += [
151 "midi_manager_alsa.cc", 168 "midi_manager_alsa.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 sources += [ "midi_manager_alsa_unittest.cc" ] 209 sources += [ "midi_manager_alsa_unittest.cc" ]
193 } 210 }
194 211
195 if (use_x11) { 212 if (use_x11) {
196 deps += [ "//tools/xdisplaycheck" ] 213 deps += [ "//tools/xdisplaycheck" ]
197 } 214 }
198 215
199 # This target should not require the Chrome executable to run. 216 # This target should not require the Chrome executable to run.
200 assert_no_deps = [ "//chrome" ] 217 assert_no_deps = [ "//chrome" ]
201 } 218 }
OLDNEW
« 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