Upstream version 6.35.121.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / samples / samples.gyp
1 # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6     'variables':
7     {
8         'angle_build_scripts_path': '..',
9     },
10     'targets':
11     [
12         {
13             'target_name': 'essl_to_glsl',
14             'type': 'executable',
15             'dependencies': [ '../src/angle.gyp:translator_static', ],
16             'include_dirs': [ '../include', ],
17             'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py translator -types *.cpp *.h)' ],
18         },
19     ],
20     'conditions':
21     [
22         ['OS=="win"',
23         {
24             'targets':
25             [
26                 {
27                     'target_name': 'essl_to_hlsl',
28                     'type': 'executable',
29                     'dependencies': [ '../src/angle.gyp:translator_static', ],
30                     'include_dirs':
31                     [
32                         '../include',
33                         '../src',
34                     ],
35                     'sources':
36                     [
37                         '<!@(python <(angle_build_scripts_path)/enumerate_files.py translator -types *.cpp *.h)',
38                     ],
39                 },
40
41                 {
42                     'target_name': 'es_util',
43                     'type': 'static_library',
44                     'dependencies':
45                     [
46                         '../src/angle.gyp:libEGL',
47                         '../src/angle.gyp:libGLESv2',
48                     ],
49                     'include_dirs':
50                     [
51                         'gles2_book/Common',
52                         '../include',
53                     ],
54                     'sources':
55                     [
56                         '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Common -types *.c *.h)'
57                     ],
58                     'direct_dependent_settings':
59                     {
60                         'include_dirs':
61                         [
62                             'gles2_book/Common',
63                             '../include',
64                         ],
65                     },
66                 },
67
68                 {
69                     'target_name': 'hello_triangle',
70                     'type': 'executable',
71                     'dependencies': [ 'es_util' ],
72                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Hello_Triangle -types *.c *.h)' ],
73                 },
74
75                 {
76                     'target_name': 'mip_map_2d',
77                     'type': 'executable',
78                     'dependencies': [ 'es_util' ],
79                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/MipMap2D -types *.c *.h)' ],
80                 },
81
82                 {
83                     'target_name': 'multi_texture',
84                     'type': 'executable',
85                     'dependencies': [ 'es_util' ],
86                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/MultiTexture -types *.c *.h)' ],
87                     'copies':
88                     [
89                         {
90                             'destination': '<(PRODUCT_DIR)',
91                             'files': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/MultiTexture -types *.tga)' ],
92                         }
93                     ]
94                 },
95
96                 {
97                     'target_name': 'particle_system',
98                     'type': 'executable',
99                     'dependencies': [ 'es_util' ],
100                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/ParticleSystem -types *.c *.h)' ],
101                     'copies':
102                     [
103                         {
104                             'destination': '<(PRODUCT_DIR)',
105                             'files': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/ParticleSystem -types *.tga)' ],
106                         }
107                     ]
108                 },
109
110                 {
111                     'target_name': 'simple_texture_2d',
112                     'type': 'executable',
113                     'dependencies': [ 'es_util' ],
114                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Simple_Texture2D -types *.c *.h)' ],
115                 },
116
117                 {
118                     'target_name': 'simple_texture_cubemap',
119                     'type': 'executable',
120                     'dependencies': [ 'es_util' ],
121                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Simple_TextureCubemap -types *.c *.h)' ],
122                 },
123
124                 {
125                     'target_name': 'simple_vertex_shader',
126                     'type': 'executable',
127                     'dependencies': [ 'es_util' ],
128                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Simple_VertexShader -types *.c *.h)' ],
129                 },
130
131                 {
132                     'target_name': 'stencil_test',
133                     'type': 'executable',
134                     'dependencies': [ 'es_util' ],
135                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/Stencil_Test -types *.c *.h)' ],
136                 },
137
138                 {
139                     'target_name': 'texture_wrap',
140                     'type': 'executable',
141                     'dependencies': [ 'es_util' ],
142                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/TextureWrap -types *.c *.h)' ],
143                 },
144
145                 {
146                     'target_name': 'post_sub_buffer',
147                     'type': 'executable',
148                     'dependencies': [ 'es_util' ],
149                     'sources': [ '<!@(python <(angle_build_scripts_path)/enumerate_files.py gles2_book/PostSubBuffer -types *.c *.h)' ],
150                 },
151             ],
152         }
153         ],
154     ],
155 }