Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / gpu / command_buffer / common / BUILD.gn
blob6f3ec0c4bd2b4756eb572ea22004fda198817193
1 # Copyright (c) 2013 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 # The files here go into the "gpu" component in a component build (with
6 # "command_buffer_common" just forwarding) and goes into a static library in
7 # non-component build. This needs to match the GYP build which was likely an
8 # attempt to make larger components to help with loading.
9 group("common") {
10   if (is_component_build) {
11     public_deps = [
12       "//gpu",
13     ]
14   } else {
15     public_deps = [
16       ":common_sources",
17     ]
18   }
21 source_set("common_sources") {
22   visibility = [ "//gpu/*" ]
24   sources = [
25     "bitfield_helpers.h",
26     "buffer.cc",
27     "buffer.h",
28     "capabilities.cc",
29     "capabilities.h",
30     "cmd_buffer_common.cc",
31     "cmd_buffer_common.h",
32     "command_buffer.h",
33     "constants.h",
34     "debug_marker_manager.cc",
35     "debug_marker_manager.h",
36     "gles2_cmd_format.cc",
37     "gles2_cmd_format.h",
38     "gles2_cmd_format_autogen.h",
39     "gles2_cmd_ids.h",
40     "gles2_cmd_ids_autogen.h",
41     "id_allocator.cc",
42     "id_allocator.h",
43     "mailbox.cc",
44     "mailbox.h",
45     "mailbox_holder.cc",
46     "mailbox_holder.h",
47     "thread_local.h",
48     "time.h",
49     "value_state.cc",
50     "value_state.h",
51   ]
53   configs += [ "//gpu:gpu_implementation" ]
55   deps = [
56     ":gles2_utils",
57     "//base",
58   ]
61 component("gles2_utils") {
62   sources = [
63     "gles2_cmd_utils.cc",
64     "gles2_cmd_utils.h",
65     "gles2_utils_export.h",
66   ]
68   defines = [ "GLES2_UTILS_IMPLEMENTATION" ]
70   deps = [
71     "//base",
72   ]
74   all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]