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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/capture/OWNERS ('k') | media/capture/capture_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
(Empty)
1 # Copyright 2016 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 'capture_sources': [
9 'capture_export.h',
10 'content/animated_content_sampler.cc',
11 'content/animated_content_sampler.h',
12 'content/capture_resolution_chooser.cc',
13 'content/capture_resolution_chooser.h',
14 'content/feedback_signal_accumulator.h',
15 'content/screen_capture_device_core.cc',
16 'content/screen_capture_device_core.h',
17 'content/smooth_event_sampler.cc',
18 'content/smooth_event_sampler.h',
19 'content/thread_safe_capture_oracle.cc',
20 'content/thread_safe_capture_oracle.h',
21 'content/video_capture_oracle.cc',
22 'content/video_capture_oracle.h',
23 'device_monitor_mac.h',
24 'device_monitor_mac.mm',
25 'system_message_window_win.cc',
26 'system_message_window_win.h',
27 'video/android/video_capture_device_android.cc',
28 'video/android/video_capture_device_android.h',
29 'video/android/video_capture_device_factory_android.cc',
30 'video/android/video_capture_device_factory_android.h',
31 'video/fake_video_capture_device.cc',
32 'video/fake_video_capture_device.h',
33 'video/fake_video_capture_device_factory.cc',
34 'video/fake_video_capture_device_factory.h',
35 'video/file_video_capture_device.cc',
36 'video/file_video_capture_device.h',
37 'video/file_video_capture_device_factory.cc',
38 'video/file_video_capture_device_factory.h',
39 'video/linux/v4l2_capture_delegate.cc',
40 'video/linux/v4l2_capture_delegate.h',
41 'video/linux/video_capture_device_chromeos.cc',
42 'video/linux/video_capture_device_chromeos.h',
43 'video/linux/video_capture_device_factory_linux.cc',
44 'video/linux/video_capture_device_factory_linux.h',
45 'video/linux/video_capture_device_linux.cc',
46 'video/linux/video_capture_device_linux.h',
47 'video/mac/video_capture_device_avfoundation_mac.h',
48 'video/mac/video_capture_device_avfoundation_mac.mm',
49 'video/mac/video_capture_device_decklink_mac.h',
50 'video/mac/video_capture_device_decklink_mac.mm',
51 'video/mac/video_capture_device_factory_mac.h',
52 'video/mac/video_capture_device_factory_mac.mm',
53 'video/mac/video_capture_device_mac.h',
54 'video/mac/video_capture_device_mac.mm',
55 'video/scoped_result_callback.h',
56 'video/video_capture_device.cc',
57 'video/video_capture_device.h',
58 'video/video_capture_device_factory.cc',
59 'video/video_capture_device_factory.h',
60 'video/video_capture_device_info.cc',
61 'video/video_capture_device_info.h',
62 'video/win/capability_list_win.cc',
63 'video/win/capability_list_win.h',
64 'video/win/filter_base_win.cc',
65 'video/win/filter_base_win.h',
66 'video/win/pin_base_win.cc',
67 'video/win/pin_base_win.h',
68 'video/win/sink_filter_observer_win.h',
69 'video/win/sink_filter_win.cc',
70 'video/win/sink_filter_win.h',
71 'video/win/sink_input_pin_win.cc',
72 'video/win/sink_input_pin_win.h',
73 'video/win/video_capture_device_factory_win.cc',
74 'video/win/video_capture_device_factory_win.h',
75 'video/win/video_capture_device_mf_win.cc',
76 'video/win/video_capture_device_mf_win.h',
77 'video/win/video_capture_device_win.cc',
78 'video/win/video_capture_device_win.h'
79 ],
80
81 'capture_unittests_sources': [
82 'content/animated_content_sampler_unittest.cc',
83 'content/capture_resolution_chooser_unittest.cc',
84 'content/feedback_signal_accumulator_unittest.cc',
85 'content/smooth_event_sampler_unittest.cc',
86 'content/video_capture_oracle_unittest.cc',
87 'system_message_window_win_unittest.cc',
88 'video/fake_video_capture_device_unittest.cc',
89 'video/mac/video_capture_device_factory_mac_unittest.mm',
90 'video/video_capture_device_unittest.cc'
91 ],
92
93 # The following files lack appropriate platform suffixes.
94 'conditions': [
95 ['OS=="linux" and use_udev==1', {
96 'capture_sources': [
97 'device_monitor_udev.cc',
98 'device_monitor_udev.h',
99 ],
100 }],
101 ],
102 },
103
104 'targets': [
105 {
106 # GN version: //media/capture
107 'target_name': 'capture',
108 'type': '<(component)',
109 'hard_dependency': 1,
110 'dependencies': [
111 '<(DEPTH)/base/base.gyp:base',
112 '<(DEPTH)/base/base.gyp:base_i18n',
113 '<(DEPTH)/media/media.gyp:media',
114 '<(DEPTH)/media/media.gyp:shared_memory_support', # For audio support.
115 '<(DEPTH)/media/mojo/interfaces/mojo_bindings.gyp:image_capture_mojo_bin dings',
116 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl',
117 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings',
118 '<(DEPTH)/skia/skia.gyp:skia',
119 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
120 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
121 ],
122 'defines': [
123 'CAPTURE_IMPLEMENTATION',
124 ],
125 'include_dirs': [
126 '<(DEPTH)/',
127 ],
128 'sources': [
129 '<@(capture_sources)'
130 ],
131 'conditions': [
132 ['OS=="android"', {
133 'dependencies': [
134 'capture_java',
135 '<(DEPTH)/media/capture/video/android'
136 ],
137 }],
138 ['OS=="mac"', {
139 'dependencies': [
140 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink',
141 ],
142 }],
143 ['chromeos==1', {
144 'dependencies': [
145 '<(DEPTH)/ui/display/display.gyp:display',
146 ],
147 }],
148 ['OS=="linux" and use_udev==1', {
149 'dependencies': [
150 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
151 ],
152 }],
153 ['OS=="win"', {
154 'dependencies': [
155 '<(DEPTH)/media/media.gyp:mf_initializer',
156 ],
157 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
158 'msvs_disabled_warnings': [ 4267, ],
159 }],
160 ],
161 },
162
163 {
164 # GN version: //media/capture:capture_unittests
165 'target_name': 'capture_unittests',
166 'type': '<(gtest_target_type)',
167 'include_dirs': [
168 '<(DEPTH)/',
169 ],
170 'dependencies': [
171 'capture',
172 '<(DEPTH)/base/base.gyp:base',
173 '<(DEPTH)/base/base.gyp:run_all_unittests',
174 '<(DEPTH)/media/media.gyp:media',
175 '<(DEPTH)/media/mojo/interfaces/mojo_bindings.gyp:image_capture_mojo_bin dings',
176 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl',
177 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings',
178 '<(DEPTH)/testing/gmock.gyp:gmock',
179 '<(DEPTH)/testing/gtest.gyp:gtest',
180 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
181 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
182 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_test_support',
183 ],
184 'sources': [
185 '<@(capture_unittests_sources)'
186 ],
187 'conditions': [
188 ['OS=="android"', {
189 'dependencies': [
190 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
191 ],
192 }],
193 ['OS=="win"', {
194 'dependencies': [
195 '<(DEPTH)/media/media.gyp:mf_initializer',
196 ],
197 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
198 'msvs_disabled_warnings': [ 4267, ],
199 }],
200 ], # conditions
201 },
202 ],
203
204 'conditions': [
205
206 ['test_isolation_mode != "noop"', {
207 'targets': [
208 {
209 # There's no GN equivalent to this.
210 'target_name': 'capture_unittests_run',
211 'type': 'none',
212 'dependencies': [
213 'capture_unittests',
214 ],
215 'includes': [
216 '../../build/isolate.gypi',
217 ],
218 'sources': [
219 'capture_unittests.isolate',
220 ]
221 }
222 ]
223 }],
224
225 ['OS=="android"', {
226 'targets': [
227 {
228 'target_name': 'capture_java',
229 'type': 'none',
230 'dependencies': [
231 '/base/base.gyp:base',
232 'media_android_captureapitype',
233 'media_android_imageformat',
234 'video_capture_android_jni_headers',
235 ],
236 'export_dependent_settings': [
237 '../base/base.gyp:base',
238 ],
239 'variables': {
240 'java_in_dir': 'video/android/java',
241 },
242 'includes': ['../../build/java.gypi'],
243 },
244 {
245 'target_name': 'media_android_captureapitype',
246 'type': 'none',
247 'variables': {
248 'source_file': 'video/video_capture_device.h',
249 },
250 'includes': [ '../../build/android/java_cpp_enum.gypi' ],
251 },
252 {
253 'target_name': 'media_android_imageformat',
254 'type': 'none',
255 'variables': {
256 'source_file': 'video/android/video_capture_device_android.h',
257 },
258 'includes': [ '../../build/android/java_cpp_enum.gypi' ],
259 },
260 {
261 'target_name': 'video_capture_android_jni_headers',
262 'type': 'none',
263 'sources': [
264 'video/android/java/src/org/chromium/media/VideoCapture.java',
265 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java' ,
266 ],
267 'variables': {
268 'jni_gen_package': 'media',
269 },
270 'includes': ['../../build/jni_generator.gypi'],
271 },
272
273 {
274 # There's no GN equivalent to this.
275 'target_name': 'capture_unittests_apk',
276 'type': 'none',
277 'dependencies': [
278 'capture_java',
279 'capture_unittests',
280 ],
281 'variables': {
282 'test_suite_name': 'capture_unittests',
283 },
284 'includes': ['../../build/apk_test.gypi'],
285 },
286 ],
287 'conditions': [
288 ['test_isolation_mode != "noop"', {
289 'targets': [
290 {
291 'target_name': 'capture_unittests_apk_run',
292 'type': 'none',
293 'dependencies': [
294 'capture_unittests_apk',
295 ],
296 'includes': [
297 '../../build/isolate.gypi',
298 ],
299 'sources': [
300 'capture_unittests_apk.isolate',
301 ],
302 },
303 ],
304 }],
305 ],
306
307 }],
308
309 ],
310 }
OLDNEW
« no previous file with comments | « media/capture/OWNERS ('k') | media/capture/capture_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698