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/rules.gni") | 7 import("//build/config/android/rules.gni") |
8 } | 8 } |
9 | 9 |
10 gl_binding_output_dir = target_gen_dir | 10 gl_binding_output_dir = target_gen_dir |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ] | 294 ] |
295 | 295 |
296 args = [ | 296 args = [ |
297 "--header-paths=" + | 297 "--header-paths=" + |
298 rebase_path("//third_party/khronos", root_build_dir) + ":" + | 298 rebase_path("//third_party/khronos", root_build_dir) + ":" + |
299 rebase_path("//third_party/mesa/src/include", root_build_dir), | 299 rebase_path("//third_party/mesa/src/include", root_build_dir), |
300 rebase_path(gl_binding_output_dir, root_build_dir), | 300 rebase_path(gl_binding_output_dir, root_build_dir), |
301 ] | 301 ] |
302 } | 302 } |
303 | 303 |
| 304 config("gl_unittest_utils_config") { |
| 305 include_dirs = [ gl_binding_output_dir ] |
| 306 } |
| 307 |
| 308 source_set("gl_unittest_utils") { |
| 309 sources = [ |
| 310 "gl_mock.h", |
| 311 "gl_mock.cc", |
| 312 "$gl_binding_output_dir/gl_bindings_autogen_mock.cc", |
| 313 "$gl_binding_output_dir/gl_bindings_autogen_mock.h", |
| 314 "$gl_binding_output_dir/gl_mock_autogen_gl.h", |
| 315 ] |
| 316 |
| 317 configs += [ "//third_party/khronos:khronos_headers" ] |
| 318 direct_dependent_configs = [ ":gl_unittest_utils_config" ] |
| 319 |
| 320 deps = [ |
| 321 ":gl", |
| 322 "//testing/gmock", |
| 323 ] |
| 324 } |
| 325 |
304 if (is_android) { | 326 if (is_android) { |
305 generate_jni("gl_jni_headers") { | 327 generate_jni("gl_jni_headers") { |
306 sources = [ | 328 sources = [ |
307 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 329 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
308 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 330 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
309 ] | 331 ] |
310 jni_package = "ui/gl" | 332 jni_package = "ui/gl" |
311 } | 333 } |
312 } | 334 } |
OLD | NEW |