Commit 71fb2100 by Frank Henigman Committed by Commit Bot

Gyp support for Ozone.

Introduce gyp flag 'use_ozone' to select Ozone code. Ozone is a display method used on Chrome OS which is based on gbm, drm/kms, and surfaceless egl. BUG=angleproject:1297 Change-Id: Ic1f66121d23d26bac56b09e3e6aedefec5a131df Reviewed-on: https://chromium-review.googlesource.com/338442 Commit-Queue: Frank Henigman <fjhenigman@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
parent 9a9c0484
...@@ -13,6 +13,14 @@ ...@@ -13,6 +13,14 @@
'angle_build_winrt%': '0', 'angle_build_winrt%': '0',
'angle_build_winphone%': '0', 'angle_build_winphone%': '0',
# This works like the Ozone GBM platform in Chrome:
# - Generic Buffer Manager (gbm) to allocate buffers
# - EGL_EXT_image_dma_buf_import to render into those buffers via EGLImage
# - Direct Rendering Manager + Kernel Mode Setting to scan out from those buffers
# - EGL_PLATFORM_SURFACELESS because there are no native windows
'use_ozone%': 0,
'conditions': 'conditions':
[ [
['OS=="linux" and use_x11==1 and chromeos==0', { ['OS=="linux" and use_x11==1 and chromeos==0', {
...@@ -38,6 +46,10 @@ ...@@ -38,6 +46,10 @@
], ],
'conditions': 'conditions':
[ [
['use_ozone==1',
{
'defines': [ 'USE_OZONE' ],
}],
['component=="shared_library"', ['component=="shared_library"',
{ {
'defines': [ 'COMPONENT_BUILD' ], 'defines': [ 'COMPONENT_BUILD' ],
......
...@@ -17,9 +17,13 @@ ...@@ -17,9 +17,13 @@
# eagerly than other conditional variables. # eagerly than other conditional variables.
'variables': 'variables':
{ {
'variables':
{
'use_ozone%': 0,
},
'conditions': 'conditions':
[ [
['OS=="linux"', ['OS=="linux" and use_ozone==0',
{ {
'use_x11': 1, 'use_x11': 1,
}, },
...@@ -27,6 +31,9 @@ ...@@ -27,6 +31,9 @@
'use_x11': 0, 'use_x11': 0,
}], }],
], ],
# Copy conditionally-set variables out one scope.
'use_ozone%': '<(use_ozone)',
}, },
# Copy conditionally-set variables out one scope. # Copy conditionally-set variables out one scope.
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
{ {
'angle_enable_gl%': 1, 'angle_enable_gl%': 1,
}], }],
['use_ozone==1',
{
'angle_enable_gl%': 1,
}],
], ],
}, },
'includes': 'includes':
......
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