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

Commit d3ca14b

Browse files
Raphael Kubo da CostaOlli Raula
authored andcommitted
[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.
1 parent a28ccba commit d3ca14b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

third_party/WebKit/Source/build/features.gypi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
'detailed_memory_infra%': 0,
5353
'blink_logging_always_on%': 0,
5454
'link_core_modules_separately%': 1,
55+
56+
# WebCL support in Crosswalk.
57+
'enable_webcl%': 0,
5558
},
5659
'conditions': [
5760
['use_concatenated_impulse_responses==1', {
@@ -103,6 +106,12 @@
103106
'LINK_CORE_MODULES_SEPARATELY',
104107
],
105108
}],
109+
110+
['enable_webcl==1', {
111+
'feature_defines': [
112+
'ENABLE_WEBCL=1',
113+
],
114+
}],
106115
],
107116

108117
# shared build only. If set to 1, link web, core and modules separately.

0 commit comments

Comments
 (0)