| OLD | NEW |
| 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") | |
| 10 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 11 | 10 |
| 12 if (is_android) { | 11 if (is_android) { |
| 13 # For generate_jni(). | 12 # For generate_jni(). |
| 14 import("//build/config/android/rules.gni") | 13 import("//build/config/android/rules.gni") |
| 15 } | 14 } |
| 16 | 15 |
| 17 # Common configuration for targets in the media/midi directory. | 16 # Common configuration for targets in the media/midi directory. |
| 18 config("midi_config") { | 17 config("midi_config") { |
| 19 if (use_alsa && use_udev) { | 18 if (use_alsa && use_udev) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 129 |
| 131 if (is_mac) { | 130 if (is_mac) { |
| 132 libs += [ | 131 libs += [ |
| 133 "CoreAudio.framework", | 132 "CoreAudio.framework", |
| 134 "CoreFoundation.framework", | 133 "CoreFoundation.framework", |
| 135 "CoreMIDI.framework", | 134 "CoreMIDI.framework", |
| 136 ] | 135 ] |
| 137 } | 136 } |
| 138 | 137 |
| 139 if (is_win) { | 138 if (is_win) { |
| 140 if (midi_use_winrt) { | 139 deps += [ "//device/usb" ] |
| 141 sources += [ | 140 sources += [ |
| 142 "midi_manager_winrt.cc", | 141 "midi_manager_win.cc", |
| 143 "midi_manager_winrt.h", | 142 "midi_manager_win.h", |
| 144 ] | 143 "midi_manager_winrt.cc", |
| 145 } else { | 144 "midi_manager_winrt.h", |
| 146 deps += [ "//device/usb" ] | 145 ] |
| 147 sources += [ | |
| 148 "midi_manager_win.cc", | |
| 149 "midi_manager_win.h", | |
| 150 ] | |
| 151 } | |
| 152 } | 146 } |
| 153 | 147 |
| 154 if (use_alsa && use_udev) { | 148 if (use_alsa && use_udev) { |
| 155 deps += [ | 149 deps += [ |
| 156 "//crypto", | 150 "//crypto", |
| 157 "//crypto:platform", | 151 "//crypto:platform", |
| 158 ] | 152 ] |
| 159 libs += [ "asound" ] | 153 libs += [ "asound" ] |
| 160 sources += [ | 154 sources += [ |
| 161 "midi_manager_alsa.cc", | 155 "midi_manager_alsa.cc", |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 sources += [ "midi_manager_alsa_unittest.cc" ] | 196 sources += [ "midi_manager_alsa_unittest.cc" ] |
| 203 } | 197 } |
| 204 | 198 |
| 205 if (use_x11) { | 199 if (use_x11) { |
| 206 deps += [ "//tools/xdisplaycheck" ] | 200 deps += [ "//tools/xdisplaycheck" ] |
| 207 } | 201 } |
| 208 | 202 |
| 209 # This target should not require the Chrome executable to run. | 203 # This target should not require the Chrome executable to run. |
| 210 assert_no_deps = [ "//chrome" ] | 204 assert_no_deps = [ "//chrome" ] |
| 211 } | 205 } |
| OLD | NEW |