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

Side by Side Diff: content/content.gyp

Issue 1718883002: Enable H.264 video WebRTC behind run-time flag and add WebRtcBrowserTest for H.264 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_common.gypi depending on common_features Created 4 years, 10 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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, # Use higher warning level. 7 'chromium_code': 1, # Use higher warning level.
8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine. 8 'chromium_enable_vtune_jit_for_v8%': 0, # enable the vtune support for V8 e ngine.
9 'directxsdk_exists': '<!pymod_do_main(dir_exists ../third_party/directxsdk)' , 9 'directxsdk_exists': '<!pymod_do_main(dir_exists ../third_party/directxsdk)' ,
10 }, 10 },
11 'target_defaults': { 11 'target_defaults': {
12 'defines': ['CONTENT_IMPLEMENTATION'], 12 'defines': ['CONTENT_IMPLEMENTATION'],
13 'conditions': [ 13 'conditions': [
14 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. 14 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed.
15 ['OS=="win" and target_arch=="x64"', { 15 ['OS=="win" and target_arch=="x64"', {
16 'msvs_settings': { 16 'msvs_settings': {
17 'VCCLCompilerTool': { 17 'VCCLCompilerTool': {
18 'AdditionalOptions': ['/bigobj'], 18 'AdditionalOptions': ['/bigobj'],
19 }, 19 },
20 }, 20 },
21 }], 21 }],
22 ], 22 ],
23 }, 23 },
24 'targets': [ 24 'targets': [
25 { 25 {
26 # GN version: //content/renderer:renderer_features 26 # GN version: //content/public/common:common_features
27 'target_name': 'renderer_features', 27 'target_name': 'common_features',
28 'includes': [ 28 'includes': [
29 '../build/buildflag_header.gypi', 29 '../build/buildflag_header.gypi',
30 '../third_party/webrtc/build/common.gypi', 30 '../third_party/webrtc/build/common.gypi',
31 ], 31 ],
32 'conditions': [ 32 'conditions': [
33 # This conditional looks insane, but without it |rtc_use_h264| is not 33 # This conditional looks insane, but without it |rtc_use_h264| is not
34 # recognized as defined. Might have something to do with scopes. Moving 34 # recognized as defined. Might have something to do with scopes. Moving
35 # the inclusion of third_party/webrtc/build/common.gypi to outside of 35 # the inclusion of third_party/webrtc/build/common.gypi to outside of
36 # 'targets' is not an option, then we get compile errors. 36 # 'targets' is not an option, then we get compile errors.
37 # TODO(hbos): crbug.com/584219 37 # TODO(hbos): crbug.com/584219
38 ['1==1', { 38 ['1==1', {
39 'variables': { 39 'variables': {
40 'buildflag_header_path': 'content/renderer/renderer_features.h', 40 'buildflag_header_path': 'content/public/common/common_features.h',
41 'buildflag_flags': [ 41 'buildflag_flags': [
42 'RTC_USE_H264=<(rtc_use_h264)', 42 'RTC_USE_H264=<(rtc_use_h264)',
43 ], 43 ],
44 }, 44 },
45 }], 45 }],
46 ], 46 ],
47 }, 47 },
48 {
49 # GN version: //content/public/common:feature_h264_with_openh264_ffmpeg
50 'target_name': 'feature_h264_with_openh264_ffmpeg',
51 'type': 'static_library',
52 'include_dirs': [ '<@(DEPTH)' ],
53 'dependencies': [
54 ':common_features',
brettw 2016/02/22 18:04:03 Delete the colon here. I don't actually know what
hbos_chromium 2016/02/22 20:32:40 Done. (Must have thought of GN)
55 ],
56 'sources': [
57 'public/common/feature_h264_with_openh264_ffmpeg.cc',
58 'public/common/feature_h264_with_openh264_ffmpeg.h',
59 ],
60 },
48 ], 61 ],
49 'includes': [ 62 'includes': [
50 '../build/win_precompile.gypi', 63 '../build/win_precompile.gypi',
51 'content_resources.gypi', 64 'content_resources.gypi',
52 ], 65 ],
53 'conditions': [ 66 'conditions': [
54 ['OS == "win"', { 67 ['OS == "win"', {
55 'targets': [ 68 'targets': [
56 { 69 {
57 # GN: //content:sandbox_helper_win 70 # GN: //content:sandbox_helper_win
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 { 271 {
259 # GN version: //content/renderer and //content/public/renderer 272 # GN version: //content/renderer and //content/public/renderer
260 'target_name': 'content_renderer', 273 'target_name': 'content_renderer',
261 'type': 'static_library', 274 'type': 'static_library',
262 'variables': { 'enable_wexit_time_destructors': 1, }, 275 'variables': { 'enable_wexit_time_destructors': 1, },
263 'includes': [ 276 'includes': [
264 'content_renderer.gypi', 277 'content_renderer.gypi',
265 ], 278 ],
266 'dependencies': [ 279 'dependencies': [
267 '../third_party/webrtc/modules/modules.gyp:webrtc_h264', 280 '../third_party/webrtc/modules/modules.gyp:webrtc_h264',
281 'common_features',
268 'content_child', 282 'content_child',
269 'content_common', 283 'content_common',
270 'content_resources', 284 'content_resources',
271 'renderer_features',
272 ], 285 ],
273 'export_dependent_settings': [ 286 'export_dependent_settings': [
274 'content_common', 287 'content_common',
275 ], 288 ],
276 'conditions': [ 289 'conditions': [
277 ['chromium_enable_vtune_jit_for_v8==1', { 290 ['chromium_enable_vtune_jit_for_v8==1', {
278 'dependencies': [ 291 'dependencies': [
279 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', 292 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
280 ], 293 ],
281 }], 294 }],
(...skipping 17 matching lines...) Expand all
299 }, 312 },
300 { # component != static_library 313 { # component != static_library
301 'targets': [ 314 'targets': [
302 { 315 {
303 # GN version: //content 316 # GN version: //content
304 'target_name': 'content', 317 'target_name': 'content',
305 'type': 'shared_library', 318 'type': 'shared_library',
306 'variables': { 'enable_wexit_time_destructors': 1, }, 319 'variables': { 'enable_wexit_time_destructors': 1, },
307 'dependencies': [ 320 'dependencies': [
308 '../third_party/webrtc/modules/modules.gyp:webrtc_h264', 321 '../third_party/webrtc/modules/modules.gyp:webrtc_h264',
322 'common_features',
309 'content_resources', 323 'content_resources',
310 'renderer_features',
311 ], 324 ],
312 'conditions': [ 325 'conditions': [
313 ['chromium_enable_vtune_jit_for_v8==1', { 326 ['chromium_enable_vtune_jit_for_v8==1', {
314 'dependencies': [ 327 'dependencies': [
315 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune', 328 '../v8/src/third_party/vtune/v8vtune.gyp:v8_vtune',
316 ], 329 ],
317 }], 330 }],
318 ], 331 ],
319 'includes': [ 332 'includes': [
320 'content_app.gypi', 333 'content_app.gypi',
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 }, 668 },
656 'includes': [ 669 'includes': [
657 '../build/android/copy_ex.gypi', 670 '../build/android/copy_ex.gypi',
658 '../build/android/v8_external_startup_data_arch_suffix.gypi', 671 '../build/android/v8_external_startup_data_arch_suffix.gypi',
659 ], 672 ],
660 }, 673 },
661 ], 674 ],
662 }], # OS == "android" 675 }], # OS == "android"
663 ], 676 ],
664 } 677 }
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/content_common.gypi » ('j') | content/content_common.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698