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

Unified Diff: content/content.gyp

Issue 1641163002: Preparation CL for H264 support in WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use of BUILDFLAG instead of macro Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/BUILD.gn » ('j') | content/renderer/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/content.gyp
diff --git a/content/content.gyp b/content/content.gyp
index ecf8e4d3e11e8f492d53d1cdf69d8cb7c20fad4b..96e8900bbc2cb1827ba29eff9002caad66b945c4 100644
--- a/content/content.gyp
+++ b/content/content.gyp
@@ -21,6 +21,30 @@
}],
],
},
+ 'targets': [
+ {
+ # GN version: //content/renderer:renderer_features
+ 'target_name': 'renderer_features',
+ 'includes': [
+ '../build/buildflag_header.gypi',
+ '../third_party/webrtc/build/common.gypi',
+ ],
+ 'conditions': [
+ # This conditional looks insane, but without it |rtc_use_h264| is not
brettw 2016/02/03 22:19:55 I don't really care about this too much, but I *th
hbos_chromium 2016/02/04 10:47:32 I tried that (including 'var': '<(var)' in the out
+ # recognized as defined. Might have something to do with scopes. Moving
+ # the inclusion of third_party/webrtc/build/common.gypi to outside of
+ # 'targets' is not an option, then we get compile errors.
+ ['1==1', {
+ 'variables': {
+ 'buildflag_header_path': 'content/renderer/renderer_features.h',
+ 'buildflag_flags': [
+ 'RTC_USE_H264=<(rtc_use_h264)',
+ ],
+ },
+ }],
+ ],
+ },
+ ],
'conditions': [
['OS != "ios"', {
'includes': [
@@ -262,6 +286,7 @@
'content_child',
'content_common',
'content_resources',
+ 'renderer_features',
],
'export_dependent_settings': [
'content_common',
@@ -301,6 +326,7 @@
'variables': { 'enable_wexit_time_destructors': 1, },
'dependencies': [
'content_resources',
+ 'renderer_features',
],
'conditions': [
['chromium_enable_vtune_jit_for_v8==1', {
« no previous file with comments | « no previous file | content/renderer/BUILD.gn » ('j') | content/renderer/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698