Edit

kc3-lang/angle/util/util.gyp

Branch :

  • Show log

    Commit

  • Author : Corentin Wallez
    Date : 2015-05-25 10:03:35
    Hash : 5c798fe9
    Message : Enable OcclusionQueriesTest on Linux This includes an implementation of a cross platform Sleep function BUG=angleproject:892 Change-Id: I1087a00ab204b37bafc5e95a9766962b194d97ef Reviewed-on: https://chromium-review.googlesource.com/273133 Reviewed-by: Geoff Lang <geofflang@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Corentin Wallez <cwallez@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.
    
    {
        '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',
                'OSWindow.cpp',
                'OSWindow.h',
                'Timer.h',
            ],
            'util_win32_sources':
            [
                'win32/Win32_system_utils.cpp',
                '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',
                'x11/X11Window.cpp',
                'x11/X11Window.h',
            ]
        },
        '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)',
                ],
                'direct_dependent_settings':
                {
                    'include_dirs':
                    [
                        '<(angle_path)/include',
                        '<(angle_path)/util',
                    ],
                },
                'conditions':
                [
                    ['OS=="win"',
                    {
                        'msvs_disabled_warnings': [ 4201 ],
                        'sources':
                        [
                            '<@(util_win32_sources)',
                        ],
                    }],
                    ['OS=="linux"',
                    {
                        'sources':
                        [
                            '<@(util_linux_sources)',
                        ],
                        'link_settings': {
                            'ldflags': [
                                '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)',
                            ],
                            'libraries': [
                                '<!@(pkg-config --libs-only-l x11 xi) -lrt',
                            ],
                        },
                    }],
                ],
            },
        ],
    }