OLD | NEW |
| (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)/skia/skia.gyp:skia', | |
116 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
117 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
118 ], | |
119 'defines': [ | |
120 'CAPTURE_IMPLEMENTATION', | |
121 ], | |
122 'include_dirs': [ | |
123 '<(DEPTH)/', | |
124 ], | |
125 'sources': [ | |
126 '<@(capture_sources)' | |
127 ], | |
128 'conditions': [ | |
129 ['OS=="android"', { | |
130 'dependencies': [ | |
131 'capture_java', | |
132 ], | |
133 }], | |
134 ['OS=="mac"', { | |
135 'dependencies': [ | |
136 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink', | |
137 ], | |
138 }], | |
139 ['chromeos==1', { | |
140 'dependencies': [ | |
141 '<(DEPTH)/ui/display/display.gyp:display', | |
142 ], | |
143 }], | |
144 ['OS=="linux" and use_udev==1', { | |
145 'dependencies': [ | |
146 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', | |
147 ], | |
148 }], | |
149 ['OS=="win"', { | |
150 'dependencies': [ | |
151 '<(DEPTH)/media/media.gyp:mf_initializer', | |
152 ], | |
153 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations. | |
154 'msvs_disabled_warnings': [ 4267, ], | |
155 }], | |
156 ], | |
157 }, | |
158 | |
159 { | |
160 # GN version: //media/capture:unittests source_set | |
161 'target_name': 'unittests', | |
162 'type': 'none', | |
163 'dependencies': [ | |
164 'capture', | |
165 ], | |
166 'direct_dependent_settings': { | |
167 'sources': [ | |
168 '<@(capture_unittests_sources)' | |
169 ], | |
170 }, | |
171 }, | |
172 ], | |
173 | |
174 'conditions': [ | |
175 ['OS=="android"', { | |
176 'targets': [ | |
177 { | |
178 'target_name': 'capture_java', | |
179 'type': 'none', | |
180 'dependencies': [ | |
181 '/base/base.gyp:base', | |
182 'media_android_captureapitype', | |
183 'media_android_imageformat', | |
184 'video_capture_android_jni_headers', | |
185 ], | |
186 'export_dependent_settings': [ | |
187 '../base/base.gyp:base', | |
188 ], | |
189 'variables': { | |
190 'java_in_dir': 'video/android/java', | |
191 }, | |
192 'includes': ['../../build/java.gypi'], | |
193 }, | |
194 { | |
195 'target_name': 'media_android_captureapitype', | |
196 'type': 'none', | |
197 'variables': { | |
198 'source_file': 'video/video_capture_device.h', | |
199 }, | |
200 'includes': [ '../../build/android/java_cpp_enum.gypi' ], | |
201 }, | |
202 { | |
203 'target_name': 'media_android_imageformat', | |
204 'type': 'none', | |
205 'variables': { | |
206 'source_file': 'video/android/video_capture_device_android.h', | |
207 }, | |
208 'includes': [ '../../build/android/java_cpp_enum.gypi' ], | |
209 }, | |
210 { | |
211 'target_name': 'video_capture_android_jni_headers', | |
212 'type': 'none', | |
213 'sources': [ | |
214 'video/android/java/src/org/chromium/media/VideoCapture.java', | |
215 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java'
, | |
216 ], | |
217 'variables': { | |
218 'jni_gen_package': 'media', | |
219 }, | |
220 'includes': ['../../build/jni_generator.gypi'], | |
221 }, | |
222 ], | |
223 }], | |
224 ], | |
225 } | |
OLD | NEW |