Edit

kc3-lang/angle/util/util.gyp

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2015-09-11 13:52:12
    Hash : 82844367
    Message : Update to the latest versions of the GL and EGL headers. Add GLES 3.1 and 3.2 headers. Remove GLES 3.0 extension headers and entry point files. Re-land fixes double define from different style defines in libGLESv2.gypi and other projects. Change-Id: I6204dc767bd83b7aa7e4d6e2fa338b2ce7f304d8 Reviewed-on: https://chromium-review.googlesource.com/299401 Tested-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • util/util.gyp
  • # 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.
    
    {
        # Everything below  this is duplicated in the GN build, except Mac support.
        # If you change anything also change angle/BUILD.gn
        'variables':
        {
            'util_sources':
            [
                'com_utils.h',
                'keyboard.h',
                'mouse.h',
                'random_utils.cpp',
                'random_utils.h',
                'shader_utils.cpp',
                'shader_utils.h',
                'system_utils.h',
                'Event.h',
                'EGLWindow.cpp',
                'EGLWindow.h',
                'OSPixmap.h',
                'OSWindow.cpp',
                'OSWindow.h',
                'Timer.h',
            ],
            'util_win32_sources':
            [
                'win32/Win32_system_utils.cpp',
                'win32/Win32Pixmap.cpp',
                'win32/Win32Pixmap.h',
                'win32/Win32Timer.cpp',
                'win32/Win32Timer.h',
                'win32/Win32Window.cpp',
                'win32/Win32Window.h',
            ],
            'util_linux_sources':
            [
                'linux/Linux_system_utils.cpp',
                'linux/LinuxTimer.cpp',
                'linux/LinuxTimer.h',
                'posix/Posix_system_utils.cpp',
            ],
            'util_x11_sources':
            [
                'x11/X11Pixmap.cpp',
                'x11/X11Pixmap.h',
                'x11/X11Window.cpp',
                'x11/X11Window.h',
            ],
            'util_osx_sources':
            [
                'osx/OSX_system_utils.cpp',
                'osx/OSXTimer.cpp',
                'osx/OSXTimer.h',
                'osx/OSXWindow.mm',
                'osx/OSXWindow.h',
                'posix/Posix_system_utils.cpp',
            ],
        },
        'targets':
        [
            {
                'target_name': 'angle_util',
                'type': 'static_library',
                'includes': [ '../build/common_defines.gypi', ],
                'dependencies':
                [
                    '<(angle_path)/src/angle.gyp:angle_common',
                    '<(angle_path)/src/angle.gyp:libEGL',
                    '<(angle_path)/src/angle.gyp:libGLESv2',
                ],
                'export_dependent_settings':
                [
                    '<(angle_path)/src/angle.gyp:angle_common',
                ],
                'include_dirs':
                [
                    '<(angle_path)/include',
                    '<(angle_path)/util',
                ],
                'sources':
                [
                    '<@(util_sources)',
                ],
                'defines':
                [
                    'GL_GLEXT_PROTOTYPES',
                    'EGL_EGLEXT_PROTOTYPES',
                ],
                'direct_dependent_settings':
                {
                    'include_dirs':
                    [
                        '<(angle_path)/include',
                        '<(angle_path)/util',
                    ],
                    'defines':
                    [
                        'GL_GLEXT_PROTOTYPES',
                        'EGL_EGLEXT_PROTOTYPES',
                    ],
                },
                'conditions':
                [
                    ['OS=="win"',
                    {
                        'msvs_disabled_warnings': [ 4201 ],
                        'sources':
                        [
                            '<@(util_win32_sources)',
                        ],
                    }],
                    ['OS=="linux"',
                    {
                        'sources':
                        [
                            '<@(util_linux_sources)',
                        ],
                    }],
                    ['use_x11==1',
                    {
                        'sources':
                        [
                            '<@(util_x11_sources)',
                        ],
                        'link_settings':
                        {
                            'ldflags':
                            [
                                '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
                            ],
                            'libraries':
                            [
                                '<!@(pkg-config --libs-only-l x11 xi) -lrt',
                            ],
                        },
                    }],
                    ['OS=="mac"',
                    {
                        'sources':
                        [
                            '<@(util_osx_sources)',
                        ],
                        'link_settings':
                        {
                            # TODO(cwallez) Chromium uses an SDKROOT prefix, use it when we want to
                            # support compiling ANGLE in Chromium on Mac
                            'libraries':
                            [
                                'AppKit.framework',
                                'QuartzCore.framework',
                            ],
                        },
                    }],
                ],
            },
        ],
    }