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

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

Issue 2093563004: Revert of Extract media/capture/capture_unittests from media_unittests (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/BUILD.gn ('k') | media/capture/capture_unittests.isolate » ('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 2016 The Chromium Authors. All rights reserved. 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 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 'capture_sources': [ 8 'capture_sources': [
9 'capture_export.h', 9 'capture_export.h',
10 'content/animated_content_sampler.cc', 10 'content/animated_content_sampler.cc',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 'include_dirs': [ 122 'include_dirs': [
123 '<(DEPTH)/', 123 '<(DEPTH)/',
124 ], 124 ],
125 'sources': [ 125 'sources': [
126 '<@(capture_sources)' 126 '<@(capture_sources)'
127 ], 127 ],
128 'conditions': [ 128 'conditions': [
129 ['OS=="android"', { 129 ['OS=="android"', {
130 'dependencies': [ 130 'dependencies': [
131 'capture_java', 131 'capture_java',
132 '<(DEPTH)/media/capture/video/android'
133 ], 132 ],
134 }], 133 }],
135 ['OS=="mac"', { 134 ['OS=="mac"', {
136 'dependencies': [ 135 'dependencies': [
137 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink', 136 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink',
138 ], 137 ],
139 }], 138 }],
140 ['chromeos==1', { 139 ['chromeos==1', {
141 'dependencies': [ 140 'dependencies': [
142 '<(DEPTH)/ui/display/display.gyp:display', 141 '<(DEPTH)/ui/display/display.gyp:display',
143 ], 142 ],
144 }], 143 }],
145 ['OS=="linux" and use_udev==1', { 144 ['OS=="linux" and use_udev==1', {
146 'dependencies': [ 145 'dependencies': [
147 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', 146 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
148 ], 147 ],
149 }], 148 }],
150 ['OS=="win"', { 149 ['OS=="win"', {
151 'dependencies': [ 150 'dependencies': [
152 '<(DEPTH)/media/media.gyp:mf_initializer', 151 '<(DEPTH)/media/media.gyp:mf_initializer',
153 ], 152 ],
154 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations. 153 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
155 'msvs_disabled_warnings': [ 4267, ], 154 'msvs_disabled_warnings': [ 4267, ],
156 }], 155 }],
157 ], 156 ],
158 }, 157 },
159 158
160 { 159 {
161 # GN version: //media/capture:capture_unittests 160 # GN version: //media/capture:unittests source_set
162 'target_name': 'capture_unittests', 161 'target_name': 'unittests',
163 'type': '<(gtest_target_type)', 162 'type': 'none',
164 'include_dirs': [
165 '<(DEPTH)/',
166 ],
167 'dependencies': [ 163 'dependencies': [
168 'capture', 164 'capture',
169 '<(DEPTH)/base/base.gyp:base',
170 '<(DEPTH)/base/base.gyp:run_all_unittests',
171 '<(DEPTH)/media/media.gyp:media',
172 '<(DEPTH)/testing/gmock.gyp:gmock',
173 '<(DEPTH)/testing/gtest.gyp:gtest',
174 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
175 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
176 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_test_support',
177 ], 165 ],
178 'sources': [ 166 'direct_dependent_settings': {
179 '<@(capture_unittests_sources)' 167 'sources': [
180 ], 168 '<@(capture_unittests_sources)'
181 'conditions': [ 169 ],
182 ['OS=="android"', { 170 },
183 'dependencies': [
184 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
185 ],
186 }],
187 ['OS=="win"', {
188 'dependencies': [
189 '<(DEPTH)/media/media.gyp:mf_initializer',
190 ],
191 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
192 'msvs_disabled_warnings': [ 4267, ],
193 }],
194 ], # conditions
195 }, 171 },
196 ], 172 ],
197 173
198 'conditions': [ 174 'conditions': [
199
200 ['test_isolation_mode != "noop"', {
201 'targets': [
202 {
203 # There's no GN equivalent to this.
204 'target_name': 'capture_unittests_run',
205 'type': 'none',
206 'dependencies': [
207 'capture_unittests',
208 ],
209 'includes': [
210 '../../build/isolate.gypi',
211 ],
212 'sources': [
213 'capture_unittests.isolate',
214 ]
215 }
216 ]
217 }],
218
219 ['OS=="android"', { 175 ['OS=="android"', {
220 'targets': [ 176 'targets': [
221 { 177 {
222 'target_name': 'capture_java', 178 'target_name': 'capture_java',
223 'type': 'none', 179 'type': 'none',
224 'dependencies': [ 180 'dependencies': [
225 '/base/base.gyp:base', 181 '/base/base.gyp:base',
226 'media_android_captureapitype', 182 'media_android_captureapitype',
227 'media_android_imageformat', 183 'media_android_imageformat',
228 'video_capture_android_jni_headers', 184 'video_capture_android_jni_headers',
(...skipping 27 matching lines...) Expand all
256 'type': 'none', 212 'type': 'none',
257 'sources': [ 213 'sources': [
258 'video/android/java/src/org/chromium/media/VideoCapture.java', 214 'video/android/java/src/org/chromium/media/VideoCapture.java',
259 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java' , 215 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java' ,
260 ], 216 ],
261 'variables': { 217 'variables': {
262 'jni_gen_package': 'media', 218 'jni_gen_package': 'media',
263 }, 219 },
264 'includes': ['../../build/jni_generator.gypi'], 220 'includes': ['../../build/jni_generator.gypi'],
265 }, 221 },
266
267 {
268 # There's no GN equivalent to this.
269 'target_name': 'capture_unittests_apk',
270 'type': 'none',
271 'dependencies': [
272 'capture_java',
273 'capture_unittests',
274 ],
275 'variables': {
276 'test_suite_name': 'capture_unittests',
277 },
278 'includes': ['../../build/apk_test.gypi'],
279 },
280 ], 222 ],
281 'conditions': [
282 ['test_isolation_mode != "noop"', {
283 'targets': [
284 {
285 'target_name': 'capture_unittests_apk_run',
286 'type': 'none',
287 'dependencies': [
288 'capture_unittests_apk',
289 ],
290 'includes': [
291 '../../build/isolate.gypi',
292 ],
293 'sources': [
294 'capture_unittests_apk.isolate',
295 ],
296 },
297 ],
298 }],
299 ],
300
301 }], 223 }],
302
303 ], 224 ],
304 } 225 }
OLDNEW
« no previous file with comments | « media/capture/BUILD.gn ('k') | media/capture/capture_unittests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698