ServiceWorker: Add tests for ServiceWorkerContextObserver
[chromium-blink-merge.git] / gpu / gles2_conform_support / gles2_conform_support.gyp
blob928b152801023efb37799371d9f5740cf1408298
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_x11.cc',
20        ],
21      }],
22      ['OS=="win"', {
23        'bootstrap_sources_native': [
24          'native/egl_native.cc',
25          'native/egl_native_win.cc',
26        ],
27      }],
28    ],
30   },
31   'targets': [
32     {
33       'target_name': 'egl_native',
34       'type': 'static_library',
35       'dependencies': [
36         '../../base/base.gyp:base',
37         '../../gpu/gpu.gyp:command_buffer_service',
38         '../../gpu/gpu.gyp:gles2_implementation_no_check',
39         '../../gpu/gpu.gyp:gpu',
40         '../../third_party/khronos/khronos.gyp:khronos_headers',
41         '../../ui/base/ui_base.gyp:ui_base',
42         '../../ui/gfx/gfx.gyp:gfx',
43         '../../ui/gfx/gfx.gyp:gfx_geometry',
44         '../../ui/gl/gl.gyp:gl',
45       ],
46       'sources': [
47         'egl/config.cc',
48         'egl/config.h',
49         'egl/display.cc',
50         'egl/display.h',
51         'egl/egl.cc',
52         'egl/surface.cc',
53         'egl/surface.h',
54       ],
55       'defines': [
56         'EGLAPI=',
57         'EGLAPIENTRY=',
58       ],
59       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
60       'msvs_disabled_warnings': [ 4267, ],
61     },
62     {
63       'target_name': 'egl_main_native',
64       'type': 'static_library',
65       'dependencies': [
66         'egl_native',
67         '../../third_party/khronos/khronos.gyp:khronos_headers',
68       ],
69       'sources': [
70         '<@(bootstrap_sources_native)',
71       ],
72       'defines': [
73         'GLES2_CONFORM_SUPPORT_ONLY',
74         'GTF_GLES20',
75         'EGLAPI=',
76         'EGLAPIENTRY=',
77       ],
78     },
79     {
80       'target_name': 'egl_main_windowless',
81       'type': 'static_library',
82       'dependencies': [
83         'egl_native',
84         '../../third_party/khronos/khronos.gyp:khronos_headers',
85       ],
86       'sources': [
87         'native/main.cc',
88         'native/egl_native.cc',
89         'native/egl_native_windowless.cc',
90         '<@(bootstrap_sources_native)',
91       ],
92       'defines': [
93         'GLES2_CONFORM_SUPPORT_ONLY',
94         'GTF_GLES20',
95         'EGLAPI=',
96         'EGLAPIENTRY=',
97       ],
98     },
99     {
100       'target_name': 'gles2_conform_support',
101       'type': 'executable',
102       'dependencies': [
103         'egl_native',
104         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
105         '../../gpu/gpu.gyp:gles2_c_lib_nocheck',
106         '../../third_party/expat/expat.gyp:expat',
107       ],
108       'conditions': [
109         # See http://crbug.com/162998#c4 for why this is needed.
110         ['OS=="linux" and use_allocator!="none"', {
111           'dependencies': [
112             '../../base/allocator/allocator.gyp:allocator',
113           ],
114         }],
115       ],
116       'defines': [
117         'GLES2_CONFORM_SUPPORT_ONLY',
118         'GTF_GLES20',
119         'EGLAPI=',
120         'EGLAPIENTRY=',
121       ],
122       'sources': [
123         '<@(bootstrap_sources_native)',
124         'gles2_conform_support.c'
125       ],
126     },
127   ],