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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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/feedback_signal_accumulator.h",
18 "content/screen_capture_device_core.cc", 17 "content/screen_capture_device_core.cc",
19 "content/screen_capture_device_core.h", 18 "content/screen_capture_device_core.h",
20 "content/smooth_event_sampler.cc", 19 "content/smooth_event_sampler.cc",
21 "content/smooth_event_sampler.h", 20 "content/smooth_event_sampler.h",
22 "content/thread_safe_capture_oracle.cc", 21 "content/thread_safe_capture_oracle.cc",
23 "content/thread_safe_capture_oracle.h", 22 "content/thread_safe_capture_oracle.h",
24 "content/video_capture_oracle.cc", 23 "content/video_capture_oracle.cc",
25 "content/video_capture_oracle.h", 24 "content/video_capture_oracle.h",
26 "device_monitor_mac.h", 25 "device_monitor_mac.h",
27 "device_monitor_mac.mm", 26 "device_monitor_mac.mm",
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (is_win) { 128 if (is_win) {
130 deps += [ 129 deps += [
131 "//media/base", # For media_switches. 130 "//media/base", # For media_switches.
132 "//media/base/win", 131 "//media/base/win",
133 ] 132 ]
134 libs = [ 133 libs = [
135 "mf.lib", 134 "mf.lib",
136 "mfplat.lib", 135 "mfplat.lib",
137 "mfreadwrite.lib", 136 "mfreadwrite.lib",
138 "mfuuid.lib", 137 "mfuuid.lib",
138 "strmiids.lib",
139 ] 139 ]
140 ldflags = [ 140 ldflags = [
141 "/DELAYLOAD:mf.dll", 141 "/DELAYLOAD:mf.dll",
142 "/DELAYLOAD:mfplat.dll", 142 "/DELAYLOAD:mfplat.dll",
143 "/DELAYLOAD:mfreadwrite.dll", 143 "/DELAYLOAD:mfreadwrite.dll",
144 ] 144 ]
145 145
146 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. 146 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
147 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 147 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
148 } 148 }
149 } 149 }
150 150
151 test("capture_unittests") { 151 test("capture_unittests") {
152 sources = [ 152 sources = [
153 "content/animated_content_sampler_unittest.cc", 153 "content/animated_content_sampler_unittest.cc",
154 "content/capture_resolution_chooser_unittest.cc", 154 "content/capture_resolution_chooser_unittest.cc",
155 "content/feedback_signal_accumulator_unittest.cc",
156 "content/smooth_event_sampler_unittest.cc", 155 "content/smooth_event_sampler_unittest.cc",
157 "content/video_capture_oracle_unittest.cc", 156 "content/video_capture_oracle_unittest.cc",
158 "system_message_window_win_unittest.cc", 157 "system_message_window_win_unittest.cc",
159 "video/fake_video_capture_device_unittest.cc", 158 "video/fake_video_capture_device_unittest.cc",
160 "video/mac/video_capture_device_factory_mac_unittest.mm", 159 "video/mac/video_capture_device_factory_mac_unittest.mm",
161 "video/video_capture_device_unittest.cc", 160 "video/video_capture_device_unittest.cc",
162 ] 161 ]
163 162
164 deps = [ 163 deps = [
165 ":capture", 164 ":capture",
166 "//base/test:run_all_unittests", 165 "//base/test:run_all_unittests",
167 "//base/test:test_support", 166 "//base/test:test_support",
168 "//media/base:test_support", 167 "//media/base:test_support",
169 "//media/mojo/interfaces:image_capture", 168 "//media/mojo/interfaces:image_capture",
170 "//testing/gmock", 169 "//testing/gmock",
171 "//testing/gtest", 170 "//testing/gtest",
172 "//ui/gfx:test_support", 171 "//ui/gfx:test_support",
173 ] 172 ]
174 173
175 if (is_android) { 174 if (is_android) {
176 deps += [ "//media/capture/video/android:capture_java" ] 175 deps += [ "//device/capture/video/android:capture_java" ]
177 } 176 }
178 177
179 if (is_win) { 178 if (is_win) {
180 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. 179 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations.
181 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 180 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
182 } 181 }
183 } 182 }
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