Move the enumerate_files script to the build directory.

BUG=angle:552

Change-Id: I9f357c68c258c7731cf0d5c2ceed3a2875b21228
Reviewed-on: https://chromium-review.googlesource.com/185142
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
Geoff Lang 2014-02-06 11:06:50 -05:00
Родитель 0550d0389a
Коммит 1106aeb2f1
9 изменённых файлов: 35 добавлений и 90 удалений

Просмотреть файл

Просмотреть файл

@ -3,6 +3,10 @@
# found in the LICENSE file.
{
'variables':
{
'angle_build_scripts_path': '..',
},
'targets':
[
{
@ -10,7 +14,7 @@
'type': 'executable',
'dependencies': [ '../src/angle.gyp:translator_static', ],
'include_dirs': [ '../include', ],
'sources': [ '<!@(python enumerate_files.py translator -types *.cpp *.h)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py translator -types *.cpp *.h)' ],
},
],
'conditions':
@ -30,7 +34,7 @@
],
'sources':
[
'<!@(python enumerate_files.py translator -types *.cpp *.h)',
'<!@(python <(angle_build_scripts_path)/enumerate_files.py translator -types *.cpp *.h)',
],
},
@ -39,7 +43,7 @@
'type': 'executable',
'sources':
[
'<!@(python enumerate_files.py dds_to_header -types *.cpp)',
'<!@(python <(angle_build_scripts_path)/enumerate_files.py dds_to_header -types *.cpp)',
],
},
@ -58,7 +62,7 @@
],
'sources':
[
'<!@(python enumerate_files.py gles2_book/Common -types *.c *.h)'
'<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Common -types *.c *.h)'
],
'direct_dependent_settings':
{
@ -74,26 +78,26 @@
'target_name': 'hello_triangle',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Hello_Triangle -types *.c *.h)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/MultiTexture -types *.c *.h)' ],
'copies':
[
{
'destination': '<(PRODUCT_DIR)',
'files': [ '<!@(python enumerate_files.py gles2_book/MultiTexture -types *.tga)' ],
'files': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/MultiTexture -types *.tga)' ],
}
]
},
@ -102,12 +106,12 @@
'target_name': 'particle_system',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.c *.h)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/ParticleSystem -types *.c *.h)' ],
'copies':
[
{
'destination': '<(PRODUCT_DIR)',
'files': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.tga)' ],
'files': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/ParticleSystem -types *.tga)' ],
}
]
},
@ -116,51 +120,45 @@
'target_name': 'simple_texture_2d',
'type': 'executable',
'dependencies': [ 'es_util' ],
'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_Texture2D -types *.c *.h)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/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:

Просмотреть файл

@ -8,6 +8,7 @@
'angle_code': 1,
'angle_post_build_script%': 0,
'angle_relative_src_path%': '',
'angle_build_scripts_path': '..',
},
'includes':
[

Просмотреть файл

@ -9,7 +9,7 @@
'target_name': 'preprocessor',
'type': 'static_library',
'include_dirs': [ ],
'sources': [ '<!@(python enumerate_files.py compiler/preprocessor -types *.cpp *.h)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/preprocessor -types *.cpp *.h)' ],
# TODO(jschuh): http://crbug.com/167187 size_t -> int
'msvs_disabled_warnings': [ 4267 ],
},
@ -27,7 +27,7 @@
[
'ANGLE_TRANSLATOR_IMPLEMENTATION',
],
'sources': [ '<!@(python enumerate_files.py compiler/translator third_party/compiler common ../include -types *.cpp *.h *.y *.l )', ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/translator third_party/compiler common ../include -types *.cpp *.h *.y *.l )', ],
'conditions':
[
['OS=="win"',
@ -69,7 +69,7 @@
'ANGLE_TRANSLATOR_STATIC',
],
},
'sources': [ '<!@(python enumerate_files.py compiler/translator third_party/compiler common ../include -types *.cpp *.h *.y *.l )', ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler/translator third_party/compiler common ../include -types *.cpp *.h *.y *.l )', ],
'conditions':
[
['OS=="win"',

Просмотреть файл

@ -1,26 +0,0 @@
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

Просмотреть файл

@ -19,7 +19,7 @@
'../include',
'libGLESv2',
],
'sources': [ '<!@(python enumerate_files.py common libEGL ../include -types *.cpp *.h *.def libEGL.rc)' ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py common libEGL ../include -types *.cpp *.h *.def libEGL.rc)' ],
# TODO(jschuh): http://crbug.com/167187 size_t -> int
'msvs_disabled_warnings': [ 4267 ],
'msvs_settings':

Просмотреть файл

@ -28,7 +28,7 @@
'../include',
'libGLESv2',
],
'sources': [ '<!@(python enumerate_files.py common libGLESv2 third_party/murmurhash ../include -types *.cpp *.h *.hlsl *.vs *.ps *.bat *.def libGLESv2.rc)', ],
'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py common libGLESv2 third_party/murmurhash ../include -types *.cpp *.h *.hlsl *.vs *.ps *.bat *.def libGLESv2.rc)', ],
# TODO(jschuh): http://crbug.com/167187 size_t -> int
'msvs_disabled_warnings': [ 4267 ],
'msvs_settings':

Просмотреть файл

@ -1,26 +0,0 @@
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

Просмотреть файл

@ -3,6 +3,10 @@
# found in the LICENSE file.
{
'variables':
{
'angle_build_scripts_path': '..',
},
'targets':
[
{
@ -73,7 +77,7 @@
],
'sources':
[
'<!@(python enumerate_files.py preprocessor_tests -types *.cpp *.h)'
'<!@(python <(angle_build_scripts_path)/enumerate_files.py preprocessor_tests -types *.cpp *.h)'
],
},
@ -95,7 +99,7 @@
],
'sources':
[
'<!@(python enumerate_files.py compiler_tests -types *.cpp *.h)'
'<!@(python <(angle_build_scripts_path)/enumerate_files.py compiler_tests -types *.cpp *.h)'
],
},
],
@ -125,7 +129,7 @@
],
'sources':
[
'<!@(python enumerate_files.py angle_tests -types *.cpp *.h *.inl)'
'<!@(python <(angle_build_scripts_path)/enumerate_files.py angle_tests -types *.cpp *.h *.inl)'
],
},
{
@ -145,16 +149,10 @@
],
'sources':
[
'<!@(python enumerate_files.py standalone_tests -types *.cpp *.h)'
'<!@(python <(angle_build_scripts_path)/enumerate_files.py standalone_tests -types *.cpp *.h)'
],
},
],
}],
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: