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:test_support_impl", | |
91 "//mojo/public/c/gpu:MGL", | |
92 "//mojo/public/c/test_support:test_support", | |
93 "//mojo/public/cpp/environment:standalone", | |
94 "//testing/gtest:gtest", | |
95 ] | |
96 | |
97 sources = [ | |
98 "../edk/test/run_all_unittests.cc", | |
jamesr
2015/09/22 23:38:50
sourcing in ../xxx files is dodgy. if this file is
Petr Hosek
2015/09/23 00:04:31
Turned out there is a target for that file, so thi
| |
99 "mgl_unittest.cc", | |
100 ] | |
101 } | |
OLD | NEW |