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
3 # found in the LICENSE file.
9 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chromecast==1 and target_arch!="arm"))', {
15 # Source files that are used in production code for Android, and in tests
18 'midi_manager_usb.cc',
20 'usb_midi_descriptor_parser.cc',
21 'usb_midi_descriptor_parser.h',
24 'usb_midi_input_stream.cc',
25 'usb_midi_input_stream.h',
27 'usb_midi_output_stream.cc',
28 'usb_midi_output_stream.h',
33 # GN version: //media/midi
34 'target_name': 'midi',
35 'type': '<(component)',
37 '../../base/base.gyp:base',
40 'MIDI_IMPLEMENTATION',
49 'midi_manager_android.cc',
50 'midi_manager_android.h',
51 'midi_manager_mac.cc',
53 'midi_manager_win.cc',
55 'midi_message_queue.cc',
56 'midi_message_queue.h',
57 'midi_message_util.cc',
58 'midi_message_util.h',
65 'usb_midi_device_android.cc',
66 'usb_midi_device_android.h',
67 'usb_midi_device_factory_android.cc',
68 'usb_midi_device_factory_android.h',
70 'direct_dependent_settings': {
76 ['use_alsa==1 and use_udev==1', {
78 '../../crypto/crypto.gyp:crypto',
79 '../../device/udev_linux/udev.gyp:udev_linux',
86 'midi_manager_alsa.cc',
87 'midi_manager_alsa.h',
97 '../../base/base.gyp:base_i18n',
102 '<@(usb_midi_sources)',
103 'midi_device_android.cc',
104 'midi_device_android.h',
105 'midi_input_port_android.cc',
106 'midi_input_port_android.h',
107 'midi_jni_registrar.cc',
108 'midi_jni_registrar.h',
109 'midi_output_port_android.cc',
110 'midi_output_port_android.h',
119 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
120 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
126 '../../device/usb/usb.gyp:device_usb',
132 # GN version: //media/midi:midi_unittests
133 'target_name': 'midi_unittests',
134 'type': '<(gtest_target_type)',
137 '../../base/base.gyp:base',
138 '../../base/base.gyp:run_all_unittests',
139 '../../testing/gtest.gyp:gtest',
145 'midi_manager_unittest.cc',
146 'midi_manager_usb_unittest.cc',
147 'midi_message_queue_unittest.cc',
148 'midi_message_util_unittest.cc',
149 'usb_midi_descriptor_parser_unittest.cc',
150 'usb_midi_input_stream_unittest.cc',
151 'usb_midi_output_stream_unittest.cc',
154 ['use_alsa==1 and use_udev==1', {
160 'midi_manager_alsa_unittest.cc',
165 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
170 '../../testing/android/native_test.gyp:native_test_native_code',
174 '<@(usb_midi_sources)',
179 'midi_manager_mac_unittest.cc',
190 'target_name': 'midi_unittests_apk',
197 'test_suite_name': 'midi_unittests',
198 'isolate_file': 'midi_unittests.isolate',
200 'includes': ['../../build/apk_test.gypi'],
203 # GN: //media/midi:midi_java
204 'target_name': 'midi_java',
207 '../../base/base.gyp:base',
210 'java_in_dir': 'java',
212 'includes': ['../../build/java.gypi' ],
215 # GN: //media/midi:midi_jni_headers
216 'target_name': 'midi_jni_headers',
219 'java/src/org/chromium/media/midi/MidiDeviceAndroid.java',
220 'java/src/org/chromium/media/midi/MidiManagerAndroid.java',
221 'java/src/org/chromium/media/midi/MidiInputPortAndroid.java',
222 'java/src/org/chromium/media/midi/MidiOutputPortAndroid.java',
223 'java/src/org/chromium/media/midi/UsbMidiDeviceAndroid.java',
224 'java/src/org/chromium/media/midi/UsbMidiDeviceFactoryAndroid.java',
227 'jni_gen_package': 'media/midi',
229 'includes': ['../../build/jni_generator.gypi'],
233 ['test_isolation_mode != "noop"', {
236 'target_name': 'midi_unittests_run',
242 '../../build/isolate.gypi',
245 'midi_unittests.isolate',