Commit fd0957d9 by Corentin Wallez

Fix standalone compilation on Linux

Use a "gyp trick" to define a default value for use_x11, thanks goes to kbr for remembering the other instance of this trick. BUG=angleproject:892 Change-Id: Ifb64af4e56d9eb90993760a495008d95dd31ae3d Reviewed-on: https://chromium-review.googlesource.com/278158Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 2539fffa
...@@ -17,6 +17,24 @@ ...@@ -17,6 +17,24 @@
'angle_enable_d3d11%': 0, 'angle_enable_d3d11%': 0,
'angle_enable_gl%': 0, 'angle_enable_gl%': 0,
'angle_enable_hlsl%': 0, 'angle_enable_hlsl%': 0,
# This nested dictionary hack comes from Chromium's build/common.gypi
# and is needed so we can both set a default value for this variable and
# test it in the same file.
'variables':
{
'conditions':
[
['OS=="linux"',
{
'use_x11%': 1,
},
{
'use_x11%': 0,
}],
],
},
# Copy conditionally-set variables out one scope.
'use_x11%': '<(use_x11)',
'conditions': 'conditions':
[ [
['OS=="win"', ['OS=="win"',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment