Edit

kc3-lang/angle/src/libEGL.gypi

Branch :

  • Show log

    Commit

  • Author : Corentin Wallez
    Date : 2015-07-21 13:45:12
    Hash : ea7c5c19
    Message : Add angle_gl_library_type to allow making static libGLESv2 and libEGL With this commit angle programs can be run under apitrace: when we use shared libraries, the apitrace driver shim shadows ANGLE and redirects the GL calls to the driver, which is not what we want. BUG=angleproject:892 Change-Id: I32535ba8db6202b0b5b285e86abd472366ee3d03 Reviewed-on: https://chromium-review.googlesource.com/287270 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Tested-by: Corentin Wallez <cwallez@chromium.org>

  • src/libEGL.gypi
  • # Copyright (c) 2013 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.
    
    {
        # Everything below this is duplicated in the GN build. If you change
        # anything also change angle/BUILD.gn
        'targets':
        [
            {
                'target_name': 'libEGL',
                'type': '<(angle_gl_library_type)',
                'dependencies':
                [
                    'libANGLE',
                    'libGLESv2',
                ],
                'includes':
                [
                    '../build/common_defines.gypi',
                ],
                'include_dirs':
                [
                    '.',
                    '../include',
                ],
                'sources':
                [
                    '<@(libegl_sources)',
                ],
                'conditions':
                [
                    ['angle_build_winrt==1',
                    {
                        'msvs_enable_winrt' : '1',
                        'msvs_application_type_revision' : '<(angle_build_winrt_app_type_revision)',
                        'msvs_requires_importlibrary' : 'true',
                        'msvs_settings':
                        {
                            'VCLinkerTool':
                            {
                                'EnableCOMDATFolding': '1',
                                'OptimizeReferences': '1',
                            }
                        },
                    }],
                    ['angle_build_winphone==1',
                    {
                        'msvs_enable_winphone' : '1',
                    }],
                ],
            },
        ],
    }