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("//build/config/features.gni") |
6 import("//media/media_options.gni") | 6 import("//media/media_options.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 component("capture") { | 9 component("capture") { |
10 defines = [ "CAPTURE_IMPLEMENTATION" ] | 10 defines = [ "CAPTURE_IMPLEMENTATION" ] |
11 sources = [ | 11 sources = [ |
12 "capture_export.h", | 12 "capture_export.h", |
13 "content/animated_content_sampler.cc", | 13 "content/animated_content_sampler.cc", |
14 "content/animated_content_sampler.h", | 14 "content/animated_content_sampler.h", |
15 "content/capture_resolution_chooser.cc", | 15 "content/capture_resolution_chooser.cc", |
16 "content/capture_resolution_chooser.h", | 16 "content/capture_resolution_chooser.h", |
17 "content/screen_capture_device_core.cc", | 17 "content/screen_capture_device_core.cc", |
18 "content/screen_capture_device_core.h", | 18 "content/screen_capture_device_core.h", |
19 "content/smooth_event_sampler.cc", | 19 "content/smooth_event_sampler.cc", |
20 "content/smooth_event_sampler.h", | 20 "content/smooth_event_sampler.h", |
21 "content/thread_safe_capture_oracle.cc", | 21 "content/thread_safe_capture_oracle.cc", |
22 "content/thread_safe_capture_oracle.h", | 22 "content/thread_safe_capture_oracle.h", |
23 "content/video_capture_oracle.cc", | 23 "content/video_capture_oracle.cc", |
24 "content/video_capture_oracle.h", | 24 "content/video_capture_oracle.h", |
25 "device_monitor_mac.h", | |
26 "device_monitor_mac.mm", | |
27 "system_message_window_win.cc", | |
28 "system_message_window_win.h", | |
29 "video/fake_video_capture_device.cc", | 25 "video/fake_video_capture_device.cc", |
30 "video/fake_video_capture_device.h", | 26 "video/fake_video_capture_device.h", |
31 "video/fake_video_capture_device_factory.cc", | 27 "video/fake_video_capture_device_factory.cc", |
32 "video/fake_video_capture_device_factory.h", | 28 "video/fake_video_capture_device_factory.h", |
33 "video/file_video_capture_device.cc", | 29 "video/file_video_capture_device.cc", |
34 "video/file_video_capture_device.h", | 30 "video/file_video_capture_device.h", |
35 "video/file_video_capture_device_factory.cc", | 31 "video/file_video_capture_device_factory.cc", |
36 "video/file_video_capture_device_factory.h", | 32 "video/file_video_capture_device_factory.h", |
37 "video/linux/v4l2_capture_delegate.cc", | 33 "video/linux/v4l2_capture_delegate.cc", |
38 "video/linux/video_capture_device_chromeos.cc", | 34 "video/linux/video_capture_device_chromeos.cc", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 if (is_mac) { | 104 if (is_mac) { |
109 deps += [ "//third_party/decklink" ] | 105 deps += [ "//third_party/decklink" ] |
110 libs = [ | 106 libs = [ |
111 "CoreFoundation.framework", | 107 "CoreFoundation.framework", |
112 "CoreGraphics.framework", | 108 "CoreGraphics.framework", |
113 "CoreVideo.framework", | 109 "CoreVideo.framework", |
114 "Foundation.framework", | 110 "Foundation.framework", |
115 ] | 111 ] |
116 } | 112 } |
117 | 113 |
118 if (use_udev) { | |
119 deps += [ "//device/udev_linux" ] | |
120 sources += [ | |
121 "device_monitor_udev.cc", | |
122 "device_monitor_udev.h", | |
123 ] | |
124 } | |
125 | |
126 if (is_win) { | 114 if (is_win) { |
127 deps += [ | 115 deps += [ |
128 "//media/base", # For media_switches. | 116 "//media/base", # For media_switches. |
129 "//media/base/win", | 117 "//media/base/win", |
130 ] | 118 ] |
131 libs = [ | 119 libs = [ |
132 "mf.lib", | 120 "mf.lib", |
133 "mfplat.lib", | 121 "mfplat.lib", |
134 "mfreadwrite.lib", | 122 "mfreadwrite.lib", |
135 "mfuuid.lib", | 123 "mfuuid.lib", |
136 ] | 124 ] |
137 ldflags = [ | 125 ldflags = [ |
138 "/DELAYLOAD:mf.dll", | 126 "/DELAYLOAD:mf.dll", |
139 "/DELAYLOAD:mfplat.dll", | 127 "/DELAYLOAD:mfplat.dll", |
140 "/DELAYLOAD:mfreadwrite.dll", | 128 "/DELAYLOAD:mfreadwrite.dll", |
141 ] | 129 ] |
142 | 130 |
143 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 131 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
144 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 132 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
145 } | 133 } |
146 } | 134 } |
147 | 135 |
148 test("capture_unittests") { | 136 test("capture_unittests") { |
149 sources = [ | 137 sources = [ |
150 "content/animated_content_sampler_unittest.cc", | 138 "content/animated_content_sampler_unittest.cc", |
151 "content/capture_resolution_chooser_unittest.cc", | 139 "content/capture_resolution_chooser_unittest.cc", |
152 "content/smooth_event_sampler_unittest.cc", | 140 "content/smooth_event_sampler_unittest.cc", |
153 "content/video_capture_oracle_unittest.cc", | 141 "content/video_capture_oracle_unittest.cc", |
154 "system_message_window_win_unittest.cc", | |
155 "video/fake_video_capture_device_unittest.cc", | 142 "video/fake_video_capture_device_unittest.cc", |
156 "video/mac/video_capture_device_factory_mac_unittest.mm", | 143 "video/mac/video_capture_device_factory_mac_unittest.mm", |
157 "video/video_capture_device_unittest.cc", | 144 "video/video_capture_device_unittest.cc", |
158 ] | 145 ] |
159 | 146 |
160 deps = [ | 147 deps = [ |
161 ":capture", | 148 ":capture", |
162 "//base/test:run_all_unittests", | 149 "//base/test:run_all_unittests", |
163 "//base/test:test_support", | 150 "//base/test:test_support", |
164 "//media/base:test_support", | 151 "//media/base:test_support", |
165 "//media/mojo/interfaces:image_capture", | 152 "//media/mojo/interfaces:image_capture", |
166 "//testing/gmock", | 153 "//testing/gmock", |
167 "//testing/gtest", | 154 "//testing/gtest", |
168 "//ui/gfx:test_support", | 155 "//ui/gfx:test_support", |
169 ] | 156 ] |
170 | 157 |
171 if (is_android) { | 158 if (is_android) { |
172 deps += [ | 159 deps += [ |
173 "//media/capture/video/android", | 160 "//media/capture/video/android", |
174 "//media/capture/video/android:capture_java", | 161 "//media/capture/video/android:capture_java", |
175 ] | 162 ] |
176 } | 163 } |
177 | 164 |
178 if (is_win) { | 165 if (is_win) { |
179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 166 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 167 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
181 } | 168 } |
182 } | 169 } |
OLD | NEW |