| 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("//build/config/features.gni") |
| 5 import("//services/service_manager/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
| 7 | 8 |
| 8 source_set("lib") { | 9 source_set("lib") { |
| 9 sources = [ | 10 sources = [ |
| 10 "device_service.cc", | 11 "device_service.cc", |
| 11 "device_service.h", | 12 "device_service.h", |
| 12 ] | 13 ] |
| 13 | 14 |
| 14 deps = [ | 15 deps = [ |
| 15 "//base", | 16 "//base", |
| 16 "//device/power_monitor", | 17 "//device/power_monitor", |
| 17 "//device/time_zone_monitor", | 18 "//device/time_zone_monitor", |
| 18 "//services/service_manager/public/cpp", | 19 "//services/service_manager/public/cpp", |
| 19 ] | 20 ] |
| 20 | 21 |
| 22 if (enable_webvr) { |
| 23 deps += [ "//device/vr" ] |
| 24 } else { |
| 25 deps += [ "//device/vr:mojo_bindings" ] |
| 26 } |
| 27 |
| 21 public_deps = [ | 28 public_deps = [ |
| 22 # TODO(blundell): This dep shouldn't be necessary at all, | 29 # TODO(blundell): This dep shouldn't be necessary at all, |
| 23 # but content_shell fails to link in the component build if | 30 # but content_shell fails to link in the component build if |
| 24 # this isn't here as a public_dep. | 31 # this isn't here as a public_dep. |
| 25 "//device/time_zone_monitor/public/interfaces", | 32 "//device/time_zone_monitor/public/interfaces", |
| 26 ] | 33 ] |
| 27 | 34 |
| 28 data_deps = [ | 35 data_deps = [ |
| 29 ":manifest", | 36 ":manifest", |
| 30 ] | 37 ] |
| 31 } | 38 } |
| 32 | 39 |
| 33 service_manifest("manifest") { | 40 service_manifest("manifest") { |
| 34 name = "device" | 41 name = "device" |
| 35 source = "manifest.json" | 42 source = "manifest.json" |
| 36 } | 43 } |
| OLD | NEW |