OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 if (is_android) { | 6 if (is_android) { |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 "gl_osmesa_api_implementation.cc", | 74 "gl_osmesa_api_implementation.cc", |
75 "gl_osmesa_api_implementation.h", | 75 "gl_osmesa_api_implementation.h", |
76 "gl_share_group.cc", | 76 "gl_share_group.cc", |
77 "gl_share_group.h", | 77 "gl_share_group.h", |
78 "gl_state_restorer.cc", | 78 "gl_state_restorer.cc", |
79 "gl_state_restorer.h", | 79 "gl_state_restorer.h", |
80 "gl_surface.cc", | 80 "gl_surface.cc", |
81 "gl_surface.h", | 81 "gl_surface.h", |
82 "gl_surface_android.cc", | 82 "gl_surface_android.cc", |
83 "gl_surface_mac.cc", | 83 "gl_surface_mac.cc", |
| 84 "gl_surface_osmesa.cc", |
| 85 "gl_surface_osmesa.h", |
84 "gl_surface_stub.cc", | 86 "gl_surface_stub.cc", |
85 "gl_surface_stub.h", | 87 "gl_surface_stub.h", |
86 "gl_surface_win.cc", | 88 "gl_surface_win.cc", |
87 "gl_surface_osmesa.cc", | |
88 "gl_surface_osmesa.h", | |
89 "gl_switches.cc", | 89 "gl_switches.cc", |
90 "gl_switches.h", | 90 "gl_switches.h", |
91 "gl_version_info.cc", | 91 "gl_version_info.cc", |
92 "gl_version_info.h", | 92 "gl_version_info.h", |
93 "gpu_switching_manager.cc", | 93 "gpu_switching_manager.cc", |
94 "gpu_switching_manager.h", | 94 "gpu_switching_manager.h", |
95 "scoped_binders.cc", | 95 "scoped_binders.cc", |
96 "scoped_binders.h", | 96 "scoped_binders.h", |
97 "scoped_make_current.cc", | 97 "scoped_make_current.cc", |
98 "scoped_make_current.h", | 98 "scoped_make_current.h", |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 "gl_image_linux_dma_buffer.h", | 152 "gl_image_linux_dma_buffer.h", |
153 ] | 153 ] |
154 } | 154 } |
155 if (use_x11) { | 155 if (use_x11) { |
156 sources += [ | 156 sources += [ |
157 "gl_bindings_autogen_glx.cc", | 157 "gl_bindings_autogen_glx.cc", |
158 "gl_bindings_autogen_glx.h", | 158 "gl_bindings_autogen_glx.h", |
159 "gl_context_glx.cc", | 159 "gl_context_glx.cc", |
160 "gl_context_glx.h", | 160 "gl_context_glx.h", |
161 "gl_context_x11.cc", | 161 "gl_context_x11.cc", |
| 162 "gl_egl_api_implementation.cc", |
| 163 "gl_egl_api_implementation.h", |
162 "gl_glx_api_implementation.cc", | 164 "gl_glx_api_implementation.cc", |
163 "gl_glx_api_implementation.h", | 165 "gl_glx_api_implementation.h", |
164 "gl_image_glx.cc", | 166 "gl_image_glx.cc", |
165 "gl_image_glx.h", | 167 "gl_image_glx.h", |
166 "gl_implementation_x11.cc", | 168 "gl_implementation_x11.cc", |
167 "gl_surface_glx.cc", | 169 "gl_surface_glx.cc", |
168 "gl_surface_glx.h", | 170 "gl_surface_glx.h", |
169 "gl_surface_x11.cc", | 171 "gl_surface_x11.cc", |
170 "gl_egl_api_implementation.cc", | |
171 "gl_egl_api_implementation.h", | |
172 ] | 172 ] |
173 | 173 |
174 configs += [ | 174 configs += [ |
175 "//build/config/linux:x11", | 175 "//build/config/linux:x11", |
176 "//build/config/linux:xcomposite", | 176 "//build/config/linux:xcomposite", |
177 "//build/config/linux:xext", | 177 "//build/config/linux:xext", |
178 ] | 178 ] |
179 | 179 |
180 deps += [ "//ui/gfx/x" ] | 180 deps += [ "//ui/gfx/x" ] |
181 } | 181 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 if (is_android && !is_android_webview_build) { | 247 if (is_android && !is_android_webview_build) { |
248 deps += [ "//ui/android:ui_java" ] | 248 deps += [ "//ui/android:ui_java" ] |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 source_set("gl_unittest_utils") { | 252 source_set("gl_unittest_utils") { |
253 testonly = true | 253 testonly = true |
254 sources = [ | 254 sources = [ |
255 "gl_bindings_autogen_mock.cc", | 255 "gl_bindings_autogen_mock.cc", |
256 "gl_bindings_autogen_mock.h", | 256 "gl_bindings_autogen_mock.h", |
| 257 "gl_mock.cc", |
| 258 "gl_mock.h", |
257 "gl_mock_autogen_gl.h", | 259 "gl_mock_autogen_gl.h", |
258 "gl_mock.h", | |
259 "gl_mock.cc", | |
260 ] | 260 ] |
261 | 261 |
262 configs += [ "//third_party/khronos:khronos_headers" ] | 262 configs += [ "//third_party/khronos:khronos_headers" ] |
263 | 263 |
264 deps = [ | 264 deps = [ |
265 ":gl", | 265 ":gl", |
266 "//testing/gmock", | 266 "//testing/gmock", |
267 ] | 267 ] |
268 } | 268 } |
269 | 269 |
270 if (is_android) { | 270 if (is_android) { |
271 generate_jar_jni("surface_jni_headers") { | 271 generate_jar_jni("surface_jni_headers") { |
272 jni_package = "ui/gl" | 272 jni_package = "ui/gl" |
273 classes = [ "android/view/Surface.class" ] | 273 classes = [ "android/view/Surface.class" ] |
274 } | 274 } |
275 | 275 |
276 generate_jni("gl_jni_headers") { | 276 generate_jni("gl_jni_headers") { |
277 deps = [ | 277 deps = [ |
278 ":surface_jni_headers", | 278 ":surface_jni_headers", |
279 ] | 279 ] |
280 sources = [ | 280 sources = [ |
281 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 281 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
282 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 282 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
283 ] | 283 ] |
284 jni_package = "ui/gl" | 284 jni_package = "ui/gl" |
285 } | 285 } |
286 } | 286 } |
OLD | NEW |