From 7303a90e4686dc63407e859cedf95a9e7558d417 Mon Sep 17 00:00:00 2001 From: Lin Sun Date: Thu, 2 Apr 2015 18:55:14 +0800 Subject: [PATCH] Add flag to diable hrtf in webaudio The code in blink project will use this flag to reduce the binary size. This patch is backported from the crosswalk-lite branch. --- build/common.gypi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/common.gypi b/build/common.gypi index c15ebaeb95673..1ec890c5e75ad 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -562,6 +562,9 @@ # Enable FTP support by default. 'disable_ftp_support%': 0, + # Enable web audio hrtf by default. + 'disable_webaudio_hrtf%': 0, + # Use native android functions in place of ICU. Not supported by most # components. 'use_icu_alternatives_on_android%': 0, @@ -1186,6 +1189,7 @@ 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 'disable_file_support%': '<(disable_file_support)', 'disable_ftp_support%': '<(disable_ftp_support)', + 'disable_webaudio_hrtf%': '<(disable_webaudio_hrtf)', 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 'enable_task_manager%': '<(enable_task_manager)', 'sas_dll_path%': '<(sas_dll_path)', @@ -2125,6 +2129,9 @@ ['use_concatenated_impulse_responses==1', { 'grit_defines': ['-D', 'use_concatenated_impulse_responses'], }], + ['disable_webaudio_hrtf==1', { + 'grit_defines': ['-D', 'disable_webaudio_hrtf'], + }], ['enable_media_router==1', { 'grit_defines': ['-D', 'enable_media_router'], }],