Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / mojo / gles2 / BUILD.gn
blobcfb331a27f9de059d616c60792804b2699432511
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 config("mojo_use_gles2") {
6   defines = [ "MOJO_USE_GLES2_IMPL" ]
9 config("gles2_use_mojo") {
10   defines = [ "GLES2_USE_MOJO" ]
13 source_set("headers") {
14   sources = [
15     "command_buffer_client_impl.h",
16     "gles2_context.h",
17   ]
19   public_deps = [
20     "//base",
21     "//components/mus/public/interfaces",
22     "//gpu/command_buffer/client",
23     "//gpu/command_buffer/client:gles2_implementation",
24     "//gpu/command_buffer/common",
25     "//third_party/mojo/src/mojo/public/c/gles2:headers",
26     "//third_party/mojo/src/mojo/public/cpp/bindings",
27   ]
30 source_set("gles2") {
31   sources = [
32     "command_buffer_client_impl.cc",
33     "command_buffer_client_impl.h",
34     "gles2_context.cc",
35     "gles2_context.h",
36     "gles2_impl.cc",
37   ]
39   defines = [
40     "GL_GLEXT_PROTOTYPES",
41     "MOJO_GLES2_IMPLEMENTATION",
42   ]
44   configs += [
45     ":gles2_use_mojo",
46     ":mojo_use_gles2",
47   ]
48   public_configs = [ ":gles2_use_mojo" ]
49   all_dependent_configs = [ ":mojo_use_gles2" ]
51   deps = [
52     "//base",
53     "//base/third_party/dynamic_annotations",
54     "//components/mus/gles2:lib",
55     "//components/mus/public/interfaces",
56     "//gpu/command_buffer/client",
57     "//gpu/command_buffer/client:gles2_cmd_helper",
58     "//gpu/command_buffer/client:gles2_implementation",
59     "//gpu/command_buffer/client:gles2_interface",
60     "//gpu/command_buffer/service:service_sources",
61     "//gpu/command_buffer/common",
62     "//mojo/environment:chromium",
63     "//mojo/platform_handle:defs",
64     "//third_party/mojo/src/mojo/public/c/gles2:headers",
65     "//third_party/mojo/src/mojo/public/c/system",
66     "//third_party/mojo/src/mojo/public/cpp/bindings",
67     "//third_party/mojo/src/mojo/public/cpp/system",
68   ]
70   include_dirs = [ ".." ]