blob: 9f85ce1fd82a8562d4b9fc40d64e78817eb45572 [file] [log] [blame]
Geoff Lang0e435462013-09-03 15:21:51 -04001# 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',
Geoff Langd095bda2014-04-07 14:21:14 -040011 'includes': [ '../build/common_defines.gypi', ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -040012 'dependencies': [ '../src/angle.gyp:translator_static', ],
Geoff Lang0e435462013-09-03 15:21:51 -040013 'include_dirs': [ '../include', ],
Jamie Madillf0b40602014-03-24 14:49:11 -040014 'sources': [ '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -040015 },
16 ],
17 'conditions':
18 [
19 ['OS=="win"',
20 {
21 'targets':
22 [
23 {
24 'target_name': 'essl_to_hlsl',
25 'type': 'executable',
Geoff Langd095bda2014-04-07 14:21:14 -040026 'includes': [ '../build/common_defines.gypi', ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -040027 'dependencies': [ '../src/angle.gyp:translator_static', ],
Geoff Lang0e435462013-09-03 15:21:51 -040028 'include_dirs':
29 [
30 '../include',
31 '../src',
32 ],
33 'sources':
34 [
Jamie Madillf0b40602014-03-24 14:49:11 -040035 '<!@(python <(angle_path)/enumerate_files.py translator -types *.cpp *.h)',
Geoff Lang0e435462013-09-03 15:21:51 -040036 ],
Geoff Lang0e435462013-09-03 15:21:51 -040037 },
38
39 {
Geoff Langa50232f2014-01-10 15:52:18 -050040 'target_name': 'dds_to_header',
41 'type': 'executable',
Geoff Langd095bda2014-04-07 14:21:14 -040042 'includes': [ '../build/common_defines.gypi', ],
Geoff Langa50232f2014-01-10 15:52:18 -050043 'sources':
44 [
Jamie Madillf0b40602014-03-24 14:49:11 -040045 '<!@(python <(angle_path)/enumerate_files.py dds_to_header -types *.cpp)',
Geoff Langa50232f2014-01-10 15:52:18 -050046 ],
47 },
48
49 {
Geoff Lang49be2ad2014-02-28 13:05:51 -050050 'target_name': 'sample_util',
51 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -040052 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang49be2ad2014-02-28 13:05:51 -050053 'dependencies':
54 [
55 '../src/angle.gyp:libEGL',
56 '../src/angle.gyp:libGLESv2',
57 ],
58 'include_dirs':
59 [
60 '../include',
61 'angle/sample_util',
62 ],
63 'sources':
64 [
65 '<!@(python <(angle_path)/enumerate_files.py angle/sample_util -types *.cpp *.h)'
66 ],
67 'msvs_disabled_warnings': [ 4201 ],
68 'direct_dependent_settings':
69 {
70 'msvs_disabled_warnings': [ 4201 ],
71 'include_dirs':
72 [
73 '../include',
74 'angle/sample_util',
75 ],
76 },
77 },
78
79 {
Geoff Lang0e435462013-09-03 15:21:51 -040080 'target_name': 'hello_triangle',
81 'type': 'executable',
Geoff Lang8776b252014-02-28 13:11:18 -050082 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -040083 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang8776b252014-02-28 13:11:18 -050084 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/hello_triangle -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -040085 },
86
87 {
88 'target_name': 'mip_map_2d',
89 'type': 'executable',
Geoff Lang9adef9b2014-02-28 13:12:54 -050090 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -040091 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang9adef9b2014-02-28 13:12:54 -050092 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/mip_map_2d -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -040093 },
94
95 {
96 'target_name': 'multi_texture',
97 'type': 'executable',
Geoff Lang1b3e4b82014-02-28 13:14:40 -050098 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -040099 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang1b3e4b82014-02-28 13:14:40 -0500100 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400101 'copies':
102 [
103 {
104 'destination': '<(PRODUCT_DIR)',
Geoff Lang1b3e4b82014-02-28 13:14:40 -0500105 'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multi_texture -types *.tga)' ],
106 },
Geoff Lang0e435462013-09-03 15:21:51 -0400107 ]
108 },
109
110 {
111 'target_name': 'particle_system',
112 'type': 'executable',
Geoff Langd19fae52014-02-28 13:17:57 -0500113 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400114 'includes': [ '../build/common_defines.gypi', ],
Geoff Langd19fae52014-02-28 13:17:57 -0500115 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400116 'copies':
117 [
118 {
119 'destination': '<(PRODUCT_DIR)',
Geoff Langd19fae52014-02-28 13:17:57 -0500120 'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/particle_system -types *.tga)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400121 }
122 ]
123 },
124
125 {
Geoff Lang8dd592b2014-03-03 10:46:33 -0500126 'target_name': 'simple_instancing',
127 'type': 'executable',
128 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400129 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang8dd592b2014-03-03 10:46:33 -0500130 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_instancing -types *.cpp *.h)' ],
131 },
132
133 {
Geoff Lang712e3f42014-03-03 11:14:15 -0500134 'target_name': 'multiple_draw_buffers',
135 'type': 'executable',
136 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400137 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang712e3f42014-03-03 11:14:15 -0500138 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.cpp *.h *.glsl)' ],
139 'copies':
140 [
141 {
142 'destination': '<(PRODUCT_DIR)',
143 'files': [ '<!@(python <(angle_path)/enumerate_files.py angle/multiple_draw_buffers -types *.glsl)' ],
144 }
145 ]
146 },
147
148 {
Geoff Lang0e435462013-09-03 15:21:51 -0400149 'target_name': 'simple_texture_2d',
150 'type': 'executable',
Geoff Lang99384042014-03-03 14:32:10 -0500151 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400152 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang99384042014-03-03 14:32:10 -0500153 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_2d -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400154 },
155
156 {
157 'target_name': 'simple_texture_cubemap',
158 'type': 'executable',
Geoff Lang705073f2014-03-03 15:42:53 -0500159 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400160 'includes': [ '../build/common_defines.gypi', ],
Geoff Lang705073f2014-03-03 15:42:53 -0500161 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_texture_cubemap -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400162 },
163
164 {
165 'target_name': 'simple_vertex_shader',
166 'type': 'executable',
Geoff Langf6139352014-03-03 16:44:56 -0500167 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400168 'includes': [ '../build/common_defines.gypi', ],
Geoff Langf6139352014-03-03 16:44:56 -0500169 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/simple_vertex_shader -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400170 },
171
172 {
Geoff Langd3a40922014-03-04 11:07:13 -0500173 'target_name': 'stencil_operations',
Geoff Lang0e435462013-09-03 15:21:51 -0400174 'type': 'executable',
Geoff Langd3a40922014-03-04 11:07:13 -0500175 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400176 'includes': [ '../build/common_defines.gypi', ],
Geoff Langd3a40922014-03-04 11:07:13 -0500177 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/stencil_operations -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400178 },
179
180 {
181 'target_name': 'texture_wrap',
182 'type': 'executable',
Geoff Lange9b02242014-03-04 11:21:19 -0500183 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400184 'includes': [ '../build/common_defines.gypi', ],
Geoff Lange9b02242014-03-04 11:21:19 -0500185 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/texture_wrap -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400186 },
187
188 {
189 'target_name': 'post_sub_buffer',
190 'type': 'executable',
Geoff Lange977efc2014-03-04 11:43:04 -0500191 'dependencies': [ 'sample_util' ],
Geoff Langd095bda2014-04-07 14:21:14 -0400192 'includes': [ '../build/common_defines.gypi', ],
Geoff Lange977efc2014-03-04 11:43:04 -0500193 'sources': [ '<!@(python <(angle_path)/enumerate_files.py angle/post_sub_buffer -types *.cpp *.h)' ],
Geoff Lang0e435462013-09-03 15:21:51 -0400194 },
195 ],
196 }
197 ],
198 ],
199}