| 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("//services/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//services/service_manager/public/tools/test/service_test.gni") | 7 import("//services/service_manager/public/tools/test/service_test.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 service("video_capture") { | 10 service("video_capture") { |
| 11 sources = [ | 11 sources = [ |
| 12 "service_impl.cc", | |
| 13 "service_impl.h", | |
| 14 "service_main.cc", | 12 "service_main.cc", |
| 15 ] | 13 ] |
| 16 | 14 |
| 17 deps = [ | 15 deps = [ |
| 18 ":lib", | 16 ":lib", |
| 19 "//mojo/public/cpp/system", | 17 "//mojo/public/cpp/system", |
| 18 "//services/video_capture/public/cpp", |
| 19 "//services/video_capture/public/interfaces", |
| 20 ] | 20 ] |
| 21 } | 21 } |
| 22 | 22 |
| 23 service_manifest("manifest") { | 23 service_manifest("manifest") { |
| 24 name = "video_capture" | 24 name = "video_capture" |
| 25 source = "service_manifest.json" | 25 source = "service_manifest.json" |
| 26 } | 26 } |
| 27 | 27 |
| 28 source_set("lib") { | 28 source_set("lib") { |
| 29 sources = [ | 29 sources = [ |
| 30 "device_factory_media_to_mojo_adapter.cc", | 30 "device_factory_media_to_mojo_adapter.cc", |
| 31 "device_factory_media_to_mojo_adapter.h", | 31 "device_factory_media_to_mojo_adapter.h", |
| 32 "device_factory_provider_impl.cc", |
| 33 "device_factory_provider_impl.h", |
| 32 "device_media_to_mojo_adapter.cc", | 34 "device_media_to_mojo_adapter.cc", |
| 33 "device_media_to_mojo_adapter.h", | 35 "device_media_to_mojo_adapter.h", |
| 34 "public/cpp/device_to_feedback_observer_adapter.cc", | |
| 35 "public/cpp/device_to_feedback_observer_adapter.h", | |
| 36 "public/cpp/receiver_media_to_mojo_adapter.cc", | |
| 37 "public/cpp/receiver_media_to_mojo_adapter.h", | |
| 38 "receiver_mojo_to_media_adapter.cc", | 36 "receiver_mojo_to_media_adapter.cc", |
| 39 "receiver_mojo_to_media_adapter.h", | 37 "receiver_mojo_to_media_adapter.h", |
| 38 "service_impl.cc", |
| 39 "service_impl.h", |
| 40 ] | 40 ] |
| 41 | 41 |
| 42 public_deps = [ | 42 public_deps = [ |
| 43 "//base", | 43 "//base", |
| 44 "//media", | 44 "//media", |
| 45 "//media/capture:capture", | 45 "//media/capture:capture", |
| 46 "//media/capture/mojo:image_capture", | 46 "//media/capture/mojo:image_capture", |
| 47 "//media/mojo/common:common", | 47 "//media/mojo/common:common", |
| 48 "//mojo/common:common_base", | 48 "//mojo/common:common_base", |
| 49 "//services/service_manager/public/cpp", | 49 "//services/service_manager/public/cpp", |
| 50 "//services/video_capture/public/cpp", |
| 50 "//services/video_capture/public/interfaces", | 51 "//services/video_capture/public/interfaces", |
| 52 "//services/video_capture/public/interfaces:constants", |
| 53 ] |
| 54 |
| 55 data_deps = [ |
| 56 ":manifest", |
| 51 ] | 57 ] |
| 52 } | 58 } |
| 53 | 59 |
| 54 source_set("tests") { | 60 source_set("tests") { |
| 55 testonly = true | 61 testonly = true |
| 56 | 62 |
| 57 sources = [ | 63 sources = [ |
| 64 "test/device_factory_provider_test.cc", |
| 65 "test/device_factory_provider_test.h", |
| 66 "test/device_factory_provider_unittest.cc", |
| 58 "test/fake_device_descriptor_test.cc", | 67 "test/fake_device_descriptor_test.cc", |
| 59 "test/fake_device_descriptor_test.h", | 68 "test/fake_device_descriptor_test.h", |
| 60 "test/fake_device_descriptor_unittest.cc", | 69 "test/fake_device_descriptor_unittest.cc", |
| 61 "test/fake_device_test.cc", | 70 "test/fake_device_test.cc", |
| 62 "test/fake_device_test.h", | 71 "test/fake_device_test.h", |
| 63 "test/fake_device_unittest.cc", | 72 "test/fake_device_unittest.cc", |
| 64 "test/mock_device_factory.cc", | 73 "test/mock_device_factory.cc", |
| 65 "test/mock_device_factory.h", | 74 "test/mock_device_factory.h", |
| 66 "test/mock_device_test.cc", | 75 "test/mock_device_test.cc", |
| 67 "test/mock_device_test.h", | 76 "test/mock_device_test.h", |
| 68 "test/mock_device_unittest.cc", | 77 "test/mock_device_unittest.cc", |
| 69 "test/mock_receiver.cc", | 78 "test/mock_receiver.cc", |
| 70 "test/mock_receiver.h", | 79 "test/mock_receiver.h", |
| 71 "test/service_test.cc", | |
| 72 "test/service_test.h", | |
| 73 "test/service_unittest.cc", | |
| 74 ] | 80 ] |
| 75 | 81 |
| 76 deps = [ | 82 deps = [ |
| 77 ":lib", | 83 ":lib", |
| 78 ":video_capture", | 84 ":video_capture", |
| 79 "//base/test:test_support", | 85 "//base/test:test_support", |
| 80 "//media/capture/mojo:capture_types", | 86 "//media/capture/mojo:capture_types", |
| 81 "//services/service_manager/public/cpp", | 87 "//services/service_manager/public/cpp", |
| 82 "//services/service_manager/public/cpp:service_test_support", | 88 "//services/service_manager/public/cpp:service_test_support", |
| 83 "//testing/gmock", | 89 "//testing/gmock", |
| 84 "//testing/gtest", | 90 "//testing/gtest", |
| 85 "//ui/gfx:test_support", | 91 "//ui/gfx:test_support", |
| 86 ] | 92 ] |
| 87 | 93 |
| 88 data_deps = [ | 94 data_deps = [ |
| 89 ":video_capture", | 95 ":video_capture", |
| 90 ] | 96 ] |
| 91 } | 97 } |
| 92 | 98 |
| 93 service_manifest("unittest_manifest") { | 99 service_manifest("unittest_manifest") { |
| 94 name = "video_capture_unittests" | 100 name = "video_capture_unittests" |
| 95 source = "test/service_unittest_manifest.json" | 101 source = "test/service_unittest_manifest.json" |
| 96 } | 102 } |
| 97 | 103 |
| 98 catalog("tests_catalog") { | 104 catalog("tests_catalog") { |
| 99 embedded_services = [ ":unittest_manifest" ] | 105 embedded_services = [ ":unittest_manifest" ] |
| 100 standalone_services = [ ":manifest" ] | 106 standalone_services = [ ":manifest" ] |
| 101 } | 107 } |
| OLD | NEW |