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

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

Issue 1121363002: GN Windows component build fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@component2
Patch Set: . Created 5 years, 7 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
« no previous file with comments | « media/midi/BUILD.gn ('k') | media/midi/midi_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'conditions': [ 8 'conditions': [
9 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chr omecast==1 and target_arch!="arm"))', { 9 ['(OS=="linux" or OS=="freebsd" or OS=="solaris") and (embedded!=1 or (chr omecast==1 and target_arch!="arm"))', {
10 'use_alsa%': 1, 10 'use_alsa%': 1,
11 }, { 11 }, {
12 'use_alsa%': 0, 12 'use_alsa%': 0,
13 }], 13 }],
14 ], 14 ],
15 # Source files that are used in production code for Android, and in tests 15 # Source files that are used in production code for Android, and in tests
16 # for others. 16 # for others.
17 'usb_midi_sources': [ 17 'usb_midi_sources': [
18 'midi_manager_usb.cc', 18 'midi_manager_usb.cc',
19 'midi_manager_usb.h', 19 'midi_manager_usb.h',
20 'usb_midi_descriptor_parser.cc', 20 'usb_midi_descriptor_parser.cc',
21 'usb_midi_descriptor_parser.h', 21 'usb_midi_descriptor_parser.h',
22 'usb_midi_device.h', 22 'usb_midi_device.h',
23 'usb_midi_export.h',
23 'usb_midi_input_stream.cc', 24 'usb_midi_input_stream.cc',
24 'usb_midi_input_stream.h', 25 'usb_midi_input_stream.h',
25 'usb_midi_jack.h', 26 'usb_midi_jack.h',
26 'usb_midi_output_stream.cc', 27 'usb_midi_output_stream.cc',
27 'usb_midi_output_stream.h', 28 'usb_midi_output_stream.h',
28 ], 29 ],
29 }, 30 },
30 'targets': [ 31 'targets': [
31 { 32 {
32 # GN version: //media/midi 33 # GN version: //media/midi
33 'target_name': 'midi', 34 'target_name': 'midi',
34 'type': '<(component)', 35 'type': '<(component)',
35 'dependencies': [ 36 'dependencies': [
36 '../../base/base.gyp:base', 37 '../../base/base.gyp:base',
37 ], 38 ],
38 'defines': [ 39 'defines': [
39 'MEDIA_IMPLEMENTATION', 40 'MIDI_IMPLEMENTATION',
40 ], 41 ],
41 'include_dirs': [ 42 'include_dirs': [
42 '../..', 43 '../..',
43 ], 44 ],
44 'sources': [ 45 'sources': [
46 'midi_export.h',
45 'midi_manager.cc', 47 'midi_manager.cc',
46 'midi_manager.h', 48 'midi_manager.h',
47 'midi_manager_android.cc', 49 'midi_manager_android.cc',
48 'midi_manager_mac.cc', 50 'midi_manager_mac.cc',
49 'midi_manager_mac.h', 51 'midi_manager_mac.h',
50 'midi_manager_win.cc', 52 'midi_manager_win.cc',
51 'midi_manager_win.h', 53 'midi_manager_win.h',
52 'midi_message_queue.cc', 54 'midi_message_queue.cc',
53 'midi_message_queue.h', 55 'midi_message_queue.h',
54 'midi_message_util.cc', 56 'midi_message_util.cc',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 'dependencies': [ 93 'dependencies': [
92 '../../base/base.gyp:base_i18n', 94 '../../base/base.gyp:base_i18n',
93 'midi_jni_headers', 95 'midi_jni_headers',
94 'midi_java', 96 'midi_java',
95 ], 97 ],
96 'sources': [ 98 'sources': [
97 '<@(usb_midi_sources)', 99 '<@(usb_midi_sources)',
98 'midi_jni_registrar.cc', 100 'midi_jni_registrar.cc',
99 'midi_jni_registrar.h', 101 'midi_jni_registrar.h',
100 ], 102 ],
103 'defines': [
104 'EXPORT_USB_MIDI',
105 ],
101 }], 106 }],
102 ['OS=="mac"', { 107 ['OS=="mac"', {
103 'link_settings': { 108 'link_settings': {
104 'libraries': [ 109 'libraries': [
105 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', 110 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
106 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework', 111 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework',
107 ], 112 ],
108 }, 113 },
109 }], 114 }],
110 ['OS=="win"', { 115 ['OS=="win"', {
111 'dependencies': [ 116 'dependencies': [
112 '../../device/usb/usb.gyp:device_usb', 117 '../../device/usb/usb.gyp:device_usb',
113 ], 118 ],
114 }], 119 }],
115 ], # conditions 120 ], # conditions
116 }, 121 },
117 { 122 {
118 # GN version: //media/midi:midi_unittests 123 # GN version: //media/midi:midi_unittests
119 'target_name': 'midi_unittests', 124 'target_name': 'midi_unittests',
120 'type': '<(gtest_target_type)', 125 'type': '<(gtest_target_type)',
121 'dependencies': [ 126 'dependencies': [
122 'midi', 127 'midi',
123 '../../base/base.gyp:base', 128 '../../base/base.gyp:base',
124 '../../base/base.gyp:run_all_unittests', 129 '../../base/base.gyp:run_all_unittests',
125 '../../testing/gtest.gyp:gtest', 130 '../../testing/gtest.gyp:gtest',
126 ], 131 ],
127 'defines': [
128 'MEDIA_IMPLEMENTATION',
129 ],
130 'include_dirs': [ 132 'include_dirs': [
131 '../..', 133 '../..',
132 ], 134 ],
133 'sources': [ 135 'sources': [
134 'midi_manager_unittest.cc', 136 'midi_manager_unittest.cc',
135 'midi_manager_usb_unittest.cc', 137 'midi_manager_usb_unittest.cc',
136 'midi_message_queue_unittest.cc', 138 'midi_message_queue_unittest.cc',
137 'midi_message_util_unittest.cc', 139 'midi_message_util_unittest.cc',
138 'usb_midi_descriptor_parser_unittest.cc', 140 'usb_midi_descriptor_parser_unittest.cc',
139 'usb_midi_input_stream_unittest.cc', 141 'usb_midi_input_stream_unittest.cc',
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 '../../build/isolate.gypi', 228 '../../build/isolate.gypi',
227 ], 229 ],
228 'sources': [ 230 'sources': [
229 'midi_unittests.isolate', 231 'midi_unittests.isolate',
230 ], 232 ],
231 }, 233 },
232 ], 234 ],
233 }], 235 }],
234 ], 236 ],
235 } 237 }
OLDNEW
« no previous file with comments | « media/midi/BUILD.gn ('k') | media/midi/midi_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698