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("//testing/test.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 config("mojo_use_gles2") { | 8 config("mojo_use_gles2") { |
9 defines = [ "MOJO_USE_GLES2_IMPL" ] | 9 defines = [ "MOJO_USE_GLES2_IMPL" ] |
10 } | 10 } |
11 | 11 |
12 config("gles2_use_mojo") { | 12 config("gles2_use_mojo") { |
13 defines = [ "GLES2_USE_MOJO" ] | 13 defines = [ "GLES2_USE_MOJO" ] |
14 } | 14 } |
15 | 15 |
16 source_set("control_thunks") { | 16 source_set("control_thunks") { |
17 sources = [ | 17 sources = [ |
18 "command_buffer_client_impl.cc", | 18 "command_buffer_client_impl.cc", |
19 "command_buffer_client_impl.h", | 19 "command_buffer_client_impl.h", |
20 "control_thunks_impl.cc", | 20 "control_thunks_impl.cc", |
21 "control_thunks_impl.h", | 21 "control_thunks_impl.h", |
22 "gles2_context.cc", | 22 "gles2_context.cc", |
23 "gles2_context.h", | 23 "gles2_context.h", |
24 ] | 24 ] |
25 | 25 |
26 deps = [ | 26 deps = [ |
27 "//base", | 27 "//base", |
28 "//mojo/public/c/system", | |
29 "//gpu/command_buffer/client", | 28 "//gpu/command_buffer/client", |
30 "//gpu/command_buffer/client:gles2_cmd_helper", | 29 "//gpu/command_buffer/client:gles2_cmd_helper", |
31 "//gpu/command_buffer/client:gles2_cmd_helper_sources", | 30 "//gpu/command_buffer/client:gles2_cmd_helper_sources", |
32 "//gpu/command_buffer/client:gles2_implementation", | 31 "//gpu/command_buffer/client:gles2_implementation", |
33 "//gpu/command_buffer/common", | 32 "//gpu/command_buffer/common", |
34 "//mojo/public/c/gpu:MGL", | 33 "//mojo/public/c/gpu:MGL", |
| 34 "//mojo/public/c/gpu:MGL_echo", |
35 "//mojo/public/c/gpu:MGL_onscreen", | 35 "//mojo/public/c/gpu:MGL_onscreen", |
36 "//mojo/public/c/gpu:MGL_signal_sync_point", | 36 "//mojo/public/c/gpu:MGL_signal_sync_point", |
| 37 "//mojo/public/c/system", |
37 "//mojo/public/cpp/bindings", | 38 "//mojo/public/cpp/bindings", |
38 "//mojo/public/cpp/system", | 39 "//mojo/public/cpp/system", |
| 40 "//mojo/services/gpu/interfaces", |
39 "//services/gles2:lib", | 41 "//services/gles2:lib", |
40 "//mojo/services/gpu/interfaces", | |
41 ] | 42 ] |
42 } | 43 } |
43 | 44 |
44 source_set("gles2") { | 45 source_set("gles2") { |
45 sources = [ | 46 sources = [ |
46 "gles2_impl.cc", | 47 "gles2_impl.cc", |
47 ] | 48 ] |
48 | 49 |
49 defines = [ | 50 defines = [ |
50 "GL_GLEXT_PROTOTYPES", | 51 "GL_GLEXT_PROTOTYPES", |
51 "MOJO_GLES2_IMPLEMENTATION", | 52 "MOJO_GLES2_IMPLEMENTATION", |
52 ] | 53 ] |
53 | 54 |
54 configs += [ | 55 configs += [ |
55 ":gles2_use_mojo", | 56 ":gles2_use_mojo", |
56 ":mojo_use_gles2", | 57 ":mojo_use_gles2", |
57 ] | 58 ] |
58 public_configs = [ ":gles2_use_mojo" ] | 59 public_configs = [ ":gles2_use_mojo" ] |
59 all_dependent_configs = [ ":mojo_use_gles2" ] | 60 all_dependent_configs = [ ":mojo_use_gles2" ] |
60 | 61 |
61 deps = [ | 62 deps = [ |
62 ":control_thunks", | 63 ":control_thunks", |
63 "//gpu/command_buffer/client:gles2_interface", | 64 "//gpu/command_buffer/client:gles2_interface", |
| 65 "//mojo/public/c/gpu:GLES2", |
64 "//mojo/public/c/gpu:MGL", | 66 "//mojo/public/c/gpu:MGL", |
65 "//mojo/public/c/gpu:GLES2", | |
66 ] | 67 ] |
67 } | 68 } |
68 | 69 |
69 source_set("mgl") { | 70 source_set("mgl") { |
70 sources = [ | 71 sources = [ |
71 "mgl_impl.cc", | 72 "mgl_impl.cc", |
72 ] | 73 ] |
73 | 74 |
74 configs += [ ":gles2_use_mojo" ] | 75 configs += [ ":gles2_use_mojo" ] |
75 | 76 |
(...skipping 14 matching lines...) Expand all Loading... |
90 "//mojo/edk/test:run_all_unittests", | 91 "//mojo/edk/test:run_all_unittests", |
91 "//mojo/public/c/gpu:MGL", | 92 "//mojo/public/c/gpu:MGL", |
92 "//mojo/public/cpp/environment:standalone", | 93 "//mojo/public/cpp/environment:standalone", |
93 "//testing/gtest:gtest", | 94 "//testing/gtest:gtest", |
94 ] | 95 ] |
95 | 96 |
96 sources = [ | 97 sources = [ |
97 "mgl_unittest.cc", | 98 "mgl_unittest.cc", |
98 ] | 99 ] |
99 } | 100 } |
OLD | NEW |