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_mac.cc',
52 'midi_manager_win.cc',
54 'midi_message_queue.cc',
55 'midi_message_queue.h',
56 'midi_message_util.cc',
57 'midi_message_util.h',
62 'usb_midi_device_android.cc',
63 'usb_midi_device_android.h',
64 'usb_midi_device_factory_android.cc',
65 'usb_midi_device_factory_android.h',
67 'direct_dependent_settings': {
73 ['use_alsa==1 and use_udev==1', {
75 '../../crypto/crypto.gyp:crypto',
76 '../../device/udev_linux/udev.gyp:udev_linux',
83 'midi_manager_alsa.cc',
84 'midi_manager_alsa.h',
94 '../../base/base.gyp:base_i18n',
99 '<@(usb_midi_sources)',
100 'midi_jni_registrar.cc',
101 'midi_jni_registrar.h',
110 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
111 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
117 '../../device/usb/usb.gyp:device_usb',
123 # GN version: //media/midi:midi_unittests
124 'target_name': 'midi_unittests',
125 'type': '<(gtest_target_type)',
128 '../../base/base.gyp:base',
129 '../../base/base.gyp:run_all_unittests',
130 '../../testing/gtest.gyp:gtest',
136 'midi_manager_unittest.cc',
137 'midi_manager_usb_unittest.cc',
138 'midi_message_queue_unittest.cc',
139 'midi_message_util_unittest.cc',
140 'usb_midi_descriptor_parser_unittest.cc',
141 'usb_midi_input_stream_unittest.cc',
142 'usb_midi_output_stream_unittest.cc',
145 ['use_alsa==1 and use_udev==1', {
151 'midi_manager_alsa_unittest.cc',
156 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
161 '../../testing/android/native_test.gyp:native_test_native_code',
165 '<@(usb_midi_sources)',
170 'midi_manager_mac_unittest.cc',
181 'target_name': 'midi_unittests_apk',
188 'test_suite_name': 'midi_unittests',
189 'isolate_file': 'midi_unittests.isolate',
191 'includes': ['../../build/apk_test.gypi'],
194 # GN: //media/midi:midi_java
195 'target_name': 'midi_java',
198 '../../base/base.gyp:base',
201 'java_in_dir': 'java',
203 'includes': ['../../build/java.gypi' ],
206 # GN: //media/midi:midi_jni_headers
207 'target_name': 'midi_jni_headers',
210 'java/src/org/chromium/media/midi/UsbMidiDeviceAndroid.java',
211 'java/src/org/chromium/media/midi/UsbMidiDeviceFactoryAndroid.java',
214 'jni_gen_package': 'media/midi',
216 'includes': ['../../build/jni_generator.gypi'],
220 ['test_isolation_mode != "noop"', {
223 'target_name': 'midi_unittests_run',
229 '../../build/isolate.gypi',
232 'midi_unittests.isolate',