OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 component("compositor") { | 7 component("compositor") { |
8 sources = [ | 8 sources = [ |
9 "closure_animation_observer.cc", | 9 "closure_animation_observer.cc", |
10 "closure_animation_observer.h", | 10 "closure_animation_observer.h", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 # IDR_BITMAP_BRUSH_IMAGE. | 71 # IDR_BITMAP_BRUSH_IMAGE. |
72 deps += [ | 72 deps += [ |
73 "//ui/resources", | 73 "//ui/resources", |
74 "//third_party/angle:libEGL", | 74 "//third_party/angle:libEGL", |
75 "//third_party/angle:libGLESv2", | 75 "//third_party/angle:libGLESv2", |
76 ] | 76 ] |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 if (false) { | 80 if (false) { |
| 81 source_set("test_support") { |
| 82 testonly = true |
| 83 sources = [ |
| 84 "test/context_factories_for_test.cc", |
| 85 "test/context_factories_for_test.h", |
| 86 "test/draw_waiter_for_test.cc", |
| 87 "test/draw_waiter_for_test.h", |
| 88 "test/in_process_context_factory.cc", |
| 89 "test/in_process_context_factory.h", |
| 90 "test/layer_animator_test_controller.cc", |
| 91 "test/layer_animator_test_controller.h", |
| 92 "test/test_compositor_host.h", |
| 93 "test/test_compositor_host_mac.mm", |
| 94 "test/test_compositor_host_win.cc", |
| 95 "test/test_layer_animation_delegate.cc", |
| 96 "test/test_layer_animation_delegate.h", |
| 97 "test/test_layer_animation_observer.cc", |
| 98 "test/test_layer_animation_observer.h", |
| 99 "test/test_layers.cc", |
| 100 "test/test_layers.h", |
| 101 "test/test_suite.cc", |
| 102 "test/test_suite.h", |
| 103 "test/test_utils.cc", |
| 104 "test/test_utils.h", |
| 105 ] |
81 | 106 |
82 source_set("test_support") { | 107 public_deps = [ |
83 testonly = true | 108 ":compositor", |
84 sources = [ | 109 ] |
85 "test/context_factories_for_test.cc", | 110 deps = [ |
86 "test/context_factories_for_test.h", | 111 "//base/test:test_support", |
87 "test/draw_waiter_for_test.cc", | 112 "//cc", |
88 "test/draw_waiter_for_test.h", | 113 "//cc/surfaces", |
89 "test/in_process_context_factory.cc", | 114 "//cc:test_support", |
90 "test/in_process_context_factory.h", | 115 "//skia", |
91 "test/layer_animator_test_controller.cc", | 116 "//testing/gtest", |
92 "test/layer_animator_test_controller.h", | 117 "//third_party/WebKit/public:blink_minimal", |
93 "test/test_compositor_host.h", | 118 "//ui/base", |
94 "test/test_compositor_host_mac.mm", | 119 "//ui/gfx", |
95 "test/test_compositor_host_win.cc", | 120 "//ui/gfx/geometry", |
96 "test/test_layer_animation_delegate.cc", | 121 "//ui/gl", |
97 "test/test_layer_animation_delegate.h", | 122 "//webkit/common/gpu", |
98 "test/test_layer_animation_observer.cc", | 123 ] |
99 "test/test_layer_animation_observer.h", | |
100 "test/test_layers.cc", | |
101 "test/test_layers.h", | |
102 "test/test_suite.cc", | |
103 "test/test_suite.h", | |
104 "test/test_utils.cc", | |
105 "test/test_utils.h", | |
106 ] | |
107 | 124 |
108 public_deps = [ | 125 if (use_x11) { |
109 ":compositor", | 126 configs += [ "//build/config/linux:x11" ] |
110 ] | 127 deps += [ "//ui/gfx/x" ] |
111 deps = [ | 128 } |
112 "//base/test:test_support", | |
113 "//cc", | |
114 "//cc/surfaces", | |
115 "//cc:test_support", | |
116 "//skia", | |
117 "//testing/gtest", | |
118 "//third_party/WebKit/public:blink_minimal", | |
119 "//ui/base", | |
120 "//ui/gfx", | |
121 "//ui/gfx/geometry", | |
122 "//ui/gl", | |
123 "//webkit/common/gpu", | |
124 ] | |
125 | 129 |
126 if (use_x11) { | 130 if (use_ozone) { |
127 configs += [ "//build/config/linux:x11" ] | 131 sources += [ "test/test_compositor_host_ozone.cc" ] |
128 deps += [ "//ui/gfx/x" ] | 132 } else if (use_x11) { |
| 133 sources += [ "test/test_compositor_host_x11.cc" ] |
| 134 } |
129 } | 135 } |
130 | |
131 if (use_ozone) { | |
132 sources += [ "test/test_compositor_host_ozone.cc" ] | |
133 } else if (use_x11) { | |
134 sources += [ "test/test_compositor_host_x11.cc" ] | |
135 } | |
136 } | |
137 | |
138 } # if (false) | 136 } # if (false) |
139 | |
140 # TODO(GYP) enable this when all dependencies are complete and it links. | 137 # TODO(GYP) enable this when all dependencies are complete and it links. |
141 #test("compositor_unittests") { | 138 #test("compositor_unittests") { |
142 # sources = [ | 139 # sources = [ |
143 # "layer_animation_element_unittest.cc", | 140 # "layer_animation_element_unittest.cc", |
144 # "layer_animation_sequence_unittest.cc", | 141 # "layer_animation_sequence_unittest.cc", |
145 # "layer_animator_unittest.cc", | 142 # "layer_animator_unittest.cc", |
146 # "layer_owner_unittest.cc", | 143 # "layer_owner_unittest.cc", |
147 # "layer_unittest.cc", | 144 # "layer_unittest.cc", |
148 # "run_all_unittests.cc", | 145 # "run_all_unittests.cc", |
149 # "transform_animation_curve_adapter_unittest.cc", | 146 # "transform_animation_curve_adapter_unittest.cc", |
(...skipping 13 matching lines...) Expand all Loading... |
163 # "//ui/gfx", | 160 # "//ui/gfx", |
164 # "//ui/gfx/geometry", | 161 # "//ui/gfx/geometry", |
165 # "//ui/gl", | 162 # "//ui/gl", |
166 # "//ui/resources", | 163 # "//ui/resources", |
167 # ] | 164 # ] |
168 # | 165 # |
169 # if (is_linux) { | 166 # if (is_linux) { |
170 # deps += [ "//third_party/mesa:osmesa" ] | 167 # deps += [ "//third_party/mesa:osmesa" ] |
171 # } | 168 # } |
172 #} | 169 #} |
OLD | NEW |