OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//services/shell/public/cpp/service.gni") |
| 6 import("//services/shell/public/service_manifest.gni") |
| 7 import("//testing/test.gni") |
| 8 |
| 9 service("video_capture") { |
| 10 sources = [ |
| 11 "service_main.cc", |
| 12 "video_capture_service.cc", |
| 13 "video_capture_service.h", |
| 14 ] |
| 15 |
| 16 deps = [ |
| 17 ":lib", |
| 18 "//mojo/public/cpp/system", |
| 19 "//services/shell/public/cpp", |
| 20 "//services/video_capture/public/interfaces", |
| 21 ] |
| 22 |
| 23 data_deps = [ |
| 24 ":manifest", |
| 25 ] |
| 26 } |
| 27 |
| 28 service_manifest("manifest") { |
| 29 name = "video_capture" |
| 30 source = "service_manifest.json" |
| 31 } |
| 32 |
| 33 source_set("lib") { |
| 34 sources = [ |
| 35 "video_capture_device_client_impl.cc", |
| 36 "video_capture_device_client_impl.h", |
| 37 "video_capture_device_factory_impl.cc", |
| 38 "video_capture_device_factory_impl.h", |
| 39 "video_capture_device_impl.cc", |
| 40 "video_capture_device_impl.h", |
| 41 ] |
| 42 |
| 43 deps = [ |
| 44 "//base", |
| 45 "//mojo/common:common_base", |
| 46 "//services/shell/public/cpp", |
| 47 "//services/video_capture/public/interfaces", |
| 48 ] |
| 49 } |
| 50 |
| 51 test("video_capture_unittests") { |
| 52 sources = [ |
| 53 "service_unittest.cc", |
| 54 ] |
| 55 |
| 56 deps = [ |
| 57 ":video_capture", |
| 58 "//base", |
| 59 "//base/test:test_support", |
| 60 "//services/shell/public/cpp", |
| 61 "//services/shell/public/cpp:service_test_support", |
| 62 "//services/shell/public/cpp/test:run_all_shelltests", |
| 63 "//services/video_capture/public/interfaces", |
| 64 "//testing/gmock", |
| 65 "//testing/gtest", |
| 66 ] |
| 67 |
| 68 data_deps = [ |
| 69 ":unittest_manifest", |
| 70 ] |
| 71 } |
| 72 |
| 73 service_manifest("unittest_manifest") { |
| 74 name = "video_capture_unittests" |
| 75 source = "service_unittest_manifest.json" |
| 76 } |
OLD | NEW |