| 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("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| 11 if (is_android) { | 11 if (is_android) { |
| 12 # For generate_jni(). | 12 # For generate_jni(). |
| 13 import("//build/config/android/rules.gni") | 13 import("//build/config/android/rules.gni") |
| 14 } | 14 } |
| 15 | 15 |
| 16 # Common configuration for targets in the media/midi directory. | 16 # Common configuration for targets in the media/midi directory. |
| 17 config("midi_config") { | 17 config("midi_config") { |
| 18 if (use_alsa) { | 18 if (use_alsa && use_udev) { |
| 19 defines = [ | 19 defines = [ |
| 20 "USE_ALSA", | 20 "USE_ALSA", |
| 21 "USE_UDEV", | 21 "USE_UDEV", |
| 22 ] | 22 ] |
| 23 } | 23 } |
| 24 | 24 |
| 25 visibility = [ ":*" ] | 25 visibility = [ ":*" ] |
| 26 } | 26 } |
| 27 | 27 |
| 28 # USB MIDI specific source files that are used in Android port, and unit tests. | 28 # USB MIDI specific source files that are used in Android port, and unit tests. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 if (use_alsa && use_udev) { | 193 if (use_alsa && use_udev) { |
| 194 sources += [ "midi_manager_alsa_unittest.cc" ] | 194 sources += [ "midi_manager_alsa_unittest.cc" ] |
| 195 } | 195 } |
| 196 | 196 |
| 197 if (use_x11) { | 197 if (use_x11) { |
| 198 deps += [ "//tools/xdisplaycheck" ] | 198 deps += [ "//tools/xdisplaycheck" ] |
| 199 } | 199 } |
| 200 } | 200 } |
| OLD | NEW |