Edit

kc3-lang/angle/src/libEGL.gypi

Branch :

  • Show log

    Commit

  • Author : Corentin Wallez
    Date : 2015-12-07 13:05:17
    Hash : c89df2ba
    Message : Add loadable_module versions of libEGL and libGLESv2. Reland with a link fix for Clang on Windows In order to implement the --use-gl=angle Chrome flag on Linux, we need to have the ANGLE .so directly in the build directory however GYP places shared_libraries under lib/ on Linux. On the contrary loadable_modules cannot be linked against so we need to keep the shared_library targets. This commit adds _ANGLE versions of the libEGL and libGLESv2 targets as loadable module that depend on their respective shared library. BUG=522967 Change-Id: Iad968ab786b94b6041c279921de99633d23b48a7 Reviewed-on: https://chromium-review.googlesource.com/318470 Tryjob-Request: Corentin Wallez <cwallez@chromium.org> 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
        'variables':
        {
            'angle_standalone%': 0,
        },
        '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_requires_importlibrary' : 'true',
                    }],
                ],
            },
        ],
        'conditions':
        [
            ['angle_standalone==0 and OS!="win"',
            {
                'targets':
                [
                    {
                        'target_name': 'libEGL_ANGLE',
                        'type': 'loadable_module',
                        'dependencies':
                        [
                            'libEGL',
                        ],
                    },
                ],
            }],
        ],
    }