OLD | NEW |
| (Empty) |
1 # Copyright 2015 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. | |
4 | |
5 import("//mojo/public/mojo_application.gni") | |
6 | |
7 source_set("lib") { | |
8 sources = [ | |
9 "devices_app.cc", | |
10 "devices_app.h", | |
11 "usb/device_impl.cc", | |
12 "usb/device_impl.h", | |
13 "usb/device_manager_impl.cc", | |
14 "usb/device_manager_impl.h", | |
15 "usb/type_converters.cc", | |
16 "usb/type_converters.h", | |
17 ] | |
18 | |
19 deps = [ | |
20 "//device/core", | |
21 "//device/devices_app/usb/public/interfaces", | |
22 "//device/usb", | |
23 "//mojo/common", | |
24 "//mojo/public/cpp/bindings", | |
25 "//mojo/public/cpp/bindings:callback", | |
26 "//net", | |
27 "//url", | |
28 ] | |
29 | |
30 public_deps = [ | |
31 "//base", | |
32 "//mojo/shell/public/cpp", | |
33 "//mojo/shell/public/interfaces", | |
34 ] | |
35 } | |
36 | |
37 if (!is_component_build) { | |
38 mojo_native_application("devices") { | |
39 sources = [ | |
40 "main.cc", | |
41 ] | |
42 | |
43 deps = [ | |
44 "//base", | |
45 "//device/devices_app/public/cpp:factory", | |
46 "//mojo/shell/public/cpp", | |
47 ] | |
48 | |
49 public_deps = [ | |
50 ":lib", | |
51 ] | |
52 } | |
53 | |
54 mojo_native_application("apptests") { | |
55 output_name = "devices_apptests" | |
56 | |
57 testonly = true | |
58 | |
59 sources = [ | |
60 "devices_apptest.cc", | |
61 ] | |
62 | |
63 deps = [ | |
64 "//base", | |
65 "//mojo/shell/public/cpp:test_support", | |
66 ] | |
67 | |
68 public_deps = [ | |
69 ":lib", | |
70 "//device/devices_app/usb/public/interfaces", | |
71 ] | |
72 | |
73 data_deps = [ | |
74 ":devices", | |
75 ] | |
76 } | |
77 } | |
OLD | NEW |