| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 177 } |
| 178 | 178 |
| 179 if (use_alsa && use_udev) { | 179 if (use_alsa && use_udev) { |
| 180 sources += [ "midi_manager_alsa_unittest.cc" ] | 180 sources += [ "midi_manager_alsa_unittest.cc" ] |
| 181 } | 181 } |
| 182 | 182 |
| 183 if (use_x11) { | 183 if (use_x11) { |
| 184 deps += [ "//tools/xdisplaycheck" ] | 184 deps += [ "//tools/xdisplaycheck" ] |
| 185 } | 185 } |
| 186 } | 186 } |
| OLD | NEW |