Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: media/capture/BUILD.gn

Issue 2214533002: move //media/capture to //device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/media_switches.cc ('k') | media/capture/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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("//build/config/features.gni")
6 import("//media/media_options.gni")
7 import("//testing/test.gni")
8
9 component("capture") {
10 defines = [ "CAPTURE_IMPLEMENTATION" ]
11 sources = [
12 "capture_export.h",
13 "content/animated_content_sampler.cc",
14 "content/animated_content_sampler.h",
15 "content/capture_resolution_chooser.cc",
16 "content/capture_resolution_chooser.h",
17 "content/screen_capture_device_core.cc",
18 "content/screen_capture_device_core.h",
19 "content/smooth_event_sampler.cc",
20 "content/smooth_event_sampler.h",
21 "content/thread_safe_capture_oracle.cc",
22 "content/thread_safe_capture_oracle.h",
23 "content/video_capture_oracle.cc",
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",
30 "video/fake_video_capture_device.h",
31 "video/fake_video_capture_device_factory.cc",
32 "video/fake_video_capture_device_factory.h",
33 "video/file_video_capture_device.cc",
34 "video/file_video_capture_device.h",
35 "video/file_video_capture_device_factory.cc",
36 "video/file_video_capture_device_factory.h",
37 "video/linux/v4l2_capture_delegate.cc",
38 "video/linux/video_capture_device_chromeos.cc",
39 "video/linux/video_capture_device_chromeos.h",
40 "video/linux/video_capture_device_factory_linux.cc",
41 "video/linux/video_capture_device_factory_linux.h",
42 "video/linux/video_capture_device_linux.cc",
43 "video/linux/video_capture_device_linux.h",
44 "video/mac/video_capture_device_avfoundation_mac.h",
45 "video/mac/video_capture_device_avfoundation_mac.mm",
46 "video/mac/video_capture_device_decklink_mac.h",
47 "video/mac/video_capture_device_decklink_mac.mm",
48 "video/mac/video_capture_device_factory_mac.h",
49 "video/mac/video_capture_device_factory_mac.mm",
50 "video/mac/video_capture_device_mac.h",
51 "video/mac/video_capture_device_mac.mm",
52 "video/scoped_result_callback.h",
53 "video/video_capture_device.cc",
54 "video/video_capture_device.h",
55 "video/video_capture_device_descriptor.cc",
56 "video/video_capture_device_descriptor.h",
57 "video/video_capture_device_factory.cc",
58 "video/video_capture_device_factory.h",
59 "video/win/capability_list_win.cc",
60 "video/win/capability_list_win.h",
61 "video/win/filter_base_win.cc",
62 "video/win/filter_base_win.h",
63 "video/win/pin_base_win.cc",
64 "video/win/pin_base_win.h",
65 "video/win/sink_filter_observer_win.h",
66 "video/win/sink_filter_win.cc",
67 "video/win/sink_filter_win.h",
68 "video/win/sink_input_pin_win.cc",
69 "video/win/sink_input_pin_win.h",
70 "video/win/video_capture_device_factory_win.cc",
71 "video/win/video_capture_device_factory_win.h",
72 "video/win/video_capture_device_mf_win.cc",
73 "video/win/video_capture_device_mf_win.h",
74 "video/win/video_capture_device_win.cc",
75 "video/win/video_capture_device_win.h",
76 ]
77
78 public_deps = []
79 deps = [
80 "//base",
81 "//base:i18n",
82 "//media",
83 "//media/mojo/interfaces:image_capture",
84 "//skia",
85 "//ui/display",
86 "//ui/gfx",
87 ]
88
89 configs += [
90 # TODO(mcasas): media/base should be a component and not a source_set, but
91 # it depends on parts of media/filters, media/ffmpeg etc. Until then, we
92 # pretend to be inside media.dll and duplicate the few symbols needed, see
93 # https://crbug.com/590017.
94 "//media:media_implementation",
95 ]
96
97 if (is_android) {
98 public_deps += [
99 "content/android",
100 "video/android",
101 ]
102 deps += [
103 "content/android:screen_capture_jni_headers",
104 "video/android:capture_jni_headers",
105 ]
106 }
107
108 if (is_mac) {
109 deps += [ "//third_party/decklink" ]
110 libs = [
111 "CoreFoundation.framework",
112 "CoreGraphics.framework",
113 "CoreVideo.framework",
114 "Foundation.framework",
115 ]
116 }
117
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) {
127 deps += [
128 "//media/base", # For media_switches.
129 "//media/base/win",
130 ]
131 libs = [
132 "mf.lib",
133 "mfplat.lib",
134 "mfreadwrite.lib",
135 "mfuuid.lib",
136 ]
137 ldflags = [
138 "/DELAYLOAD:mf.dll",
139 "/DELAYLOAD:mfplat.dll",
140 "/DELAYLOAD:mfreadwrite.dll",
141 ]
142
143 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
144 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
145 }
146 }
147
148 test("capture_unittests") {
149 sources = [
150 "content/animated_content_sampler_unittest.cc",
151 "content/capture_resolution_chooser_unittest.cc",
152 "content/smooth_event_sampler_unittest.cc",
153 "content/video_capture_oracle_unittest.cc",
154 "system_message_window_win_unittest.cc",
155 "video/fake_video_capture_device_unittest.cc",
156 "video/mac/video_capture_device_factory_mac_unittest.mm",
157 "video/video_capture_device_unittest.cc",
158 ]
159
160 deps = [
161 ":capture",
162 "//base/test:run_all_unittests",
163 "//base/test:test_support",
164 "//media/base:test_support",
165 "//media/mojo/interfaces:image_capture",
166 "//testing/gmock",
167 "//testing/gtest",
168 "//ui/gfx:test_support",
169 ]
170
171 if (is_android) {
172 deps += [
173 "//media/capture/video/android",
174 "//media/capture/video/android:capture_java",
175 ]
176 }
177
178 if (is_win) {
179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
181 }
182 }
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/capture/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698