| 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("//mojo/public/tools/bindings/mojom.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 "midi_scheduler.cc", | 89 "midi_scheduler.cc", |
| 89 "midi_scheduler.h", | 90 "midi_scheduler.h", |
| 90 "midi_switches.cc", | 91 "midi_switches.cc", |
| 91 "midi_switches.h", | 92 "midi_switches.h", |
| 92 ] | 93 ] |
| 93 | 94 |
| 94 configs += [ ":midi_config" ] | 95 configs += [ ":midi_config" ] |
| 95 | 96 |
| 96 defines = [ "MIDI_IMPLEMENTATION" ] | 97 defines = [ "MIDI_IMPLEMENTATION" ] |
| 97 deps = [ | 98 deps = [ |
| 99 ":mojo", |
| 98 "//base", | 100 "//base", |
| 99 ] | 101 ] |
| 100 libs = [] | 102 libs = [] |
| 101 | 103 |
| 102 if (is_android) { | 104 if (is_android) { |
| 103 # TODO(yhirano): Consider having "android" subdirectory. | 105 # TODO(yhirano): Consider having "android" subdirectory. |
| 104 sources += [ | 106 sources += [ |
| 105 "midi_device_android.cc", | 107 "midi_device_android.cc", |
| 106 "midi_device_android.h", | 108 "midi_device_android.h", |
| 107 "midi_jni_registrar.cc", | 109 "midi_jni_registrar.cc", |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 "midi_manager_alsa.cc", | 162 "midi_manager_alsa.cc", |
| 161 "midi_manager_alsa.h", | 163 "midi_manager_alsa.h", |
| 162 ] | 164 ] |
| 163 } | 165 } |
| 164 | 166 |
| 165 if (use_udev) { | 167 if (use_udev) { |
| 166 deps += [ "//device/udev_linux" ] | 168 deps += [ "//device/udev_linux" ] |
| 167 } | 169 } |
| 168 } | 170 } |
| 169 | 171 |
| 172 mojom("mojo") { |
| 173 sources = [ |
| 174 "midi_service.mojom", |
| 175 ] |
| 176 use_new_wrapper_types = true |
| 177 } |
| 178 |
| 170 test("midi_unittests") { | 179 test("midi_unittests") { |
| 171 sources = [ | 180 sources = [ |
| 172 "midi_manager_unittest.cc", | 181 "midi_manager_unittest.cc", |
| 173 "midi_manager_usb_unittest.cc", | 182 "midi_manager_usb_unittest.cc", |
| 174 "midi_message_queue_unittest.cc", | 183 "midi_message_queue_unittest.cc", |
| 175 "midi_message_util_unittest.cc", | 184 "midi_message_util_unittest.cc", |
| 176 "usb_midi_descriptor_parser_unittest.cc", | 185 "usb_midi_descriptor_parser_unittest.cc", |
| 177 "usb_midi_input_stream_unittest.cc", | 186 "usb_midi_input_stream_unittest.cc", |
| 178 "usb_midi_output_stream_unittest.cc", | 187 "usb_midi_output_stream_unittest.cc", |
| 179 ] | 188 ] |
| (...skipping 21 matching lines...) Expand all Loading... |
| 201 sources += [ "midi_manager_alsa_unittest.cc" ] | 210 sources += [ "midi_manager_alsa_unittest.cc" ] |
| 202 } | 211 } |
| 203 | 212 |
| 204 if (use_x11) { | 213 if (use_x11) { |
| 205 deps += [ "//tools/xdisplaycheck" ] | 214 deps += [ "//tools/xdisplaycheck" ] |
| 206 } | 215 } |
| 207 | 216 |
| 208 # This target should not require the Chrome executable to run. | 217 # This target should not require the Chrome executable to run. |
| 209 assert_no_deps = [ "//chrome" ] | 218 assert_no_deps = [ "//chrome" ] |
| 210 } | 219 } |
| OLD | NEW |