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 ] |
| 21 |
| 22 data_deps = [ |
| 23 ":manifest", |
| 24 ] |
| 25 } |
| 26 |
| 27 service_manifest("manifest") { |
| 28 name = "video_capture" |
| 29 source = "service_manifest.json" |
| 30 } |
| 31 |
| 32 source_set("lib") { |
| 33 sources = [ |
| 34 "video_capture_device_client_impl.cc", |
| 35 "video_capture_device_client_impl.h", |
| 36 "video_capture_device_factory_impl.cc", |
| 37 "video_capture_device_factory_impl.h", |
| 38 "video_capture_device_impl.cc", |
| 39 "video_capture_device_impl.h", |
| 40 ] |
| 41 |
| 42 deps = [ |
| 43 "//base", |
| 44 "//mojo/common:common_base", |
| 45 "//services/shell/public/cpp", |
| 46 "//services/video_capture/public/interfaces", |
| 47 ] |
| 48 } |
| 49 |
| 50 test("video_capture_unittests") { |
| 51 sources = [ |
| 52 "service_unittest.cc", |
| 53 ] |
| 54 |
| 55 deps = [ |
| 56 ":video_capture", |
| 57 "//base", |
| 58 "//base/test:test_support", |
| 59 "//services/shell/public/cpp", |
| 60 "//services/shell/public/cpp:service_test_support", |
| 61 "//services/shell/public/cpp/test:run_all_shelltests", |
| 62 "//services/video_capture/public/interfaces", |
| 63 "//testing/gmock", |
| 64 "//testing/gtest", |
| 65 ] |
| 66 |
| 67 data_deps = [ |
| 68 ":unittest_manifest", |
| 69 ] |
| 70 } |
| 71 |
| 72 service_manifest("unittest_manifest") { |
| 73 name = "video_capture_unittests" |
| 74 source = "service_unittest_manifest.json" |
| 75 } |
OLD | NEW |