forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.gn
94 lines (83 loc) · 2.3 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//testing/test.gni")
service("video_capture") {
sources = [
"service_impl.cc",
"service_impl.h",
"service_main.cc",
]
deps = [
":lib",
"//mojo/public/cpp/system",
]
data_deps = [
":manifest",
]
}
service_manifest("manifest") {
name = "video_capture"
source = "service_manifest.json"
}
source_set("lib") {
sources = [
"device_factory_media_to_mojo_adapter.cc",
"device_factory_media_to_mojo_adapter.h",
"device_media_to_mojo_adapter.cc",
"device_media_to_mojo_adapter.h",
"receiver_mojo_to_media_adapter.cc",
"receiver_mojo_to_media_adapter.h",
]
public_deps = [
"//base",
"//media",
"//media/capture:capture",
"//media/capture/mojo:image_capture",
"//media/mojo/common:common",
"//mojo/common:common_base",
"//services/service_manager/public/cpp",
"//services/video_capture/public/interfaces",
]
}
test("video_capture_unittests") {
sources = [
"test/fake_device_descriptor_test.cc",
"test/fake_device_descriptor_test.h",
"test/fake_device_descriptor_unittest.cc",
"test/fake_device_test.cc",
"test/fake_device_test.h",
"test/fake_device_unittest.cc",
"test/mock_device_factory.cc",
"test/mock_device_factory.h",
"test/mock_device_test.cc",
"test/mock_device_test.h",
"test/mock_device_unittest.cc",
"test/mock_receiver.cc",
"test/mock_receiver.h",
"test/service_test.cc",
"test/service_test.h",
"test/service_unittest.cc",
]
deps = [
":lib",
":video_capture",
"//base/test:test_support",
"//media/capture/mojo:capture_types",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp:service_test_support",
"//services/service_manager/public/cpp/test:run_all_service_tests",
"//testing/gmock",
"//testing/gtest",
"//ui/gfx:test_support",
]
data_deps = [
":unittest_manifest",
]
}
service_manifest("unittest_manifest") {
name = "video_capture_unittests"
source = "test/service_unittest_manifest.json"
}