Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
0e435467
Commit
0e435467
authored
Sep 03, 2013
by
Geoff Lang
Committed by
Geoff Lang
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored the samples.gyp file.
parent
39d5166d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
195 additions
and
179 deletions
+195
-179
all.gyp
build/all.gyp
+1
-1
build_samples.gyp
samples/build_samples.gyp
+0
-178
enumerate_files.py
samples/enumerate_files.py
+26
-0
samples.gyp
samples/samples.gyp
+168
-0
No files found.
build/all.gyp
View file @
0e435467
...
...
@@ -12,7 +12,7 @@
# as soon as we can get rid of manually-maintained sln files.
# Otherwise auto-generated sln files will overwrite/conflict the
# manually maintained ones.
'../samples/
build_
samples.gyp:*',
'../samples/samples.gyp:*',
'../src/angle.gyp:*',
'../tests/build_tests.gyp:*',
],
...
...
samples/build_samples.gyp
deleted
100644 → 0
View file @
39d5166d
# 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',
'dependencies': [
'../src/angle.gyp:translator',
],
'include_dirs': [
'../include',
],
'sources': [
'translator/translator.cpp',
],
},
],
'conditions': [
['OS=="win"', {
'targets': [
{
'target_name': 'essl_to_hlsl',
'type': 'executable',
'dependencies': [
'../src/angle.gyp:translator',
],
'include_dirs': [
'../include',
'../src',
],
'sources': [
'translator/translator.cpp',
'../src/common/debug.cpp',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': ['d3d9.lib'],
}
}
},
{
'target_name': 'es_util',
'type': 'static_library',
'dependencies': [
'../src/angle.gyp:libEGL',
'../src/angle.gyp:libGLESv2',
],
'include_dirs': [
'gles2_book/Common',
'../include',
],
'sources': [
'gles2_book/Common/esShader.c',
'gles2_book/Common/esShapes.c',
'gles2_book/Common/esTransform.c',
'gles2_book/Common/esUtil.c',
'gles2_book/Common/esUtil.h',
'gles2_book/Common/esUtil_win.h',
'gles2_book/Common/Win32/esUtil_TGA.c',
'gles2_book/Common/Win32/esUtil_win32.c',
],
'direct_dependent_settings': {
'include_dirs': [
'gles2_book/Common',
'../include',
],
},
},
{
'target_name': 'hello_triangle',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/Hello_Triangle/Hello_Triangle.c',
],
},
{
'target_name': 'mip_map_2d',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/MipMap2D/MipMap2D.c',
],
},
{
'target_name': 'multi_texture',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/MultiTexture/MultiTexture.c',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
'gles2_book/MultiTexture/basemap.tga',
'gles2_book/MultiTexture/lightmap.tga',
],
},
],
},
{
'target_name': 'particle_system',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/ParticleSystem/ParticleSystem.c',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)',
'files': [
'gles2_book/ParticleSystem/smoke.tga',
],
},
],
},
{
'target_name': 'simple_texture_2d',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/Simple_Texture2D/Simple_Texture2D.c',
],
},
{
'target_name': 'simple_texture_cubemap',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/Simple_TextureCubemap/Simple_TextureCubemap.c',
],
},
{
'target_name': 'simple_vertex_shader',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/Simple_VertexShader/Simple_VertexShader.c',
],
},
{
'target_name': 'stencil_test',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/Stencil_Test/Stencil_Test.c',
],
},
{
'target_name': 'texture_wrap',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/TextureWrap/TextureWrap.c',
],
},
{
'target_name': 'post_sub_buffer',
'type': 'executable',
'dependencies': ['es_util'],
'sources': [
'gles2_book/PostSubBuffer/PostSubBuffer.c',
],
},
],
}],
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
samples/enumerate_files.py
0 → 100644
View file @
0e435467
import
fnmatch
import
os
import
sys
rootdirs
=
[
]
filetypes
=
[
]
foundTypesArg
=
False
for
i
in
range
(
1
,
len
(
sys
.
argv
)):
arg
=
sys
.
argv
[
i
]
if
arg
==
"-types"
:
foundTypesArg
=
True
continue
if
foundTypesArg
:
filetypes
.
append
(
arg
)
else
:
rootdirs
.
append
(
arg
)
for
rootdir
in
rootdirs
:
for
root
,
dirnames
,
filenames
in
os
.
walk
(
rootdir
):
for
file
in
filenames
:
for
type
in
filetypes
:
if
fnmatch
.
fnmatchcase
(
file
,
type
):
print
os
.
path
.
join
(
root
,
file
)
.
replace
(
"
\\
"
,
"/"
)
break
samples/samples.gyp
0 → 100644
View file @
0e435467
# 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',
'dependencies': [ '../src/angle.gyp:translator', ],
'include_dirs': [ '../include', ],
'sources': [ '<!@(python enumerate_files.py translator -types *.cpp *.h)' ],
},
],
'conditions':
[
['OS=="win"',
{
'targets':
[
{
'target_name': 'essl_to_hlsl',
'type': 'executable',
'dependencies': [ '../src/angle.gyp:translator', ],
'include_dirs':
[
'../include',
'../src',
],
'sources':
[
'<!@(python enumerate_files.py translator -types *.cpp *.h)',
],
'msvs_settings':
{
'VCLinkerTool':
{
'AdditionalDependencies':
[
'd3d9.lib',
'%(AdditionalDependencies)',
],
}
}
},
{
'target_name': 'es_util',
'type': 'static_library',
'dependencies':
[
'../src/angle.gyp:libEGL',
'../src/angle.gyp:libGLESv2',
],
'include_dirs':
[
'gles2_book/Common',
'../include',
],
'sources':
[
'<!@(python enumerate_files.py gles2_book/Common -types *.c *.h)'
],
'direct_dependent_settings':
{
'include_dirs':
[
'gles2_book/Common',
'../include',
],
},
},
{
'target_name': 'hello_triangle',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Hello_Triangle -types *.c *.h)' ],
},
{
'target_name': 'mip_map_2d',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/MipMap2D -types *.c *.h)' ],
},
{
'target_name': 'multi_texture',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/MultiTexture -types *.c *.h)' ],
'copies':
[
{
'destination': '<(PRODUCT_DIR)',
'files': [ '<!@(python enumerate_files.py gles2_book/MultiTexture -types *.tga)' ],
}
]
},
{
'target_name': 'particle_system',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.c *.h)' ],
'copies':
[
{
'destination': '<(PRODUCT_DIR)',
'files': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.tga)' ],
}
]
},
{
'target_name': 'simple_texture_2d',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_Texture2D -types *.c *.h)' ],
},
{
'target_name': 'simple_texture_cubemap',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_TextureCubemap -types *.c *.h)' ],
},
{
'target_name': 'simple_vertex_shader',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_VertexShader -types *.c *.h)' ],
},
{
'target_name': 'stencil_test',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Stencil_Test -types *.c *.h)' ],
},
{
'target_name': 'texture_wrap',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/TextureWrap -types *.c *.h)' ],
},
{
'target_name': 'post_sub_buffer',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/PostSubBuffer -types *.c *.h)' ],
},
],
}
],
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment