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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//mojo/system.gni") |
6 | 7 |
| 8 config("mojo_use_gles2") { |
| 9 defines = [ "MOJO_USE_GLES2_IMPL" ] |
| 10 } |
| 11 |
| 12 config("gles2_use_mojo") { |
| 13 defines = [ "USE_MOJO_GLES2" ] |
| 14 } |
| 15 |
| 16 # GYP version: mojo/mojo_base.gyp:mojo_gles2_impl |
7 component("gles2") { | 17 component("gles2") { |
8 output_name = "mojo_gles2_impl" | 18 output_name = "mojo_gles2_impl" |
9 | 19 |
10 deps = [ | 20 deps = [ |
11 "//base", | 21 "//base", |
12 "//base/third_party/dynamic_annotations", | 22 "//base/third_party/dynamic_annotations", |
13 "//gpu/command_buffer/client", | 23 "//gpu/command_buffer/client", |
14 "//gpu/command_buffer/common", | 24 "//gpu/command_buffer/common", |
15 "//gpu/command_buffer/client:gles2_implementation", | 25 "//gpu/command_buffer/client:gles2_implementation", |
16 "//mojo/public/gles2", | 26 "//mojo/public/gles2", |
17 "//mojo/services/gles2:bindings", | 27 "//mojo/services/gles2:bindings", |
18 "//mojo/services/gles2:interfaces", | 28 "//mojo/services/gles2:interfaces", |
19 "//mojo/environment:chromium", | 29 "//mojo/environment:chromium", |
20 ] | 30 ] |
| 31 deps += mojo_system_for_component |
21 | 32 |
22 if (is_component_build) { | 33 defines = [ |
23 deps += [ "//mojo/system" ] | 34 "MOJO_GLES2_IMPL_IMPLEMENTATION", |
24 } | 35 "MOJO_GLES2_IMPLEMENTATION", |
| 36 ] |
25 | 37 |
26 defines = [ "MOJO_GLES2_IMPL_IMPLEMENTATION" ] | 38 configs += [ |
| 39 ":gles2_use_mojo", |
| 40 ":mojo_use_gles2", |
| 41 ] |
| 42 direct_dependent_configs = [ ":gles2_use_mojo" ] |
| 43 all_dependent_configs = [ ":mojo_use_gles2" ] |
27 | 44 |
28 sources = [ | 45 sources = [ |
29 "command_buffer_client_impl.cc", | 46 "command_buffer_client_impl.cc", |
30 "command_buffer_client_impl.h", | 47 "command_buffer_client_impl.h", |
31 "gles2_impl_export.h", | 48 "gles2_impl_export.h", |
32 "gles2_impl.cc", | 49 "gles2_impl.cc", |
33 "gles2_context.cc", | 50 "gles2_context.cc", |
34 "gles2_context.h", | 51 "gles2_context.h", |
35 ] | 52 ] |
36 } | 53 } |
OLD | NEW |