From d3ca14b76be6c90335aa115e0dc06d3849d44c28 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Thu, 28 Jan 2016 16:47:36 +0100 Subject: [PATCH] [Blink] WebCL: Only set ENABLE_WEBCL in the relevant files. This change (together with a follow-up in the Crosswalk repository itself) moves the definition of the ENABLE_WEBCL macro to Blink's features.gypi, so that it is only passed to the relevant modules and bindings files intead of all the 15000+ files part of Crosswalk's build. This part of the fix only adds the definition to the Blink side; the Crosswalk patch will stop defining the macro for the other files. --- third_party/WebKit/Source/build/features.gypi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/third_party/WebKit/Source/build/features.gypi b/third_party/WebKit/Source/build/features.gypi index 8633c3f66e65e..c5f9eb819a78c 100644 --- a/third_party/WebKit/Source/build/features.gypi +++ b/third_party/WebKit/Source/build/features.gypi @@ -52,6 +52,9 @@ 'detailed_memory_infra%': 0, 'blink_logging_always_on%': 0, 'link_core_modules_separately%': 1, + + # WebCL support in Crosswalk. + 'enable_webcl%': 0, }, 'conditions': [ ['use_concatenated_impulse_responses==1', { @@ -103,6 +106,12 @@ 'LINK_CORE_MODULES_SEPARATELY', ], }], + + ['enable_webcl==1', { + 'feature_defines': [ + 'ENABLE_WEBCL=1', + ], + }], ], # shared build only. If set to 1, link web, core and modules separately.