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 test("ui_unittests") { | 7 test("ui_unittests") { |
8 sources = [ | 8 sources = [ |
9 "base/layout_unittest.cc", | 9 "base/layout_unittest.cc", |
10 "base/l10n/l10n_util_mac_unittest.mm", | 10 "base/l10n/l10n_util_mac_unittest.mm", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 ] | 135 ] |
136 datadeps = [ "//tools/xdisplaycheck" ] | 136 datadeps = [ "//tools/xdisplaycheck" ] |
137 } | 137 } |
138 | 138 |
139 if (!is_win || !use_aura) { | 139 if (!is_win || !use_aura) { |
140 sources -= [ "base/view_prop_unittest.cc" ] | 140 sources -= [ "base/view_prop_unittest.cc" ] |
141 } | 141 } |
142 | 142 |
143 if (is_mac) { | 143 if (is_mac) { |
144 deps += [ | 144 deps += [ |
145 #'../third_party/mozilla/mozilla.gyp:mozilla', TODO(GYP) | 145 "//third_party/mozilla", |
146 #'ui_unittests_bundle', TODO(GYP) | 146 #'ui_unittests_bundle', TODO(GYP) |
147 ] | 147 ] |
148 if (!is_component_build) { | |
149 # Needed for mozilla.gyp. | |
150 ldflags = [ "-Wl,-ObjC" ] | |
151 } | |
152 } | 148 } |
153 | 149 |
154 if (use_aura || toolkit_views) { | 150 if (use_aura || toolkit_views) { |
155 sources += [ "base/dragdrop/os_exchange_data_unittest.cc" ] | 151 sources += [ "base/dragdrop/os_exchange_data_unittest.cc" ] |
156 deps += [ | 152 deps += [ |
157 "//ui/events", | 153 "//ui/events", |
158 "//ui/events/platform", | 154 "//ui/events/platform", |
159 ] | 155 ] |
160 } | 156 } |
161 | 157 |
162 if (is_chromeos) { | 158 if (is_chromeos) { |
163 sources += [ | 159 sources += [ |
164 "chromeos/touch_exploration_controller_unittest.cc", | 160 "chromeos/touch_exploration_controller_unittest.cc", |
165 ] | 161 ] |
166 sources -= [ | 162 sources -= [ |
167 "base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc", | 163 "base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc", |
168 "base/x/selection_requestor_unittest.cc", | 164 "base/x/selection_requestor_unittest.cc", |
169 ] | 165 ] |
170 deps += [ | 166 deps += [ |
171 "//ui/aura:test_support", | 167 "//ui/aura:test_support", |
| 168 "//ui/events:gesture_detection", |
172 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP) | 169 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP) |
173 #'chromeos/ui_chromeos.gyp:ui_chromeos', | 170 #'chromeos/ui_chromeos.gyp:ui_chromeos', |
174 #'events/events.gyp:gesture_detection', | |
175 ] | 171 ] |
176 } | 172 } |
177 | 173 |
178 } | 174 } |
179 | 175 |
180 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). | 176 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). |
OLD | NEW |