cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / gpu / gles2_conform_support / gles2_conform_support.gyp
blob6564ea1e57b37d76d906660252e3467a12b4b2b5
1 # Copyright (c) 2012 The Chromium 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.
6   'variables': {
7     'chromium_code': 1,
8     # These are defined here because we want to be able to compile them on
9     # the buildbots without needed the OpenGL ES 2.0 conformance tests
10     # which are not open source.
11     'bootstrap_sources_native': [
12       'native/main.cc',
13     ],
14    'conditions': [
15      ['OS=="linux"', {
16        'bootstrap_sources_native': [
17          'native/egl_native_aura.cc',
18          'native/egl_native.cc',
19          'native/egl_native_gtk.cc',
20          'native/egl_native_x11.cc',
21        ],
22      }],
23      ['OS=="win"', {
24        'bootstrap_sources_native': [
25          'native/egl_native.cc',
26          'native/egl_native_win.cc',
27        ],
28      }],
29    ],
31   },
32   'targets': [
33     {
34       'target_name': 'egl_native',
35       'type': 'static_library',
36       'dependencies': [
37         '../../base/base.gyp:base',
38         '../../gpu/gpu.gyp:gpu',
39         '../../gpu/gpu.gyp:gles2_implementation_client_side_arrays_no_check',
40         '../../gpu/gpu.gyp:command_buffer_service',
41         '../../third_party/khronos/khronos.gyp:khronos_headers',
42         '../../ui/gl/gl.gyp:gl',
43         '../../ui/ui.gyp:ui',
44       ],
45       'sources': [
46         'egl/config.cc',
47         'egl/config.h',
48         'egl/display.cc',
49         'egl/display.h',
50         'egl/egl.cc',
51         'egl/surface.cc',
52         'egl/surface.h',
53       ],
54       'defines': [
55         'EGLAPI=',
56         'EGLAPIENTRY=',
57       ],
58       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59       'msvs_disabled_warnings': [ 4267, ],
60     },
61     {
62       'target_name': 'egl_main_native',
63       'type': 'static_library',
64       'dependencies': [
65         'egl_native',
66         '../../third_party/khronos/khronos.gyp:khronos_headers',
67       ],
68       'conditions': [
69         ['toolkit_uses_gtk == 1', {
70           'dependencies': ['../../build/linux/system.gyp:gtk'],
71         }],
72       ],
73       'sources': [
74         '<@(bootstrap_sources_native)',
75       ],
76       'defines': [
77         'GLES2_CONFORM_SUPPORT_ONLY',
78         'GTF_GLES20',
79         'EGLAPI=',
80         'EGLAPIENTRY=',
81       ],
82     },
83     {
84       'target_name': 'egl_main_windowless',
85       'type': 'static_library',
86       'dependencies': [
87         'egl_native',
88         '../../third_party/khronos/khronos.gyp:khronos_headers',
89       ],
90       'conditions': [
91         ['toolkit_uses_gtk == 1', {
92           'dependencies': ['../../build/linux/system.gyp:gtk'],
93         }],
94       ],
95       'sources': [
96         'native/main.cc',
97         'native/egl_native.cc',
98         'native/egl_native_windowless.cc',
99         '<@(bootstrap_sources_native)',
100       ],
101       'defines': [
102         'GLES2_CONFORM_SUPPORT_ONLY',
103         'GTF_GLES20',
104         'EGLAPI=',
105         'EGLAPIENTRY=',
106       ],
107     },
108     {
109       'target_name': 'gles2_conform_support',
110       'type': 'executable',
111       'dependencies': [
112         'egl_native',
113         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
114         '../../gpu/gpu.gyp:gles2_c_lib_nocheck',
115         '../../third_party/expat/expat.gyp:expat',
116       ],
117       'conditions': [
118         ['toolkit_uses_gtk == 1', {
119           'dependencies': ['../../build/linux/system.gyp:gtk'],
120         }],
121         # See http://crbug.com/162998#c4 for why this is needed.
122         ['OS=="linux" and linux_use_tcmalloc==1', {
123           'dependencies': [
124             '../../base/allocator/allocator.gyp:allocator',
125           ],
126         }],
127       ],
128       'defines': [
129         'GLES2_CONFORM_SUPPORT_ONLY',
130         'GTF_GLES20',
131         'EGLAPI=',
132         'EGLAPIENTRY=',
133       ],
134       'sources': [
135         '<@(bootstrap_sources_native)',
136         'gles2_conform_support.c'
137       ],
138     },
139   ],