Hash :
71fb2100
Author :
Date :
2016-04-07T20:30:50
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: Jamie Madill <jmadill@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables':
{
# chromeos=1 is used in some build configurations to disable GL
# and GLX code because it typically wouldn't build for Chrome OS.
# It does not mean "enable Chrome OS code."
'chromeos': 0,
# Chrome OS chroot builds need a special pkg-config, so make it possible to change.
'pkg-config%': 'pkg-config',
# Use a nested variable trick to get use_x11 evaluated more
# eagerly than other conditional variables.
'variables':
{
'variables':
{
'use_ozone%': 0,
},
'conditions':
[
['OS=="linux" and use_ozone==0',
{
'use_x11': 1,
},
{
'use_x11': 0,
}],
],
# Copy conditionally-set variables out one scope.
'use_ozone%': '<(use_ozone)',
},
# Copy conditionally-set variables out one scope.
'use_x11%': '<(use_x11)',
},
}