6edd81dd521409c89c4a071989959cb14c010c5b
[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     'targets':
7     [
8         {
9             'target_name': 'essl_to_glsl',
10             'type': 'executable',
11             'dependencies': [ '../src/angle.gyp:translator_static', ],
12             'include_dirs': [ '../include', ],
13             'sources': [ '<!@(python enumerate_files.py translator -types *.cpp *.h)' ],
14         },
15     ],
16     'conditions':
17     [
18         ['OS=="win"',
19         {
20             'targets':
21             [
22                 {
23                     'target_name': 'essl_to_hlsl',
24                     'type': 'executable',
25                     'dependencies': [ '../src/angle.gyp:translator_static', ],
26                     'include_dirs':
27                     [
28                         '../include',
29                         '../src',
30                     ],
31                     'sources':
32                     [
33                         '<!@(python enumerate_files.py translator -types *.cpp *.h)',
34                     ],
35                     'msvs_settings':
36                     {
37                         'VCLinkerTool':
38                         {
39                             'AdditionalDependencies':
40                             [
41                                 'd3d9.lib',
42                             ],
43                         }
44                     }
45                 },
46
47                 {
48                     'target_name': 'es_util',
49                     'type': 'static_library',
50                     'dependencies':
51                     [
52                         '../src/angle.gyp:libEGL',
53                         '../src/angle.gyp:libGLESv2',
54                     ],
55                     'include_dirs':
56                     [
57                         'gles2_book/Common',
58                         '../include',
59                     ],
60                     'sources':
61                     [
62                         '<!@(python enumerate_files.py gles2_book/Common -types *.c *.h)'
63                     ],
64                     'direct_dependent_settings':
65                     {
66                         'include_dirs':
67                         [
68                             'gles2_book/Common',
69                             '../include',
70                         ],
71                     },
72                 },
73
74                 {
75                     'target_name': 'hello_triangle',
76                     'type': 'executable',
77                     'dependencies': [ 'es_util' ],
78                     'sources': [ '<!@(python enumerate_files.py gles2_book/Hello_Triangle -types *.c *.h)' ],
79                 },
80
81                 {
82                     'target_name': 'mip_map_2d',
83                     'type': 'executable',
84                     'dependencies': [ 'es_util' ],
85                     'sources': [ '<!@(python enumerate_files.py gles2_book/MipMap2D -types *.c *.h)' ],
86                 },
87
88                 {
89                     'target_name': 'multi_texture',
90                     'type': 'executable',
91                     'dependencies': [ 'es_util' ],
92                     'sources': [ '<!@(python enumerate_files.py gles2_book/MultiTexture -types *.c *.h)' ],
93                     'copies':
94                     [
95                         {
96                             'destination': '<(PRODUCT_DIR)',
97                             'files': [ '<!@(python enumerate_files.py gles2_book/MultiTexture -types *.tga)' ],
98                         }
99                     ]
100                 },
101
102                 {
103                     'target_name': 'particle_system',
104                     'type': 'executable',
105                     'dependencies': [ 'es_util' ],
106                     'sources': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.c *.h)' ],
107                     'copies':
108                     [
109                         {
110                             'destination': '<(PRODUCT_DIR)',
111                             'files': [ '<!@(python enumerate_files.py gles2_book/ParticleSystem -types *.tga)' ],
112                         }
113                     ]
114                 },
115
116                 {
117                     'target_name': 'simple_texture_2d',
118                     'type': 'executable',
119                     'dependencies': [ 'es_util' ],
120                     'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_Texture2D -types *.c *.h)' ],
121                 },
122
123                 {
124                     'target_name': 'simple_texture_cubemap',
125                     'type': 'executable',
126                     'dependencies': [ 'es_util' ],
127                     'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_TextureCubemap -types *.c *.h)' ],
128                 },
129
130                 {
131                     'target_name': 'simple_vertex_shader',
132                     'type': 'executable',
133                     'dependencies': [ 'es_util' ],
134                     'sources': [ '<!@(python enumerate_files.py gles2_book/Simple_VertexShader -types *.c *.h)' ],
135                 },
136
137                 {
138                     'target_name': 'stencil_test',
139                     'type': 'executable',
140                     'dependencies': [ 'es_util' ],
141                     'sources': [ '<!@(python enumerate_files.py gles2_book/Stencil_Test -types *.c *.h)' ],
142                 },
143
144                 {
145                     'target_name': 'texture_wrap',
146                     'type': 'executable',
147                     'dependencies': [ 'es_util' ],
148                     'sources': [ '<!@(python enumerate_files.py gles2_book/TextureWrap -types *.c *.h)' ],
149                 },
150
151                 {
152                     'target_name': 'post_sub_buffer',
153                     'type': 'executable',
154                     'dependencies': [ 'es_util' ],
155                     'sources': [ '<!@(python enumerate_files.py gles2_book/PostSubBuffer -types *.c *.h)' ],
156                 },
157             ],
158         }
159         ],
160     ],
161 }