summaryrefslogtreecommitdiff
path: root/chromium/third_party/angle/samples/samples.gyp
blob: 2570d9e5a97ae9ac964c425d917978f88929b447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# 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': 'shader_translator',
            'type': 'executable',
            'includes': [ '../build/common_defines.gypi', ],
            'dependencies': [ '../src/angle.gyp:translator_static', ],
            'include_dirs': [ '../include', ],
            'sources': [ 'shader_translator/shader_translator.cpp' ],
        },
        {
            'target_name': 'sample_util',
            'type': 'static_library',
            'includes': [ '../build/common_defines.gypi', ],
            'dependencies':
            [
                '<(angle_path)/src/angle.gyp:libEGL',
                '<(angle_path)/src/angle.gyp:libGLESv2',
                '<(angle_path)/util/util.gyp:angle_util',
            ],
            'export_dependent_settings':
            [
                '<(angle_path)/util/util.gyp:angle_util',
            ],
            'include_dirs':
            [
                '<(angle_path)/include',
                'sample_util',
            ],
            'sources':
            [
                'sample_util/Matrix.cpp',
                'sample_util/Matrix.h',
                'sample_util/SampleApplication.cpp',
                'sample_util/SampleApplication.h',
                'sample_util/Vector.cpp',
                'sample_util/Vector.h',
                'sample_util/geometry_utils.cpp',
                'sample_util/geometry_utils.h',
                'sample_util/texture_utils.cpp',
                'sample_util/texture_utils.h',
                'sample_util/tga_utils.cpp',
                'sample_util/tga_utils.h',
            ],
            'msvs_disabled_warnings': [ 4201 ],
            'direct_dependent_settings':
            {
                'msvs_disabled_warnings': [ 4201 ],
                'include_dirs':
                [
                    'sample_util',
                ],
            },
        },
        {
            'target_name': 'hello_triangle',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'hello_triangle/HelloTriangle.cpp', ],
        },
        {
            'target_name': 'mip_map_2d',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'mip_map_2d/MipMap2D.cpp', ],
        },
        {
            'target_name': 'multi_texture',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'multi_texture/MultiTexture.cpp', ],
            'copies':
            [
                {
                    'destination': '<(PRODUCT_DIR)',
                    'files':
                    [
                        'multi_texture/basemap.tga',
                        'multi_texture/lightmap.tga',
                    ],
                },
            ]
        },

        {
            'target_name': 'multi_window',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'multi_window/MultiWindow.cpp', ],
        },

        {
            'target_name': 'multiple_draw_buffers',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'multiple_draw_buffers/MultipleDrawBuffers.cpp', ],
            'copies':
            [
                {
                    'destination': '<(PRODUCT_DIR)',
                    'files':
                    [
                        'multiple_draw_buffers/multiple_draw_buffers_copy_fs.glsl',
                        'multiple_draw_buffers/multiple_draw_buffers_fs.glsl',
                        'multiple_draw_buffers/multiple_draw_buffers_vs.glsl',
                    ],
                }
            ]
        },

        {
            'target_name': 'particle_system',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'particle_system/ParticleSystem.cpp', ],
            'copies':
            [
                {
                    'destination': '<(PRODUCT_DIR)',
                    'files':
                    [
                        'particle_system/smoke.tga',
                    ],
                }
            ]
        },
        {
            'target_name': 'post_sub_buffer',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'post_sub_buffer/PostSubBuffer.cpp', ],
        },

        {
            'target_name': 'simple_instancing',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'simple_instancing/SimpleInstancing.cpp', ],
        },

        {
            'target_name': 'simple_texture_2d',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'simple_texture_2d/SimpleTexture2D.cpp', ],
        },

        {
            'target_name': 'simple_texture_cubemap',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'simple_texture_cubemap/SimpleTextureCubemap.cpp', ],
        },

        {
            'target_name': 'stencil_operations',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'stencil_operations/StencilOperations.cpp', ],
        },

        {
            'target_name': 'tex_redef_microbench',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'tex_redef_microbench/TexRedefMicroBench.cpp', ],
        },

        {
            'target_name': 'texture_wrap',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'texture_wrap/TextureWrap.cpp', ],
        },

        {
            'target_name': 'tri_fan_microbench',
            'type': 'executable',
            'dependencies': [ 'sample_util' ],
            'includes': [ '../build/common_defines.gypi', ],
            'sources': [ 'tri_fan_microbench/TriFanMicroBench.cpp', ],
        },
    ],
}