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

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

Issue 2087683002: Extract media/capture/capture_unittests from media_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: media/base/run_all_unittests.cc shouldn't know about RegisterCaptureJni Created 4 years, 6 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'
132 ], 133 ],
133 }], 134 }],
134 ['OS=="mac"', { 135 ['OS=="mac"', {
135 'dependencies': [ 136 'dependencies': [
136 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink', 137 '<(DEPTH)/third_party/decklink/decklink.gyp:decklink',
137 ], 138 ],
138 }], 139 }],
139 ['chromeos==1', { 140 ['chromeos==1', {
140 'dependencies': [ 141 'dependencies': [
141 '<(DEPTH)/ui/display/display.gyp:display', 142 '<(DEPTH)/ui/display/display.gyp:display',
142 ], 143 ],
143 }], 144 }],
144 ['OS=="linux" and use_udev==1', { 145 ['OS=="linux" and use_udev==1', {
145 'dependencies': [ 146 'dependencies': [
146 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux', 147 '<(DEPTH)/device/udev_linux/udev.gyp:udev_linux',
147 ], 148 ],
148 }], 149 }],
149 ['OS=="win"', { 150 ['OS=="win"', {
150 'dependencies': [ 151 'dependencies': [
151 '<(DEPTH)/media/media.gyp:mf_initializer', 152 '<(DEPTH)/media/media.gyp:mf_initializer',
152 ], 153 ],
153 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations. 154 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations.
154 'msvs_disabled_warnings': [ 4267, ], 155 'msvs_disabled_warnings': [ 4267, ],
155 }], 156 }],
156 ], 157 ],
157 }, 158 },
158 159
159 { 160 {
160 # GN version: //media/capture:unittests source_set 161 # GN version: //media/capture:capture_unittests
161 'target_name': 'unittests', 162 'target_name': 'capture_unittests',
162 'type': 'none', 163 'type': '<(gtest_target_type)',
164 'include_dirs': [
165 '<(DEPTH)/',
166 ],
163 'dependencies': [ 167 'dependencies': [
164 'capture', 168 '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',
165 ], 177 ],
166 'direct_dependent_settings': { 178 'sources': [
167 'sources': [ 179 '<@(capture_unittests_sources)'
168 '<@(capture_unittests_sources)' 180 ],
169 ], 181 'conditions': [
170 }, 182 ['OS=="android"', {
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
171 }, 195 },
172 ], 196 ],
173 197
174 'conditions': [ 198 '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
175 ['OS=="android"', { 219 ['OS=="android"', {
176 'targets': [ 220 'targets': [
177 { 221 {
178 'target_name': 'capture_java', 222 'target_name': 'capture_java',
179 'type': 'none', 223 'type': 'none',
180 'dependencies': [ 224 'dependencies': [
181 '/base/base.gyp:base', 225 '/base/base.gyp:base',
182 'media_android_captureapitype', 226 'media_android_captureapitype',
183 'media_android_imageformat', 227 'media_android_imageformat',
184 'video_capture_android_jni_headers', 228 'video_capture_android_jni_headers',
(...skipping 27 matching lines...) Expand all
212 'type': 'none', 256 'type': 'none',
213 'sources': [ 257 'sources': [
214 'video/android/java/src/org/chromium/media/VideoCapture.java', 258 'video/android/java/src/org/chromium/media/VideoCapture.java',
215 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java' , 259 'video/android/java/src/org/chromium/media/VideoCaptureFactory.java' ,
216 ], 260 ],
217 'variables': { 261 'variables': {
218 'jni_gen_package': 'media', 262 'jni_gen_package': 'media',
219 }, 263 },
220 'includes': ['../../build/jni_generator.gypi'], 264 'includes': ['../../build/jni_generator.gypi'],
221 }, 265 },
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 },
222 ], 280 ],
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
223 }], 301 }],
302
224 ], 303 ],
225 } 304 }
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