Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: media/midi/midi.gyp

Issue 1085843003: Revert of Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 'conditions': [
9 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chr omecast==1 and target_arch!="arm"))', {
10 'use_alsa%': 1,
11 }, {
12 'use_alsa%': 0,
13 }],
14 ],
15 # Source files that are used in production code for Android, and in tests
16 # for others.
17 'usb_midi_sources': [
18 'midi_manager_usb.cc',
19 'midi_manager_usb.h',
20 'usb_midi_descriptor_parser.cc',
21 'usb_midi_descriptor_parser.h',
22 'usb_midi_device.h',
23 'usb_midi_input_stream.cc',
24 'usb_midi_input_stream.h',
25 'usb_midi_jack.h',
26 'usb_midi_output_stream.cc',
27 'usb_midi_output_stream.h',
28 ],
29 },
30 'targets': [
31 {
32 # GN version: //media/midi
33 'target_name': 'midi',
34 'type': '<(component)',
35 'dependencies': [
36 '../../base/base.gyp:base',
37 ],
38 'defines': [
39 'MEDIA_IMPLEMENTATION',
40 ],
41 'include_dirs': [
42 '../..',
43 ],
44 'sources': [
45 'midi_manager.cc',
46 'midi_manager.h',
47 'midi_manager_android.cc',
48 'midi_manager_mac.cc',
49 'midi_manager_mac.h',
50 'midi_manager_win.cc',
51 'midi_manager_win.h',
52 'midi_message_queue.cc',
53 'midi_message_queue.h',
54 'midi_message_util.cc',
55 'midi_message_util.h',
56 'midi_port_info.cc',
57 'midi_port_info.h',
58 'midi_scheduler.cc',
59 'midi_scheduler.h',
60 'usb_midi_device_android.cc',
61 'usb_midi_device_android.h',
62 'usb_midi_device_factory_android.cc',
63 'usb_midi_device_factory_android.h',
64 ],
65 'direct_dependent_settings': {
66 'include_dirs': [
67 '../..',
68 ],
69 },
70 'conditions': [
71 ['use_alsa==1', {
72 'dependencies': [
73 '../../crypto/crypto.gyp:crypto',
74 ],
75 'defines': [
76 'USE_ALSA',
77 ],
78 'sources': [
79 'midi_manager_alsa.cc',
80 'midi_manager_alsa.h',
81 ],
82 'link_settings': {
83 'libraries': [
84 '-lasound',
85 ],
86 },
87 }],
88 ['OS=="android"', {
89 'dependencies': [
90 'midi_jni_headers',
91 'midi_java',
92 ],
93 'sources': [
94 '<@(usb_midi_sources)',
95 'midi_jni_registrar.cc',
96 'midi_jni_registrar.h',
97 ],
98 }],
99 ['OS=="mac"', {
100 'link_settings': {
101 'libraries': [
102 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
103 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
104 ],
105 },
106 }],
107 ['OS=="win"', {
108 'dependencies': [
109 '../../device/usb/usb.gyp:device_usb',
110 ],
111 }],
112 ], # conditions
113 },
114 {
115 # GN version: //media/midi:midi_unittests
116 'target_name': 'midi_unittests',
117 'type': '<(gtest_target_type)',
118 'dependencies': [
119 'midi',
120 '../../base/base.gyp:base',
121 '../../base/base.gyp:run_all_unittests',
122 '../../testing/gtest.gyp:gtest',
123 ],
124 'defines': [
125 'MEDIA_IMPLEMENTATION',
126 ],
127 'include_dirs': [
128 '../..',
129 ],
130 'sources': [
131 'midi_manager_unittest.cc',
132 'midi_manager_usb_unittest.cc',
133 'midi_message_queue_unittest.cc',
134 'midi_message_util_unittest.cc',
135 'usb_midi_descriptor_parser_unittest.cc',
136 'usb_midi_input_stream_unittest.cc',
137 'usb_midi_output_stream_unittest.cc',
138 ],
139 'conditions': [
140 ['use_alsa==1', {
141 'defines': [
142 'USE_ALSA',
143 ],
144 'sources': [
145 'midi_manager_alsa_unittest.cc',
146 ],
147 }],
148 ['OS!="android"', {
149 'sources': [
150 '<@(usb_midi_sources)',
151 ],
152 }],
153 ['OS=="mac"', {
154 'sources': [
155 'midi_manager_mac_unittest.cc',
156 ],
157 }],
158 ],
159 },
160 ],
161 'conditions': [
162 ['OS=="android"', {
163 'targets': [
164 {
165 # TODO(GN)
166 'target_name': 'midi_unittests_apk',
167 'type': 'none',
168 'dependencies': [
169 'midi_java',
170 'midi_unittests',
171 ],
172 'variables': {
173 'test_suite_name': 'midi_unittests',
174 },
175 'includes': ['../../build/apk_test.gypi'],
176 },
177 {
178 # GN: //media/midi:midi_java
179 'target_name': 'midi_java',
180 'type': 'none',
181 'dependencies': [
182 '../../base/base.gyp:base',
183 ],
184 'variables': {
185 'java_in_dir': 'java',
186 },
187 'includes': ['../../build/java.gypi' ],
188 },
189 {
190 # GN: //media/midi:midi_jni_headers
191 'target_name': 'midi_jni_headers',
192 'type': 'none',
193 'sources': [
194 'java/src/org/chromium/media/midi/UsbMidiDeviceAndroid.java',
195 'java/src/org/chromium/media/midi/UsbMidiDeviceFactoryAndroid.java',
196 ],
197 'variables': {
198 'jni_gen_package': 'media/midi',
199 },
200 'includes': ['../../build/jni_generator.gypi'],
201 },
202 ],
203 }],
204 ['test_isolation_mode != "noop"', {
205 'targets': [
206 {
207 'target_name': 'midi_unittests_run',
208 'type': 'none',
209 'dependencies': [
210 'midi_unittests',
211 ],
212 'includes': [
213 '../../build/isolate.gypi',
214 ],
215 'sources': [
216 'midi_unittests.isolate',
217 ],
218 },
219 ],
220 }],
221 ],
222 }
OLDNEW
« no previous file with comments | « media/midi/java/src/org/chromium/media/midi/UsbMidiDeviceFactoryAndroid.java ('k') | media/midi/midi_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698