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