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

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/win/midi_winrt.gni")
6 import("//build/config/features.gni") 7 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
8 import("//media/media_options.gni") 9 import("//media/media_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
(...skipping 56 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 130
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" ]
Takashi Toyoshima 2016/08/15 08:46:23 Hum... this line 140 might be an existing bug. I m
Shao-Chuan Lee 2016/08/16 07:42:24 Will have it removed in another CL.
141 sources += [ "midi_manager_win.h" ]
Takashi Toyoshima 2016/08/15 08:46:23 I think we should have a dedicated header, _winrt.
Shao-Chuan Lee 2016/08/16 07:42:24 Done.
142
143 if (midi_winrt) {
144 sources += [ "midi_manager_winrt.cc" ]
145 libs += [ "runtimeobject.lib" ]
Takashi Toyoshima 2016/08/15 08:46:23 Can you add TODO(crbug.com/512433) with comments f
Shao-Chuan Lee 2016/08/16 07:42:24 Done.
146 } else {
147 sources += [ "midi_manager_win.cc" ]
148 }
142 } 149 }
143 150
144 if (use_alsa && use_udev) { 151 if (use_alsa && use_udev) {
145 deps += [ 152 deps += [
146 "//crypto", 153 "//crypto",
147 "//crypto:platform", 154 "//crypto:platform",
148 ] 155 ]
149 libs += [ "asound" ] 156 libs += [ "asound" ]
150 sources += [ 157 sources += [
151 "midi_manager_alsa.cc", 158 "midi_manager_alsa.cc",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 sources += [ "midi_manager_alsa_unittest.cc" ] 199 sources += [ "midi_manager_alsa_unittest.cc" ]
193 } 200 }
194 201
195 if (use_x11) { 202 if (use_x11) {
196 deps += [ "//tools/xdisplaycheck" ] 203 deps += [ "//tools/xdisplaycheck" ]
197 } 204 }
198 205
199 # This target should not require the Chrome executable to run. 206 # This target should not require the Chrome executable to run.
200 assert_no_deps = [ "//chrome" ] 207 assert_no_deps = [ "//chrome" ]
201 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698