Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / mojo / gles2 / BUILD.gn
blob62d4d9eac9fd7de6c86127ca8a72ca9d5eff8689
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.
5 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
7 config("mojo_use_gles2") {
8   defines = [ "MOJO_USE_GLES2_IMPL" ]
11 config("gles2_use_mojo") {
12   defines = [ "GLES2_USE_MOJO" ]
15 source_set("gles2") {
16   sources = [
17     "command_buffer_client_impl.cc",
18     "command_buffer_client_impl.h",
19     "gles2_context.cc",
20     "gles2_context.h",
21     "gles2_impl.cc",
22   ]
24   defines = [
25     "GL_GLEXT_PROTOTYPES",
26     "MOJO_GLES2_IMPLEMENTATION",
27   ]
29   configs += [
30     ":gles2_use_mojo",
31     ":mojo_use_gles2",
32   ]
33   public_configs = [ ":gles2_use_mojo" ]
34   all_dependent_configs = [ ":mojo_use_gles2" ]
36   deps = [
37     "//base",
38     "//base/third_party/dynamic_annotations",
39     "//components/gles2:lib",
40     "//components/gpu/public/interfaces",
41     "//gpu/command_buffer/client",
42     "//gpu/command_buffer/client:gles2_cmd_helper",
43     "//gpu/command_buffer/client:gles2_implementation",
44     "//gpu/command_buffer/client:gles2_interface",
45     "//gpu/command_buffer/common",
46     "//mojo/environment:chromium",
47     "//third_party/mojo/src/mojo/public/c/gles2:headers",
48     "//third_party/mojo/src/mojo/public/c/system",
49     "//third_party/mojo/src/mojo/public/cpp/bindings",
50     "//third_party/mojo/src/mojo/public/cpp/system",
51   ]
53   include_dirs = [ ".." ]