| 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 | 6 |
| 7 config("mojo_use_gles2") { | 7 config("mojo_use_gles2") { |
| 8 defines = [ "MOJO_USE_GLES2_IMPL" ] | 8 defines = [ "MOJO_USE_GLES2_IMPL" ] |
| 9 } | 9 } |
| 10 | 10 |
| 11 config("gles2_use_mojo") { | 11 config("gles2_use_mojo") { |
| 12 defines = [ "GLES2_USE_MOJO" ] | 12 defines = [ "GLES2_USE_MOJO" ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 source_set("gles2") { | 15 source_set("gles2") { |
| 16 sources = [ | 16 sources = [ |
| 17 "command_buffer_client_impl.cc", | 17 "command_buffer_client_impl.cc", |
| 18 "command_buffer_client_impl.h", | 18 "command_buffer_client_impl.h", |
| 19 "gles2_impl.cc", | |
| 20 "gles2_context.cc", | 19 "gles2_context.cc", |
| 21 "gles2_context.h", | 20 "gles2_context.h", |
| 21 "gles2_impl.cc", |
| 22 ] | 22 ] |
| 23 | 23 |
| 24 defines = [ | 24 defines = [ |
| 25 "GL_GLEXT_PROTOTYPES", | 25 "GL_GLEXT_PROTOTYPES", |
| 26 "MOJO_GLES2_IMPLEMENTATION", | 26 "MOJO_GLES2_IMPLEMENTATION", |
| 27 ] | 27 ] |
| 28 | 28 |
| 29 configs += [ | 29 configs += [ |
| 30 ":gles2_use_mojo", | 30 ":gles2_use_mojo", |
| 31 ":mojo_use_gles2", | 31 ":mojo_use_gles2", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 43 "//gpu/command_buffer/common", | 43 "//gpu/command_buffer/common", |
| 44 "//mojo/environment:chromium", | 44 "//mojo/environment:chromium", |
| 45 "//mojo/public/c/gles2:headers", | 45 "//mojo/public/c/gles2:headers", |
| 46 "//mojo/public/c/system", | 46 "//mojo/public/c/system", |
| 47 "//mojo/public/cpp/bindings", | 47 "//mojo/public/cpp/bindings", |
| 48 "//mojo/public/cpp/system", | 48 "//mojo/public/cpp/system", |
| 49 "//mojo/services/gpu/public/interfaces", | 49 "//mojo/services/gpu/public/interfaces", |
| 50 "//services/gles2:lib", | 50 "//services/gles2:lib", |
| 51 ] | 51 ] |
| 52 } | 52 } |
| 53 |
| 54 source_set("mgl") { |
| 55 sources = [ |
| 56 "mgl_impl.cc", |
| 57 ] |
| 58 |
| 59 configs += [ ":gles2_use_mojo" ] |
| 60 |
| 61 deps = [ |
| 62 ":gles2", |
| 63 "//mojo/public/c/gles2:headers", |
| 64 "//mojo/public/c/gpu:MGL", |
| 65 "//mojo/public/c/gpu:MGL_onscreen", |
| 66 "//mojo/public/cpp/system", |
| 67 ] |
| 68 } |
| OLD | NEW |