Edit

kc3-lang/angle/samples/samples.gyp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2014-08-21 10:04:04
    Hash : 1cfaaf8a
    Message : Add a util project to share between samples and tests. This code shares the Window and EGL logic between the two projects. BUG=angle:730 Change-Id: I8940371226a8f7b02579c332f51679c4a5d0e2a5 Reviewed-on: https://chromium-review.googlesource.com/212799 Tested-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • samples/samples.gyp
  • # Copyright (c) 2010 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.
    
    {
        'targets':
        [
            {
                'target_name': 'essl_to_glsl',
                'type': 'executable',
                'includes': [ '../build/common_defines.gypi', ],
                'dependencies': [ '../src/angle.gyp:translator_static', ],
                'include_dirs': [ '../include', ],
                'sources': [ '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)' ],
            },
        ],
        'conditions':
        [
            ['OS=="win"',
            {
                'targets':
                [
                    {
                        'target_name': 'essl_to_hlsl',
                        'type': 'executable',
                        'includes': [ '../build/common_defines.gypi', ],
                        'dependencies': [ '../src/angle.gyp:translator_static', ],
                        'include_dirs':
                        [
                            '../include',
                            '../src',
                        ],
                        'sources':
                        [
                            '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)',
                        ],
                    },
    
                    {
                        'target_name': 'dds_to_header',
                        'type': 'executable',
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources':
                        [
                            '<!@(python <(angle_path)/enumerate_files.py dds_to_header -types *.cpp)',
                        ],
                    },
    
                    {
                        'target_name': 'sample_util',
                        'type': 'static_library',
                        'includes': [ '../build/common_defines.gypi', ],
                        'dependencies':
                        [
                            '../src/angle.gyp:libEGL',
                            '../src/angle.gyp:libGLESv2',
                            '../util/util.gyp:angle_util',
                        ],
                        'include_dirs':
                        [
                            '../include',
                            'angle/sample_util',
                        ],
                        'sources':
                        [
                            '<!@(python <(angle_path)/enumerate_files.py angle/sample_util -types *.cpp *.h)'
                        ],
                        'msvs_disabled_warnings': [ 4201 ],
                        'direct_dependent_settings':
                        {
                            'msvs_disabled_warnings': [ 4201 ],
                            'include_dirs':
                            [
                                '../include',
                                'angle/sample_util',
                                '../util',
                            ],
                        },
                    },
    
                    {
                        'target_name': 'hello_triangle',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/hello_triangle -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'mip_map_2d',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/mip_map_2d -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'multi_texture',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.cpp *.h)' ],
                        'copies':
                        [
                            {
                                'destination': '<(PRODUCT_DIR)',
                                'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.tga)' ],
                            },
                        ]
                    },
    
                    {
                        'target_name': 'particle_system',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.cpp *.h)' ],
                        'copies':
                        [
                            {
                                'destination': '<(PRODUCT_DIR)',
                                'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.tga)' ],
                            }
                        ]
                    },
    
                    {
                        'target_name': 'simple_instancing',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_instancing -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'multiple_draw_buffers',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.cpp *.h *.glsl)' ],
                        'copies':
                        [
                            {
                                'destination': '<(PRODUCT_DIR)',
                                'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.glsl)' ],
                            }
                        ]
                    },
    
                    {
                        'target_name': 'simple_texture_2d',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_2d -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'simple_texture_cubemap',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_cubemap -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'simple_vertex_shader',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_vertex_shader -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'stencil_operations',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/stencil_operations -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'texture_wrap',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/texture_wrap -types *.cpp *.h)' ],
                    },
    
                    {
                        'target_name': 'post_sub_buffer',
                        'type': 'executable',
                        'dependencies': [ 'sample_util' ],
                        'includes': [ '../build/common_defines.gypi', ],
                        'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/post_sub_buffer -types *.cpp *.h)' ],
                    },
                ],
            }
            ],
        ],
    }