Chromium Code Reviews| 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 group("capture") { |
| 10 public_deps = [ | |
| 11 ":capture_lib", | |
| 12 "//media/capture/mojo:capture_types", | |
| 13 "//services/service_manager/public/cpp", | |
| 14 ] | |
| 15 } | |
| 16 | |
| 17 # Things needed by //media/capture/mojo:capture_types. | |
| 18 component("capture_base") { | |
| 10 defines = [ "CAPTURE_IMPLEMENTATION" ] | 19 defines = [ "CAPTURE_IMPLEMENTATION" ] |
| 11 sources = [ | 20 sources = [ |
| 12 "capture_export.h", | 21 "capture_export.h", |
| 22 "video_capture_types.cc", | |
| 23 "video_capture_types.h", | |
| 24 ] | |
| 25 deps = [ | |
| 26 "//base", | |
| 27 "//base:i18n", | |
| 28 "//media", | |
|
miu
2017/02/14 00:41:27
Is all of //media needed, or just //media:base?
chfremer
2017/02/14 21:15:16
//media:base is a non-public part of //media, so w
| |
| 29 "//ui/gfx", | |
| 30 ] | |
| 31 } | |
| 32 | |
| 33 component("capture_lib") { | |
| 34 defines = [ "CAPTURE_IMPLEMENTATION" ] | |
| 35 sources = [ | |
| 13 "content/animated_content_sampler.cc", | 36 "content/animated_content_sampler.cc", |
| 14 "content/animated_content_sampler.h", | 37 "content/animated_content_sampler.h", |
| 15 "content/capture_resolution_chooser.cc", | 38 "content/capture_resolution_chooser.cc", |
| 16 "content/capture_resolution_chooser.h", | 39 "content/capture_resolution_chooser.h", |
| 17 "content/screen_capture_device_core.cc", | 40 "content/screen_capture_device_core.cc", |
| 18 "content/screen_capture_device_core.h", | 41 "content/screen_capture_device_core.h", |
| 19 "content/smooth_event_sampler.cc", | 42 "content/smooth_event_sampler.cc", |
| 20 "content/smooth_event_sampler.h", | 43 "content/smooth_event_sampler.h", |
| 21 "content/thread_safe_capture_oracle.cc", | 44 "content/thread_safe_capture_oracle.cc", |
| 22 "content/thread_safe_capture_oracle.h", | 45 "content/thread_safe_capture_oracle.h", |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 "video/win/sink_filter_win.cc", | 102 "video/win/sink_filter_win.cc", |
| 80 "video/win/sink_filter_win.h", | 103 "video/win/sink_filter_win.h", |
| 81 "video/win/sink_input_pin_win.cc", | 104 "video/win/sink_input_pin_win.cc", |
| 82 "video/win/sink_input_pin_win.h", | 105 "video/win/sink_input_pin_win.h", |
| 83 "video/win/video_capture_device_factory_win.cc", | 106 "video/win/video_capture_device_factory_win.cc", |
| 84 "video/win/video_capture_device_factory_win.h", | 107 "video/win/video_capture_device_factory_win.h", |
| 85 "video/win/video_capture_device_mf_win.cc", | 108 "video/win/video_capture_device_mf_win.cc", |
| 86 "video/win/video_capture_device_mf_win.h", | 109 "video/win/video_capture_device_mf_win.h", |
| 87 "video/win/video_capture_device_win.cc", | 110 "video/win/video_capture_device_win.cc", |
| 88 "video/win/video_capture_device_win.h", | 111 "video/win/video_capture_device_win.h", |
| 89 "video_capture_types.cc", | |
| 90 "video_capture_types.h", | |
| 91 "video_capturer_source.cc", | 112 "video_capturer_source.cc", |
| 92 "video_capturer_source.h", | 113 "video_capturer_source.h", |
| 93 ] | 114 ] |
| 94 | 115 |
| 95 public_deps = [] | 116 public_deps = [ |
| 117 ":capture_base", | |
| 118 ] | |
| 119 | |
| 96 deps = [ | 120 deps = [ |
| 97 "//base", | 121 "//base", |
| 98 "//base:i18n", | 122 "//base:i18n", |
| 99 "//media", | 123 "//media", |
|
miu
2017/02/14 00:41:27
ditto: All of //media, or just one or two subtarge
chfremer
2017/02/14 21:15:16
same as above
| |
| 124 "//media/capture/mojo:capture_types", | |
| 100 "//media/capture/mojo:image_capture", | 125 "//media/capture/mojo:image_capture", |
| 101 "//skia", | 126 "//media/mojo/interfaces:interfaces", |
| 127 "//services/service_manager/public/cpp", | |
| 102 "//third_party/libyuv", | 128 "//third_party/libyuv", |
| 103 "//ui/display", | 129 "//ui/display", |
| 104 "//ui/gfx", | 130 "//ui/gfx", |
| 105 ] | 131 ] |
| 106 | 132 |
| 107 configs += [ | |
| 108 # TODO(mcasas): media/base should be a component and not a source_set, but | |
| 109 # it depends on parts of media/filters, media/ffmpeg etc. Until then, we | |
| 110 # pretend to be inside media.dll and duplicate the few symbols needed, see | |
| 111 # https://crbug.com/590017. | |
| 112 "//media:media_implementation", | |
| 113 ] | |
| 114 | |
| 115 if (is_android) { | 133 if (is_android) { |
| 116 public_deps += [ | 134 public_deps += [ |
| 117 "content/android", | 135 "content/android", |
| 118 "video/android", | 136 "video/android", |
| 119 ] | 137 ] |
| 120 deps += [ | 138 deps += [ |
| 121 "content/android:screen_capture_jni_headers", | 139 "content/android:screen_capture_jni_headers", |
| 122 "video/android:capture_jni_headers", | 140 "video/android:capture_jni_headers", |
| 123 ] | 141 ] |
| 124 } | 142 } |
| 125 | 143 |
| 126 if (is_mac) { | 144 if (is_mac) { |
| 127 deps += [ "//third_party/decklink" ] | 145 deps += [ "//third_party/decklink" ] |
| 128 libs = [ | 146 libs = [ |
| 129 "AVFoundation.framework", | 147 "AVFoundation.framework", |
| 130 "CoreFoundation.framework", | 148 "CoreFoundation.framework", |
| 131 "CoreGraphics.framework", | 149 "CoreGraphics.framework", |
| 132 "CoreMedia.framework", | 150 "CoreMedia.framework", |
| 133 "CoreVideo.framework", | 151 "CoreVideo.framework", |
| 134 "Foundation.framework", | 152 "Foundation.framework", |
| 135 ] | 153 ] |
| 136 } | 154 } |
| 137 | 155 |
| 138 if (is_win) { | 156 if (is_win) { |
| 139 deps += [ | 157 deps += [ "//media/base/win" ] |
| 140 "//media/base", # For media_switches. | |
| 141 "//media/base/win", | |
| 142 ] | |
| 143 libs = [ | 158 libs = [ |
| 144 "mf.lib", | 159 "mf.lib", |
| 145 "mfplat.lib", | 160 "mfplat.lib", |
| 146 "mfreadwrite.lib", | 161 "mfreadwrite.lib", |
| 147 "mfuuid.lib", | 162 "mfuuid.lib", |
| 148 ] | 163 ] |
| 149 ldflags = [ | 164 ldflags = [ |
| 150 "/DELAYLOAD:mf.dll", | 165 "/DELAYLOAD:mf.dll", |
| 151 "/DELAYLOAD:mfplat.dll", | 166 "/DELAYLOAD:mfplat.dll", |
| 152 "/DELAYLOAD:mfreadwrite.dll", | 167 "/DELAYLOAD:mfreadwrite.dll", |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 167 test("capture_unittests") { | 182 test("capture_unittests") { |
| 168 sources = [ | 183 sources = [ |
| 169 "content/animated_content_sampler_unittest.cc", | 184 "content/animated_content_sampler_unittest.cc", |
| 170 "content/capture_resolution_chooser_unittest.cc", | 185 "content/capture_resolution_chooser_unittest.cc", |
| 171 "content/smooth_event_sampler_unittest.cc", | 186 "content/smooth_event_sampler_unittest.cc", |
| 172 "content/video_capture_oracle_unittest.cc", | 187 "content/video_capture_oracle_unittest.cc", |
| 173 "video/fake_video_capture_device_unittest.cc", | 188 "video/fake_video_capture_device_unittest.cc", |
| 174 "video/linux/camera_config_chromeos_unittest.cc", | 189 "video/linux/camera_config_chromeos_unittest.cc", |
| 175 "video/linux/v4l2_capture_delegate_unittest.cc", | 190 "video/linux/v4l2_capture_delegate_unittest.cc", |
| 176 "video/mac/video_capture_device_factory_mac_unittest.mm", | 191 "video/mac/video_capture_device_factory_mac_unittest.mm", |
| 192 "video/video_capture_device_client_unittest.cc", | |
| 177 "video/video_capture_device_unittest.cc", | 193 "video/video_capture_device_unittest.cc", |
| 178 ] | 194 ] |
| 179 | 195 |
| 180 deps = [ | 196 deps = [ |
| 181 ":capture", | 197 ":capture", |
| 182 "//base/test:run_all_unittests", | 198 "//base/test:run_all_unittests", |
| 183 "//base/test:test_support", | 199 "//base/test:test_support", |
| 200 "//media", | |
|
miu
2017/02/14 00:41:27
ditto
chfremer
2017/02/14 21:15:16
same as above
| |
| 184 "//media/base:test_support", | 201 "//media/base:test_support", |
| 185 "//media/capture/mojo:image_capture", | 202 "//media/capture/mojo:image_capture", |
| 186 "//testing/gmock", | 203 "//testing/gmock", |
| 187 "//testing/gtest", | 204 "//testing/gtest", |
| 188 "//ui/gfx:test_support", | 205 "//ui/gfx:test_support", |
| 189 ] | 206 ] |
| 190 | 207 |
| 191 if (is_android) { | 208 if (is_android) { |
| 192 deps += [ | 209 deps += [ |
| 193 "//media/capture/video/android", | 210 "//media/capture/video/android", |
| 194 "//media/capture/video/android:capture_java", | 211 "//media/capture/video/android:capture_java", |
| 195 ] | 212 ] |
| 196 } | 213 } |
| 197 | 214 |
| 198 if (is_win) { | 215 if (is_win) { |
| 199 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. | 216 # TODO(jschuh): https://crbug.com/167187 fix size_t to int truncations. |
| 200 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 217 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 201 } | 218 } |
| 202 } | 219 } |
| OLD | NEW |