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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 use_egl = is_win || is_android || is_linux | 9 use_egl = is_win || is_android || is_linux |
10 use_glx = use_x11 | 10 use_glx = use_x11 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 "gl_stub_autogen_gl.cc", | 93 "gl_stub_autogen_gl.cc", |
94 "gl_stub_autogen_gl.h", | 94 "gl_stub_autogen_gl.h", |
95 "gl_surface.cc", | 95 "gl_surface.cc", |
96 "gl_surface.h", | 96 "gl_surface.h", |
97 "gl_surface_osmesa.cc", | 97 "gl_surface_osmesa.cc", |
98 "gl_surface_osmesa.h", | 98 "gl_surface_osmesa.h", |
99 "gl_surface_overlay.cc", | 99 "gl_surface_overlay.cc", |
100 "gl_surface_overlay.h", | 100 "gl_surface_overlay.h", |
101 "gl_surface_stub.cc", | 101 "gl_surface_stub.cc", |
102 "gl_surface_stub.h", | 102 "gl_surface_stub.h", |
103 "gl_switches.cc", | |
104 "gl_switches.h", | |
105 "gl_version_info.cc", | 103 "gl_version_info.cc", |
106 "gl_version_info.h", | 104 "gl_version_info.h", |
107 "gpu_switching_manager.cc", | 105 "gpu_switching_manager.cc", |
108 "gpu_switching_manager.h", | 106 "gpu_switching_manager.h", |
109 "gpu_timing.cc", | 107 "gpu_timing.cc", |
110 "gpu_timing.h", | 108 "gpu_timing.h", |
111 "scoped_api.cc", | 109 "scoped_api.cc", |
112 "scoped_api.h", | 110 "scoped_api.h", |
113 "scoped_binders.cc", | 111 "scoped_binders.cc", |
114 "scoped_binders.h", | 112 "scoped_binders.h", |
(...skipping 11 matching lines...) Expand all Loading... |
126 include_dirs = [ "//third_party/mesa/src/include" ] | 124 include_dirs = [ "//third_party/mesa/src/include" ] |
127 | 125 |
128 all_dependent_configs = [ ":gl_config" ] | 126 all_dependent_configs = [ ":gl_config" ] |
129 | 127 |
130 public_configs = [ "//third_party/khronos:khronos_headers" ] | 128 public_configs = [ "//third_party/khronos:khronos_headers" ] |
131 | 129 |
132 deps = [ | 130 deps = [ |
133 "//base/third_party/dynamic_annotations", | 131 "//base/third_party/dynamic_annotations", |
134 ] | 132 ] |
135 public_deps = [ | 133 public_deps = [ |
| 134 ":switches", |
136 "//base", | 135 "//base", |
137 "//third_party/mesa:mesa_headers", | 136 "//third_party/mesa:mesa_headers", |
138 "//ui/events/platform", | 137 "//ui/events/platform", |
139 "//ui/gfx", | 138 "//ui/gfx", |
140 "//ui/gfx/geometry", | 139 "//ui/gfx/geometry", |
141 ] | 140 ] |
142 | 141 |
143 if (use_egl) { | 142 if (use_egl) { |
144 sources += [ | 143 sources += [ |
145 "egl_util.cc", | 144 "egl_util.cc", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 "GL_GLEXT_PROTOTYPES", | 256 "GL_GLEXT_PROTOTYPES", |
258 "EGL_EGLEXT_PROTOTYPES", | 257 "EGL_EGLEXT_PROTOTYPES", |
259 ] | 258 ] |
260 | 259 |
261 libs = [ "android" ] | 260 libs = [ "android" ] |
262 | 261 |
263 deps += [ ":gl_jni_headers" ] | 262 deps += [ ":gl_jni_headers" ] |
264 } | 263 } |
265 } | 264 } |
266 | 265 |
| 266 source_set("switches") { |
| 267 sources = [ |
| 268 "gl_export.h", |
| 269 "gl_switches.cc", |
| 270 "gl_switches.h", |
| 271 ] |
| 272 |
| 273 defines = [ "GL_IMPLEMENTATION" ] |
| 274 |
| 275 deps = [ |
| 276 "//base", |
| 277 ] |
| 278 } |
| 279 |
267 static_library("gl_unittest_utils") { | 280 static_library("gl_unittest_utils") { |
268 testonly = true | 281 testonly = true |
269 sources = [ | 282 sources = [ |
270 "gl_bindings_autogen_mock.cc", | 283 "gl_bindings_autogen_mock.cc", |
271 "gl_bindings_autogen_mock.h", | 284 "gl_bindings_autogen_mock.h", |
272 "gl_mock.cc", | 285 "gl_mock.cc", |
273 "gl_mock.h", | 286 "gl_mock.h", |
274 "gl_mock_autogen_gl.h", | 287 "gl_mock_autogen_gl.h", |
275 "gpu_timing_fake.cc", | 288 "gpu_timing_fake.cc", |
276 "gpu_timing_fake.h", | 289 "gpu_timing_fake.h", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 sources = [ | 405 sources = [ |
393 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 406 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
394 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 407 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
395 ] | 408 ] |
396 public_deps = [ | 409 public_deps = [ |
397 ":surface_jni_headers", | 410 ":surface_jni_headers", |
398 ] | 411 ] |
399 jni_package = "ui/gl" | 412 jni_package = "ui/gl" |
400 } | 413 } |
401 } | 414 } |
OLD | NEW |