Edit

kc3-lang/angle/build/standalone.gypi

Branch :

  • Show log

    Commit

  • Author : Kenneth Russell
    Date : 2015-06-24 17:24:20
    Hash : 3b345ebd
    Message : Fix ANGLE build on Chrome OS ARM. These builders set use_x11=1 but don't have GLX headers. Avoid trying to compile ANGLE's GL, GLX and X11 sources on Chrome OS at all. BUG=503173,angleproject:892 Change-Id: I7f5862bb83b33f6ce302244fa5668295789a3a41 Reviewed-on: https://chromium-review.googlesource.com/281778 Reviewed-by: Zhenyao Mo <zmo@chromium.org> Tested-by: Kenneth Russell <kbr@chromium.org>

  • build/standalone.gypi
  • # 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':
        {
            # Assume for the time being that we're never compiling
            # standalone ANGLE on Chrome OS.
            'chromeos': 0,
    
            # Use a nested variable trick to get use_x11 evaluated more
            # eagerly than other conditional variables.
            'variables':
            {
                'conditions':
                [
                    ['OS=="linux"',
                    {
                        'use_x11': 1,
                    },
                    {
                        'use_x11': 0,
                    }],
                ],
            },
    
            # Copy conditionally-set variables out one scope.
            'use_x11%': '<(use_x11)',
        },
    }