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.
13 'type': '<(component)',
14 'product_name': 'gl_wrapper', # Avoid colliding with OS X's libGL.dylib
16 '<(DEPTH)/base/base.gyp:base',
17 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18 '<(DEPTH)/gpu/command_buffer/command_buffer.gyp:gles2_utils',
19 '<(DEPTH)/skia/skia.gyp:skia',
20 '<(DEPTH)/third_party/mesa/mesa.gyp:mesa_headers',
21 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
22 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
28 '<(DEPTH)/third_party/swiftshader/include',
29 '<(DEPTH)/third_party/khronos',
31 'export_dependent_settings': [
32 '<(DEPTH)/third_party/mesa/mesa.gyp:mesa_headers',
35 'android/gl_jni_registrar.cc',
36 'android/gl_jni_registrar.h',
37 'android/scoped_java_surface.cc',
38 'android/scoped_java_surface.h',
39 'android/surface_texture.cc',
40 'android/surface_texture.h',
41 'android/surface_texture_listener.cc',
42 'android/surface_texture_listener.h',
45 'gl_bindings_autogen_gl.cc',
46 'gl_bindings_autogen_gl.h',
47 'gl_bindings_autogen_osmesa.cc',
48 'gl_bindings_autogen_osmesa.h',
49 'gl_bindings_skia_in_process.cc',
50 'gl_bindings_skia_in_process.h',
53 'gl_context_android.cc',
55 'gl_context_osmesa.cc',
56 'gl_context_osmesa.h',
57 'gl_context_ozone.cc',
60 'gl_context_stub_with_extensions.cc',
61 'gl_context_stub_with_extensions.h',
66 'gl_enums_implementation_autogen.h',
74 'gl_gl_api_implementation.cc',
75 'gl_gl_api_implementation.h',
79 'gl_image_ref_counted_memory.cc',
80 'gl_image_ref_counted_memory.h',
81 'gl_image_shared_memory.cc',
82 'gl_image_shared_memory.h',
85 'gl_implementation.cc',
86 'gl_implementation.h',
87 'gl_implementation_android.cc',
88 'gl_implementation_mac.cc',
89 'gl_implementation_ozone.cc',
90 'gl_implementation_win.cc',
91 'gl_implementation_x11.cc',
92 'gl_osmesa_api_implementation.cc',
93 'gl_osmesa_api_implementation.h',
96 'gl_state_restorer.cc',
97 'gl_state_restorer.h',
100 'gl_surface_android.cc',
102 'gl_surface_osmesa.cc',
103 'gl_surface_osmesa.h',
104 'gl_surface_ozone.cc',
105 'gl_surface_stub.cc',
111 'gl_version_info.cc',
113 'gpu_switching_manager.cc',
114 'gpu_switching_manager.h',
115 'gpu_switching_observer.h',
120 'scoped_make_current.cc',
121 'scoped_make_current.h',
122 'sync_control_vsync_provider.cc',
123 'sync_control_vsync_provider.h',
128 ['OS in ("win", "android", "linux")', {
132 'gl_bindings_autogen_egl.cc',
133 'gl_bindings_autogen_egl.h',
136 'gl_egl_api_implementation.cc',
137 'gl_egl_api_implementation.h',
146 '<(DEPTH)/third_party/khronos',
149 ['OS in ("android", "linux")', {
151 'gl_implementation_osmesa.cc',
152 'gl_implementation_osmesa.h',
157 'gl_bindings_autogen_glx.cc',
158 'gl_bindings_autogen_glx.h',
161 'gl_egl_api_implementation.cc',
162 'gl_egl_api_implementation.h',
163 'gl_glx_api_implementation.cc',
164 'gl_glx_api_implementation.h',
170 'all_dependent_settings': {
172 'GL_GLEXT_PROTOTYPES',
176 '<(DEPTH)/build/linux/system.gyp:x11',
177 '<(DEPTH)/build/linux/system.gyp:xcomposite',
178 '<(DEPTH)/build/linux/system.gyp:xext',
179 '<(DEPTH)/ui/events/platform/events_platform.gyp:events_platform',
180 '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11',
185 'angle_platform_impl.cc',
186 'angle_platform_impl.h',
187 'gl_bindings_autogen_wgl.cc',
188 'gl_bindings_autogen_wgl.h',
191 'gl_egl_api_implementation.cc',
192 'gl_egl_api_implementation.h',
195 'gl_wgl_api_implementation.cc',
196 'gl_wgl_api_implementation.h',
203 'AdditionalDependencies': [
214 '<(DEPTH)/third_party/angle/src/angle.gyp:libEGL',
215 '<(DEPTH)/third_party/angle/src/angle.gyp:libGLESv2',
224 'gl_image_io_surface.mm',
225 'gl_image_io_surface.h',
231 '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
232 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
233 '$(SDKROOT)/System/Library/Frameworks/Quartz.framework',
240 '../android/ui_android.gyp:ui_java',
243 'gl_image_surface_texture.cc',
244 'gl_image_surface_texture.h',
252 'system_monitor_posix.cc',
255 'GL_GLEXT_PROTOTYPES',
256 'EGL_EGLEXT_PROTOTYPES',
260 'sources/': [ ['exclude', '^android/'] ],
264 'gl_image_ozone_native_pixmap.cc',
265 'gl_image_ozone_native_pixmap.h',
268 '../ozone/ozone.gyp:ozone',
269 '../ozone/ozone.gyp:ozone_base',
275 'target_name': 'gl_unittest_utils',
276 'type': 'static_library',
278 '../../testing/gmock.gyp:gmock',
279 '../../third_party/khronos/khronos.gyp:khronos_headers',
286 'gl_bindings_autogen_mock.cc',
287 'gl_bindings_autogen_mock.h',
290 'gl_mock_autogen_gl.h',
291 'gpu_timing_fake.cc',
296 'target_name': 'gl_test_support',
297 'type': 'static_library',
299 '../../third_party/khronos/khronos.gyp:khronos_headers',
306 'test/gl_surface_test_support.cc',
307 'test/gl_surface_test_support.h',
312 '../../build/linux/system.gyp:x11',
313 '../gfx/x/gfx_x11.gyp:gfx_x11',
314 '../platform_window/x11/x11_window.gyp:x11_window',
324 'target_name': 'surface_jni_headers',
327 'jni_gen_package': 'ui/gl',
328 'input_java_class': 'android/view/Surface.class',
330 'includes': [ '../../build/jar_file_jni_generator.gypi' ],
333 'target_name': 'gl_jni_headers',
336 'surface_jni_headers',
339 '../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java',
340 '../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java',
343 'jni_gen_package': 'ui/gl',
345 'includes': [ '../../build/jni_generator.gypi' ],