Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the...
[chromium-blink-merge.git] / components / view_manager / gles2 / BUILD.gn
blob29bd071aa5a88d21fd04f707bd3dbcb1a1d3d904
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 source_set("gles2") {
8   visibility = [
9     "//components/view_manager/native_viewport:*",
10     "//mojo/runner:lib",  # For android
11   ]
13   sources = [
14     "command_buffer_driver.cc",
15     "command_buffer_driver.h",
16     "command_buffer_impl.cc",
17     "command_buffer_impl.h",
18     "command_buffer_impl_observer.h",
19     "gpu_impl.cc",
20     "gpu_impl.h",
21     "gpu_state.cc",
22     "gpu_state.h",
23   ]
25   public_deps = [
26     ":lib",
27   ]
28   deps = [
29     "//base",
30     "//components/view_manager/public/interfaces",
31     "//gpu/command_buffer/service",
32     "//mojo/converters/geometry",
33     "//third_party/mojo/src/mojo/public/cpp/bindings",
34     "//ui/mojo/geometry:interfaces",
35     "//ui/gfx",
36     "//ui/gfx/geometry",
37     "//ui/gl",
38   ]
40   include_dirs = [ "../.." ]
43 source_set("lib") {
44   sources = [
45     "command_buffer_type_conversions.cc",
46     "command_buffer_type_conversions.h",
47     "mojo_buffer_backing.cc",
48     "mojo_buffer_backing.h",
49   ]
51   deps = [
52     "//base",
53     "//components/view_manager/public/interfaces",
54     "//gpu/command_buffer/common",
55     "//third_party/mojo/src/mojo/public/cpp/bindings",
56     "//third_party/mojo/src/mojo/public/cpp/system",
57   ]
59   include_dirs = [ "../.." ]