OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 source_set("input_devices") { | 7 source_set("input_devices") { |
8 sources = [ | 8 sources = [ |
9 "input_device_server.cc", | 9 "input_device_server.cc", |
10 "input_device_server.h", | 10 "input_device_server.h", |
11 ] | 11 ] |
12 | 12 |
13 deps = [ | 13 deps = [ |
14 "//base", | 14 "//base", |
15 "//services/service_manager/public/cpp", | 15 "//services/service_manager/public/cpp", |
16 "//ui/events/devices", | 16 "//ui/events/devices", |
17 ] | 17 ] |
18 | 18 |
19 public_deps = [ | 19 public_deps = [ |
20 "//services/ui/public/interfaces/input_devices", | 20 "//services/ui/public/interfaces/input_devices", |
21 ] | 21 ] |
22 | |
23 if (is_chromeos) { | |
24 sources += [ | |
25 "touch_device_server.cc", | |
26 "touch_device_server.h", | |
27 ] | |
28 } | |
29 } | 22 } |
30 | 23 |
31 test("input_device_unittests") { | 24 test("input_device_unittests") { |
32 testonly = true | 25 testonly = true |
33 | 26 |
34 sources = [ | 27 sources = [ |
35 "input_device_unittests.cc", | 28 "input_device_unittests.cc", |
36 ] | 29 ] |
37 | 30 |
38 deps = [ | 31 deps = [ |
39 ":input_devices", | 32 ":input_devices", |
40 "//base", | 33 "//base", |
41 "//base/test:test_support", | 34 "//base/test:test_support", |
42 "//mojo/edk/test:run_all_unittests", | 35 "//mojo/edk/test:run_all_unittests", |
43 "//services/service_manager/public/cpp", | 36 "//services/service_manager/public/cpp", |
44 "//services/service_manager/public/cpp:service_test_support", | 37 "//services/service_manager/public/cpp:service_test_support", |
45 "//services/ui/public/cpp/input_devices", | 38 "//services/ui/public/cpp/input_devices", |
46 "//services/ui/public/interfaces/input_devices", | 39 "//services/ui/public/interfaces/input_devices", |
47 "//testing/gtest", | 40 "//testing/gtest", |
48 "//ui/events/devices", | 41 "//ui/events/devices", |
49 ] | 42 ] |
50 } | 43 } |
OLD | NEW |