| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 config("mojo_use_gles2") { | |
| 6 defines = [ "MOJO_USE_GLES2_IMPL" ] | |
| 7 } | |
| 8 | |
| 9 config("gles2_use_mojo") { | |
| 10 defines = [ "GLES2_USE_MOJO" ] | |
| 11 } | |
| 12 | |
| 13 component("gles2") { | |
| 14 output_name = "mojo_gles2_impl" | |
| 15 sources = [ | |
| 16 "gles2_impl.cc", | |
| 17 ] | |
| 18 | |
| 19 defines = [ | |
| 20 "GL_GLEXT_PROTOTYPES", | |
| 21 "MOJO_GLES2_IMPLEMENTATION", | |
| 22 ] | |
| 23 | |
| 24 configs += [ | |
| 25 ":gles2_use_mojo", | |
| 26 ":mojo_use_gles2", | |
| 27 ] | |
| 28 public_configs = [ | |
| 29 ":gles2_use_mojo", | |
| 30 "//third_party/khronos:khronos_headers", | |
| 31 ] | |
| 32 all_dependent_configs = [ ":mojo_use_gles2" ] | |
| 33 | |
| 34 public_deps = [ | |
| 35 "//mojo/public/c/gles2", | |
| 36 ] | |
| 37 | |
| 38 deps = [ | |
| 39 "//base", | |
| 40 "//base/third_party/dynamic_annotations", | |
| 41 "//components/mus/public/cpp", | |
| 42 "//gpu/command_buffer/client:gles2_interface", | |
| 43 "//mojo/public/c/system:for_component", | |
| 44 ] | |
| 45 | |
| 46 include_dirs = [ ".." ] | |
| 47 } | |
| OLD | NEW |