mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
This reverts commit d51df461e5.
Conflicts:
projects/build/all.sln
projects/samples/samples.sln
src/compiler.gypi
Change-Id: I6e1d77531df61de28e4402ed1916f6ecdebb68fd
Reviewed-on: https://chromium-review.googlesource.com/192890
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
200 lines
8.2 KiB
Python
200 lines
8.2 KiB
Python
# 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',
|
|
],
|
|
'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',
|
|
],
|
|
},
|
|
},
|
|
|
|
{
|
|
'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)' ],
|
|
},
|
|
],
|
|
}
|
|
],
|
|
],
|
|
}
|