Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / device / devices_app / BUILD.gn
blobbb89b70c802b70b11c8579c5dfe5f1b50ca59880
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.
5 import("//mojo/public/mojo_application.gni")
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   ]
19   deps = [
20     "//device/core",
21     "//device/devices_app/usb/public/cpp",
22     "//device/devices_app/usb/public/interfaces",
23     "//device/usb",
24     "//net",
25     "//third_party/mojo/src/mojo/public/cpp/bindings",
26     "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
27     "//url",
28   ]
30   public_deps = [
31     "//base",
32     "//mojo/application/public/cpp",
33     "//mojo/application/public/interfaces",
34   ]
37 if (!is_component_build) {
38   mojo_native_application("devices") {
39     sources = [
40       "main.cc",
41     ]
43     deps = [
44       "//base",
45       "//device/devices_app/public/cpp:factory",
46       "//mojo/application/public/cpp",
47     ]
49     public_deps = [
50       ":lib",
51     ]
52   }
54   mojo_native_application("apptests") {
55     output_name = "devices_apptests"
57     testonly = true
59     sources = [
60       "devices_apptest.cc",
61     ]
63     deps = [
64       "//base",
65       "//mojo/application/public/cpp:test_support",
66     ]
68     public_deps = [
69       ":lib",
70       "//device/devices_app/usb/public/interfaces",
71     ]
73     data_deps = [ ":devices" ]
74   }