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("//testing/test.gni") |
5 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 7 |
7 config("mojo_use_gles2") { | 8 config("mojo_use_gles2") { |
8 defines = [ "MOJO_USE_GLES2_IMPL" ] | 9 defines = [ "MOJO_USE_GLES2_IMPL" ] |
9 } | 10 } |
10 | 11 |
11 config("gles2_use_mojo") { | 12 config("gles2_use_mojo") { |
12 defines = [ "GLES2_USE_MOJO" ] | 13 defines = [ "GLES2_USE_MOJO" ] |
13 } | 14 } |
14 | 15 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 configs += [ ":gles2_use_mojo" ] | 73 configs += [ ":gles2_use_mojo" ] |
73 | 74 |
74 deps = [ | 75 deps = [ |
75 ":control_thunks", | 76 ":control_thunks", |
76 ":gles2", | 77 ":gles2", |
77 "//mojo/public/c/gpu:MGL", | 78 "//mojo/public/c/gpu:MGL", |
78 "//mojo/public/c/gpu:MGL_onscreen", | 79 "//mojo/public/c/gpu:MGL_onscreen", |
79 "//mojo/public/cpp/system", | 80 "//mojo/public/cpp/system", |
80 ] | 81 ] |
81 } | 82 } |
| 83 |
| 84 test("mgl_unittests") { |
| 85 deps = [ |
| 86 ":mgl", |
| 87 "//base", |
| 88 "//base/test:test_support", |
| 89 "//mojo/edk/system", |
| 90 "//mojo/edk/test:run_all_unittests", |
| 91 "//mojo/edk/test:test_support_impl", |
| 92 "//mojo/public/c/gpu:MGL", |
| 93 "//mojo/public/c/test_support:test_support", |
| 94 "//mojo/public/cpp/environment:standalone", |
| 95 "//testing/gtest:gtest", |
| 96 ] |
| 97 |
| 98 sources = [ |
| 99 "mgl_unittest.cc", |
| 100 ] |
| 101 } |
OLD | NEW |