Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
[Blink] WebCL: Only set ENABLE_WEBCL in the relevant files.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Raphael Kubo da Costa authored and Olli Raula committed Feb 10, 2016
1 parent a28ccba commit d3ca14b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions third_party/WebKit/Source/build/features.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d3ca14b

Please sign in to comment.