diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index c232f2b8f..b5fa785a3 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -161,6 +161,9 @@ 'WEBRTC_MOZILLA_BUILD', ], }], + ['enable_video==1', { + 'defines': ['WEBRTC_MODULE_UTILITY_VIDEO',], + }], ['build_with_chromium==1', { 'defines': [ # Changes settings for Chromium build. diff --git a/webrtc/modules/media_file/source/media_file.gypi b/webrtc/modules/media_file/source/media_file.gypi index 3add36c1b..37df13c5a 100644 --- a/webrtc/modules/media_file/source/media_file.gypi +++ b/webrtc/modules/media_file/source/media_file.gypi @@ -14,9 +14,6 @@ 'dependencies': [ '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', ], - 'defines': [ - 'WEBRTC_MODULE_UTILITY_VIDEO', # for compiling support for video recording - ], 'include_dirs': [ '../interface', '../../interface', @@ -26,9 +23,6 @@ '../interface', '../../interface', ], - 'defines': [ - 'WEBRTC_MODULE_UTILITY_VIDEO', - ], }, 'sources': [ '../interface/media_file.h', diff --git a/webrtc/modules/utility/source/utility.gypi b/webrtc/modules/utility/source/utility.gypi index 1c9768044..2f09657da 100644 --- a/webrtc/modules/utility/source/utility.gypi +++ b/webrtc/modules/utility/source/utility.gypi @@ -39,10 +39,6 @@ ], 'conditions': [ ['enable_video==1', { - # Adds support for video recording. - 'defines': [ - 'WEBRTC_MODULE_UTILITY_VIDEO', - ], 'dependencies': [ 'webrtc_video_coding', ],