| 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 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 "gles2_context.h", | 23 "gles2_context.h", |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 deps = [ | 26 deps = [ |
| 27 "//base", | 27 "//base", |
| 28 "//gpu/command_buffer/client", | 28 "//gpu/command_buffer/client", |
| 29 "//gpu/command_buffer/client:gles2_cmd_helper", | 29 "//gpu/command_buffer/client:gles2_cmd_helper", |
| 30 "//gpu/command_buffer/client:gles2_cmd_helper_sources", | 30 "//gpu/command_buffer/client:gles2_cmd_helper_sources", |
| 31 "//gpu/command_buffer/client:gles2_implementation", | 31 "//gpu/command_buffer/client:gles2_implementation", |
| 32 "//gpu/command_buffer/common", | 32 "//gpu/command_buffer/common", |
| 33 "//mojo/public/c:MGL", |
| 34 "//mojo/public/c:MGL_echo", |
| 35 "//mojo/public/c:MGL_onscreen", |
| 36 "//mojo/public/c:MGL_signal_sync_point", |
| 33 "//mojo/public/c:system", | 37 "//mojo/public/c:system", |
| 34 "//mojo/public/c/gpu:MGL", | |
| 35 "//mojo/public/c/gpu:MGL_echo", | |
| 36 "//mojo/public/c/gpu:MGL_onscreen", | |
| 37 "//mojo/public/c/gpu:MGL_signal_sync_point", | |
| 38 "//mojo/public/cpp/bindings", | 38 "//mojo/public/cpp/bindings", |
| 39 "//mojo/public/cpp/system", | 39 "//mojo/public/cpp/system", |
| 40 "//mojo/services/gpu/interfaces", | 40 "//mojo/services/gpu/interfaces", |
| 41 "//services/gles2:lib", | 41 "//services/gles2:lib", |
| 42 ] | 42 ] |
| 43 } | 43 } |
| 44 | 44 |
| 45 source_set("gles2") { | 45 source_set("gles2") { |
| 46 sources = [ | 46 sources = [ |
| 47 "gles2_impl.cc", | 47 "gles2_impl.cc", |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 defines = [ | 50 defines = [ "GL_GLEXT_PROTOTYPES" ] |
| 51 "GL_GLEXT_PROTOTYPES", | |
| 52 "MOJO_GLES2_IMPLEMENTATION", | |
| 53 ] | |
| 54 | 51 |
| 55 configs += [ | 52 configs += [ |
| 56 ":gles2_use_mojo", | 53 ":gles2_use_mojo", |
| 57 ":mojo_use_gles2", | 54 ":mojo_use_gles2", |
| 58 ] | 55 ] |
| 59 public_configs = [ ":gles2_use_mojo" ] | 56 public_configs = [ ":gles2_use_mojo" ] |
| 60 all_dependent_configs = [ ":mojo_use_gles2" ] | 57 all_dependent_configs = [ ":mojo_use_gles2" ] |
| 61 | 58 |
| 62 deps = [ | 59 deps = [ |
| 63 ":control_thunks", | 60 ":control_thunks", |
| 64 "//gpu/command_buffer/client:gles2_interface", | 61 "//gpu/command_buffer/client:gles2_interface", |
| 65 "//mojo/public/c/gpu:GLES2", | 62 "//mojo/public/c:GLES2", |
| 66 "//mojo/public/c/gpu:MGL", | 63 "//mojo/public/c:MGL", |
| 67 ] | 64 ] |
| 68 } | 65 } |
| 69 | 66 |
| 70 source_set("mgl") { | 67 source_set("mgl") { |
| 71 sources = [ | 68 sources = [ |
| 72 "mgl_impl.cc", | 69 "mgl_impl.cc", |
| 73 ] | 70 ] |
| 74 | 71 |
| 75 configs += [ ":gles2_use_mojo" ] | 72 configs += [ ":gles2_use_mojo" ] |
| 76 | 73 |
| 77 deps = [ | 74 deps = [ |
| 78 ":control_thunks", | 75 ":control_thunks", |
| 79 ":gles2", | 76 ":gles2", |
| 80 "//mojo/public/c/gpu:MGL", | 77 "//mojo/public/c:MGL", |
| 81 "//mojo/public/c/gpu:MGL_onscreen", | 78 "//mojo/public/c:MGL_onscreen", |
| 82 "//mojo/public/cpp/system", | 79 "//mojo/public/cpp/system", |
| 83 ] | 80 ] |
| 84 } | 81 } |
| 85 | 82 |
| 86 test("mgl_unittests") { | 83 test("mgl_unittests") { |
| 87 deps = [ | 84 deps = [ |
| 88 ":mgl", | 85 ":mgl", |
| 89 "//mojo/edk/base_edk", | 86 "//mojo/edk/base_edk", |
| 90 "//mojo/edk/system", | 87 "//mojo/edk/system", |
| 91 "//mojo/edk/test:run_all_unittests", | 88 "//mojo/edk/test:run_all_unittests", |
| 92 "//mojo/public/c/gpu:MGL", | 89 "//mojo/public/c:MGL", |
| 93 "//mojo/public/cpp/environment:standalone", | 90 "//mojo/public/cpp/environment:standalone", |
| 94 "//testing/gtest:gtest", | 91 "//testing/gtest:gtest", |
| 95 ] | 92 ] |
| 96 | 93 |
| 97 sources = [ | 94 sources = [ |
| 98 "mgl_unittest.cc", | 95 "mgl_unittest.cc", |
| 99 ] | 96 ] |
| 100 } | 97 } |
| OLD | NEW |