ChildAccountService[Java] delegates everything to native side.
[chromium-blink-merge.git] / device / devices_app / BUILD.gn
blob2450b6317fc1d0e826f69ce5acfa7d47ac113b8f
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/interfaces",
22     "//device/usb",
23     "//net",
24     "//third_party/mojo/src/mojo/public/cpp/bindings",
25     "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
26     "//url",
27   ]
29   public_deps = [
30     "//base",
31     "//mojo/application/public/cpp",
32     "//mojo/application/public/interfaces",
33   ]
36 if (!is_component_build) {
37   mojo_native_application("devices") {
38     sources = [
39       "main.cc",
40     ]
42     deps = [
43       "//base",
44       "//device/devices_app/public/cpp:factory",
45       "//mojo/application/public/cpp",
46     ]
48     public_deps = [
49       ":lib",
50     ]
51   }
53   mojo_native_application("apptests") {
54     output_name = "devices_apptests"
56     testonly = true
58     sources = [
59       "devices_apptest.cc",
60     ]
62     deps = [
63       "//base",
64       "//mojo/application/public/cpp:test_support",
65     ]
67     public_deps = [
68       ":lib",
69       "//device/devices_app/usb/public/interfaces",
70     ]
72     data_deps = [ ":devices" ]
73   }