Disable accessible touch exploration by default.
[chromium-blink-merge.git] / ui / compositor / BUILD.gn
blobe943cf04962cce588172b79fc86454b259edba31
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("//build/config/ui.gni")
7 component("compositor") {
8   sources = [
9     "compositor.cc",
10     "compositor.h",
11     "compositor_export.h",
12     "compositor_observer.h",
13     "compositor_vsync_manager.cc",
14     "compositor_vsync_manager.h",
15     "compositor_switches.cc",
16     "compositor_switches.h",
17     "debug_utils.cc",
18     "debug_utils.h",
19     "dip_util.cc",
20     "dip_util.h",
21     "float_animation_curve_adapter.cc",
22     "float_animation_curve_adapter.h",
23     "layer.cc",
24     "layer.h",
25     "layer_animation_delegate.h",
26     "layer_animation_element.cc",
27     "layer_animation_element.h",
28     "layer_animation_observer.cc",
29     "layer_animation_observer.h",
30     "layer_animation_sequence.cc",
31     "layer_animation_sequence.h",
32     "layer_animator.cc",
33     "layer_animator.h",
34     "layer_animator_collection.cc",
35     "layer_animator_collection.h",
36     "layer_delegate.h",
37     "layer_owner.cc",
38     "layer_owner.h",
39     "layer_tree_owner.cc",
40     "layer_tree_owner.h",
41     "layer_type.h",
42     "reflector.h",
43     "scoped_animation_duration_scale_mode.cc",
44     "scoped_animation_duration_scale_mode.h",
45     "scoped_layer_animation_settings.cc",
46     "scoped_layer_animation_settings.h",
47     "transform_animation_curve_adapter.cc",
48     "transform_animation_curve_adapter.h",
49   ]
51   defines = [ "COMPOSITOR_IMPLEMENTATION" ]
53   deps = [
54     "//base",
55     "//base/third_party/dynamic_annotations",
56     "//cc",
57     "//gpu/command_buffer/common",
58     "//skia",
59     "//ui/gfx",
60     "//ui/gfx/geometry",
61     "//ui/gl",
62   ]
64   if (is_win && use_aura) {
65     # TODO(sky): before we make this real need to remove
66     # IDR_BITMAP_BRUSH_IMAGE.
67     deps += [
68       "//ui/resources",
69       "//third_party/angle:libEGL",
70       "//third_party/angle:libGLESv2",
71     ]
72   }
75 source_set("test_support") {
76   sources = [
77     "test/context_factories_for_test.cc",
78     "test/context_factories_for_test.h",
79     "test/draw_waiter_for_test.cc",
80     "test/draw_waiter_for_test.h",
81     "test/in_process_context_factory.cc",
82     "test/in_process_context_factory.h",
83     "test/layer_animator_test_controller.cc",
84     "test/layer_animator_test_controller.h",
85     "test/test_compositor_host.h",
86     "test/test_compositor_host_mac.mm",
87     "test/test_compositor_host_win.cc",
88     "test/test_layer_animation_delegate.cc",
89     "test/test_layer_animation_delegate.h",
90     "test/test_layer_animation_observer.cc",
91     "test/test_layer_animation_observer.h",
92     "test/test_layers.cc",
93     "test/test_layers.h",
94     "test/test_suite.cc",
95     "test/test_suite.h",
96     "test/test_utils.cc",
97     "test/test_utils.h",
98   ]
100   deps = [
101     ":compositor",
102     "//base",
103     "//cc",
104     "//cc:test_support",
105     "//skia",
106     "//testing/gtest",
107     "//third_party/WebKit/public:blink_minimal",
108     "//ui/base",
109     "//ui/gfx",
110     "//ui/gfx/geometry",
111     "//ui/gl",
112     "//webkit/common/gpu",
113   ]
115   if (use_x11) {
116     configs += [ "//build/config/linux:x11" ]
117     deps += [ "//ui/gfx/x" ]
118   }
120   if (use_ozone) {
121     sources += [ "test/test_compositor_host_ozone.cc" ]
122   } else if (use_x11) {
123     sources += [ "test/test_compositor_host_x11.cc" ]
124   }
127 # TODO(GYP) enable this when all dependencies are complete and it links.
128 #test("compositor_unittests") {
129 #  sources = [
130 #    "layer_animation_element_unittest.cc",
131 #    "layer_animation_sequence_unittest.cc",
132 #    "layer_animator_unittest.cc",
133 #    "layer_owner_unittest.cc",
134 #    "layer_unittest.cc",
135 #    "run_all_unittests.cc",
136 #    "transform_animation_curve_adapter_unittest.cc",
137 #  ]
139 #  deps = [
140 #    ":compositor",
141 #    ":test_support",
142 #    "//base",
143 #    "//base/allocator",
144 #    "//base/test:test_support",
145 #    "//cc",
146 #    "//cc:test_support",
147 #    "//skia",
148 #    "//testing/gtest",
149 #    "//ui/base",
150 #    "//ui/gfx",
151 #    "//ui/gfx/geometry",
152 #    "//ui/gl",
153 #    "//ui/resources",
154 #  ]
156 #  if (is_linux) {
157 #    deps += [ "//third_party/mesa:osmesa" ]
158 #  }