Edit

kc3-lang/angle/build/standalone.gypi

Branch :

  • Show log

    Commit

  • Author : Frank Henigman
    Date : 2016-04-07 20:30:50
    Hash : 71fb2100
    Message : 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>

  • 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':
        {
            # 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)',
        },
    }