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

Side by Side Diff: device/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 | « content/test/BUILD.gn ('k') | device/capture/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni().
10 }
8 11
9 component("capture") { 12 component("capture") {
10 defines = [ "CAPTURE_IMPLEMENTATION" ] 13 defines = [ "CAPTURE_IMPLEMENTATION" ]
14
11 sources = [ 15 sources = [
12 "capture_export.h", 16 "capture_export.h",
17 "content/android/screen_capture_jni_registrar.cc",
18 "content/android/screen_capture_jni_registrar.h",
19 "content/android/screen_capture_machine_android.cc",
20 "content/android/screen_capture_machine_android.h",
13 "content/animated_content_sampler.cc", 21 "content/animated_content_sampler.cc",
14 "content/animated_content_sampler.h", 22 "content/animated_content_sampler.h",
15 "content/capture_resolution_chooser.cc", 23 "content/capture_resolution_chooser.cc",
16 "content/capture_resolution_chooser.h", 24 "content/capture_resolution_chooser.h",
17 "content/screen_capture_device_core.cc", 25 "content/screen_capture_device_core.cc",
18 "content/screen_capture_device_core.h", 26 "content/screen_capture_device_core.h",
19 "content/smooth_event_sampler.cc", 27 "content/smooth_event_sampler.cc",
20 "content/smooth_event_sampler.h", 28 "content/smooth_event_sampler.h",
21 "content/thread_safe_capture_oracle.cc", 29 "content/thread_safe_capture_oracle.cc",
22 "content/thread_safe_capture_oracle.h", 30 "content/thread_safe_capture_oracle.h",
23 "content/video_capture_oracle.cc", 31 "content/video_capture_oracle.cc",
24 "content/video_capture_oracle.h", 32 "content/video_capture_oracle.h",
25 "device_monitor_mac.h", 33 "device_monitor_mac.h",
26 "device_monitor_mac.mm", 34 "device_monitor_mac.mm",
27 "system_message_window_win.cc", 35 "system_message_window_win.cc",
28 "system_message_window_win.h", 36 "system_message_window_win.h",
37 "video/android/capture_jni_registrar.cc",
38 "video/android/capture_jni_registrar.h",
39 "video/android/photo_capabilities.cc",
40 "video/android/photo_capabilities.h",
41 "video/android/video_capture_device_android.cc",
42 "video/android/video_capture_device_android.h",
43 "video/android/video_capture_device_factory_android.cc",
44 "video/android/video_capture_device_factory_android.h",
29 "video/fake_video_capture_device.cc", 45 "video/fake_video_capture_device.cc",
30 "video/fake_video_capture_device.h", 46 "video/fake_video_capture_device.h",
31 "video/fake_video_capture_device_factory.cc", 47 "video/fake_video_capture_device_factory.cc",
32 "video/fake_video_capture_device_factory.h", 48 "video/fake_video_capture_device_factory.h",
33 "video/file_video_capture_device.cc", 49 "video/file_video_capture_device.cc",
34 "video/file_video_capture_device.h", 50 "video/file_video_capture_device.h",
35 "video/file_video_capture_device_factory.cc", 51 "video/file_video_capture_device_factory.cc",
36 "video/file_video_capture_device_factory.h", 52 "video/file_video_capture_device_factory.h",
37 "video/linux/v4l2_capture_delegate.cc", 53 "video/linux/v4l2_capture_delegate.cc",
38 "video/linux/video_capture_device_chromeos.cc", 54 "video/linux/video_capture_device_chromeos.cc",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "video/win/video_capture_device_win.h", 91 "video/win/video_capture_device_win.h",
76 ] 92 ]
77 93
78 public_deps = [] 94 public_deps = []
79 deps = [ 95 deps = [
80 "//base", 96 "//base",
81 "//base:i18n", 97 "//base:i18n",
82 "//media", 98 "//media",
83 "//media/mojo/interfaces:image_capture", 99 "//media/mojo/interfaces:image_capture",
84 "//skia", 100 "//skia",
101 "//third_party/libyuv",
85 "//ui/display", 102 "//ui/display",
86 "//ui/gfx", 103 "//ui/gfx",
87 ] 104 ]
88 105
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) { 106 if (is_android) {
98 public_deps += [ 107 deps += [ ":capture_jni_headers" ]
99 "content/android",
100 "video/android",
101 ]
102 deps += [
103 "content/android:screen_capture_jni_headers",
104 "video/android:capture_jni_headers",
105 ]
106 } 108 }
107 109
108 if (is_mac) { 110 if (is_mac) {
109 deps += [ "//third_party/decklink" ] 111 deps += [ "//third_party/decklink" ]
110 libs = [ 112 libs = [
111 "CoreFoundation.framework", 113 "CoreFoundation.framework",
112 "CoreGraphics.framework", 114 "CoreGraphics.framework",
113 "CoreVideo.framework", 115 "CoreVideo.framework",
114 "Foundation.framework", 116 "Foundation.framework",
115 ] 117 ]
116 } 118 }
117 119
118 if (use_udev) { 120 if (use_udev) {
119 deps += [ "//device/udev_linux" ] 121 deps += [ "//device/udev_linux" ]
120 sources += [ 122 sources += [
121 "device_monitor_udev.cc", 123 "device_monitor_udev.cc",
122 "device_monitor_udev.h", 124 "device_monitor_udev.h",
123 ] 125 ]
124 } 126 }
125 127
126 if (is_win) { 128 if (is_win) {
127 deps += [ 129 deps += [ "//media/base/win" ]
128 "//media/base", # For media_switches.
129 "//media/base/win",
130 ]
131 libs = [ 130 libs = [
132 "mf.lib", 131 "mf.lib",
133 "mfplat.lib", 132 "mfplat.lib",
134 "mfreadwrite.lib", 133 "mfreadwrite.lib",
135 "mfuuid.lib", 134 "mfuuid.lib",
135 "strmiids.lib",
136 ] 136 ]
137 ldflags = [ 137 ldflags = [
138 "/DELAYLOAD:mf.dll", 138 "/DELAYLOAD:mf.dll",
139 "/DELAYLOAD:mfplat.dll", 139 "/DELAYLOAD:mfplat.dll",
140 "/DELAYLOAD:mfreadwrite.dll", 140 "/DELAYLOAD:mfreadwrite.dll",
141 ] 141 ]
142 142
143 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. 143 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
144 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 144 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
145 } 145 }
146 } 146 }
147 147
148 if (is_android) {
149 generate_jni("capture_jni_headers") {
150 sources = [
151 "content/android/java/src/org/chromium/device/ScreenCapture.java",
152 "video/android/java/src/org/chromium/device/PhotoCapabilities.java",
153 "video/android/java/src/org/chromium/device/VideoCapture.java",
154 "video/android/java/src/org/chromium/device/VideoCaptureFactory.java",
155 ]
156 jni_package = "device"
157 }
158
159 java_cpp_enum("capture_java_enums_srcjar") {
160 sources = [
161 "video/android/video_capture_device_android.h",
162 "video/video_capture_device_descriptor.h",
163 ]
164 }
165
166 android_library("capture_java") {
167 deps = [
168 ":capture",
169 ":capture_jni_headers",
170 "//base:base_java",
171 "//third_party/android_tools:android_support_annotations_java",
172 ]
173
174 srcjar_deps = [ ":capture_java_enums_srcjar" ]
175
176 java_files = [
177 "content/android/java/src/org/chromium/device/ScreenCapture.java",
178 "video/android/java/src/org/chromium/device/PhotoCapabilities.java",
179 "video/android/java/src/org/chromium/device/VideoCapture.java",
180 "video/android/java/src/org/chromium/device/VideoCaptureAndroid.java",
181 "video/android/java/src/org/chromium/device/VideoCaptureCamera.java",
182 "video/android/java/src/org/chromium/device/VideoCaptureCamera2.java",
183 "video/android/java/src/org/chromium/device/VideoCaptureFactory.java",
184 "video/android/java/src/org/chromium/device/VideoCaptureFormat.java",
185 "video/android/java/src/org/chromium/device/VideoCaptureTango.java",
186 ]
187 }
188 }
189
148 test("capture_unittests") { 190 test("capture_unittests") {
149 sources = [ 191 sources = [
150 "content/animated_content_sampler_unittest.cc", 192 "content/animated_content_sampler_unittest.cc",
151 "content/capture_resolution_chooser_unittest.cc", 193 "content/capture_resolution_chooser_unittest.cc",
152 "content/smooth_event_sampler_unittest.cc", 194 "content/smooth_event_sampler_unittest.cc",
153 "content/video_capture_oracle_unittest.cc", 195 "content/video_capture_oracle_unittest.cc",
154 "system_message_window_win_unittest.cc", 196 "system_message_window_win_unittest.cc",
155 "video/fake_video_capture_device_unittest.cc", 197 "video/fake_video_capture_device_unittest.cc",
156 "video/mac/video_capture_device_factory_mac_unittest.mm", 198 "video/mac/video_capture_device_factory_mac_unittest.mm",
157 "video/video_capture_device_unittest.cc", 199 "video/video_capture_device_unittest.cc",
158 ] 200 ]
159 201
160 deps = [ 202 deps = [
161 ":capture", 203 ":capture",
162 "//base/test:run_all_unittests", 204 "//base/test:run_all_unittests",
163 "//base/test:test_support", 205 "//base/test:test_support",
206 "//media:test_support",
164 "//media/base:test_support", 207 "//media/base:test_support",
165 "//media/mojo/interfaces:image_capture", 208 "//media/mojo/interfaces:image_capture",
166 "//testing/gmock", 209 "//testing/gmock",
167 "//testing/gtest", 210 "//testing/gtest",
168 "//ui/gfx:test_support", 211 "//ui/gfx:test_support",
169 ] 212 ]
170 213
171 if (is_android) { 214 if (is_android) {
172 deps += [ 215 deps += [
173 "//media/capture/video/android", 216 ":capture_java",
174 "//media/capture/video/android:capture_java", 217 ":capture_jni_headers",
175 ] 218 ]
176 } 219 }
177 220
178 if (is_win) { 221 if (is_win) {
179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. 222 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 223 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
181 } 224 }
182 } 225 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | device/capture/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698