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

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: crbug IDs Created 4 years, 3 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') | no next file with comments »
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/642602): This adds runtime dependency to libraries that
149 # may not be available on Windows 7. Should eventually remove this and
150 # load functions dynamically (as in base::win::IsWindows10TabletMode).
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
« no previous file with comments | « no previous file | media/midi/midi_manager_winrt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698