| 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 source_set("capture") { | 9 component("capture") { |
| 10 defines = [ "CAPTURE_IMPLEMENTATION" ] |
| 10 sources = [ | 11 sources = [ |
| 12 "capture_export.h", |
| 11 "content/animated_content_sampler.cc", | 13 "content/animated_content_sampler.cc", |
| 12 "content/animated_content_sampler.h", | 14 "content/animated_content_sampler.h", |
| 13 "content/capture_resolution_chooser.cc", | 15 "content/capture_resolution_chooser.cc", |
| 14 "content/capture_resolution_chooser.h", | 16 "content/capture_resolution_chooser.h", |
| 15 "content/feedback_signal_accumulator.h", | 17 "content/feedback_signal_accumulator.h", |
| 16 "content/screen_capture_device_core.cc", | 18 "content/screen_capture_device_core.cc", |
| 17 "content/screen_capture_device_core.h", | 19 "content/screen_capture_device_core.h", |
| 18 "content/smooth_event_sampler.cc", | 20 "content/smooth_event_sampler.cc", |
| 19 "content/smooth_event_sampler.h", | 21 "content/smooth_event_sampler.h", |
| 20 "content/thread_safe_capture_oracle.cc", | 22 "content/thread_safe_capture_oracle.cc", |
| 21 "content/thread_safe_capture_oracle.h", | 23 "content/thread_safe_capture_oracle.h", |
| 22 "content/video_capture_oracle.cc", | 24 "content/video_capture_oracle.cc", |
| 23 "content/video_capture_oracle.h", | 25 "content/video_capture_oracle.h", |
| 24 "device_monitor_mac.h", | 26 "device_monitor_mac.h", |
| 25 "device_monitor_mac.mm", | 27 "device_monitor_mac.mm", |
| 26 "system_message_window_win.cc", | 28 "system_message_window_win.cc", |
| 27 "system_message_window_win.h", | 29 "system_message_window_win.h", |
| 28 "video/android/video_capture_device_android.cc", | |
| 29 "video/android/video_capture_device_android.h", | |
| 30 "video/android/video_capture_device_factory_android.cc", | |
| 31 "video/android/video_capture_device_factory_android.h", | |
| 32 "video/fake_video_capture_device.cc", | 30 "video/fake_video_capture_device.cc", |
| 33 "video/fake_video_capture_device.h", | 31 "video/fake_video_capture_device.h", |
| 34 "video/fake_video_capture_device_factory.cc", | 32 "video/fake_video_capture_device_factory.cc", |
| 35 "video/fake_video_capture_device_factory.h", | 33 "video/fake_video_capture_device_factory.h", |
| 36 "video/file_video_capture_device.cc", | 34 "video/file_video_capture_device.cc", |
| 37 "video/file_video_capture_device.h", | 35 "video/file_video_capture_device.h", |
| 38 "video/file_video_capture_device_factory.cc", | 36 "video/file_video_capture_device_factory.cc", |
| 39 "video/file_video_capture_device_factory.h", | 37 "video/file_video_capture_device_factory.h", |
| 40 "video/linux/v4l2_capture_delegate.cc", | 38 "video/linux/v4l2_capture_delegate.cc", |
| 41 "video/linux/video_capture_device_chromeos.cc", | 39 "video/linux/video_capture_device_chromeos.cc", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 "video/win/video_capture_device_factory_win.h", | 72 "video/win/video_capture_device_factory_win.h", |
| 75 "video/win/video_capture_device_mf_win.cc", | 73 "video/win/video_capture_device_mf_win.cc", |
| 76 "video/win/video_capture_device_mf_win.h", | 74 "video/win/video_capture_device_mf_win.h", |
| 77 "video/win/video_capture_device_win.cc", | 75 "video/win/video_capture_device_win.cc", |
| 78 "video/win/video_capture_device_win.h", | 76 "video/win/video_capture_device_win.h", |
| 79 ] | 77 ] |
| 80 | 78 |
| 81 public_deps = [] | 79 public_deps = [] |
| 82 deps = [ | 80 deps = [ |
| 83 "//base", | 81 "//base", |
| 84 "//media/base", | 82 "//base:i18n", |
| 83 "//media", |
| 85 "//skia", | 84 "//skia", |
| 86 "//ui/display", | 85 "//ui/display", |
| 86 "//ui/gfx", |
| 87 ] | 87 ] |
| 88 | 88 |
| 89 configs += [ | 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. |
| 90 "//media:media_implementation", | 94 "//media:media_implementation", |
| 91 | 95 |
| 92 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. | 96 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. |
| 93 "//build/config/compiler:no_size_t_to_int_warning", | 97 "//build/config/compiler:no_size_t_to_int_warning", |
| 94 ] | 98 ] |
| 95 | 99 |
| 96 if (is_android) { | 100 if (is_android) { |
| 97 public_deps += [ "video/android" ] | 101 public_deps += [ |
| 102 "video/android", |
| 103 "video/android:capture_java", |
| 104 ] |
| 98 deps += [ "video/android:capture_jni_headers" ] | 105 deps += [ "video/android:capture_jni_headers" ] |
| 99 } | 106 } |
| 100 | 107 |
| 101 if (is_mac) { | 108 if (is_mac) { |
| 102 deps += [ "//third_party/decklink" ] | 109 deps += [ "//third_party/decklink" ] |
| 103 libs = [ | 110 libs = [ |
| 104 "CoreFoundation.framework", | 111 "CoreFoundation.framework", |
| 105 "CoreGraphics.framework", | 112 "CoreGraphics.framework", |
| 106 "Foundation.framework", | 113 "Foundation.framework", |
| 107 ] | 114 ] |
| 108 } | 115 } |
| 109 | 116 |
| 110 if (use_udev) { | 117 if (use_udev) { |
| 111 deps += [ "//device/udev_linux" ] | 118 deps += [ "//device/udev_linux" ] |
| 112 sources += [ | 119 sources += [ |
| 113 "device_monitor_udev.cc", | 120 "device_monitor_udev.cc", |
| 114 "device_monitor_udev.h", | 121 "device_monitor_udev.h", |
| 115 ] | 122 ] |
| 116 } | 123 } |
| 117 | 124 |
| 118 if (is_win) { | 125 if (is_win) { |
| 119 public_deps += [ "//media/base/win" ] | 126 deps += [ |
| 127 "//media/base", # For media_switches. |
| 128 "//media/base/win", |
| 129 ] |
| 120 libs = [ | 130 libs = [ |
| 121 "mf.lib", | 131 "mf.lib", |
| 122 "mfplat.lib", | 132 "mfplat.lib", |
| 123 "mfreadwrite.lib", | 133 "mfreadwrite.lib", |
| 124 "mfuuid.lib", | 134 "mfuuid.lib", |
| 125 ] | 135 ] |
| 126 | |
| 127 ldflags = [ | 136 ldflags = [ |
| 128 "/DELAYLOAD:mf.dll", | 137 "/DELAYLOAD:mf.dll", |
| 129 "/DELAYLOAD:mfplat.dll", | 138 "/DELAYLOAD:mfplat.dll", |
| 130 "/DELAYLOAD:mfreadwrite.dll", | 139 "/DELAYLOAD:mfreadwrite.dll", |
| 131 ] | 140 ] |
| 132 } | 141 } |
| 133 } | 142 } |
| 134 | 143 |
| 144 # TODO(mcasas): Make this a test target, https://crbug.com/618718. |
| 135 source_set("unittests") { | 145 source_set("unittests") { |
| 136 testonly = true | 146 testonly = true |
| 137 | 147 |
| 138 sources = [ | 148 sources = [ |
| 139 "content/animated_content_sampler_unittest.cc", | 149 "content/animated_content_sampler_unittest.cc", |
| 140 "content/capture_resolution_chooser_unittest.cc", | 150 "content/capture_resolution_chooser_unittest.cc", |
| 141 "content/feedback_signal_accumulator_unittest.cc", | 151 "content/feedback_signal_accumulator_unittest.cc", |
| 142 "content/smooth_event_sampler_unittest.cc", | 152 "content/smooth_event_sampler_unittest.cc", |
| 143 "content/video_capture_oracle_unittest.cc", | 153 "content/video_capture_oracle_unittest.cc", |
| 144 "system_message_window_win_unittest.cc", | 154 "system_message_window_win_unittest.cc", |
| 145 "video/fake_video_capture_device_unittest.cc", | 155 "video/fake_video_capture_device_unittest.cc", |
| 146 "video/mac/video_capture_device_factory_mac_unittest.mm", | 156 "video/mac/video_capture_device_factory_mac_unittest.mm", |
| 147 "video/video_capture_device_unittest.cc", | 157 "video/video_capture_device_unittest.cc", |
| 148 ] | 158 ] |
| 149 | 159 |
| 150 deps = [ | 160 deps = [ |
| 151 "//media/base:unittests", | 161 ":capture", |
| 152 "//testing/gmock", | 162 "//testing/gmock", |
| 153 "//testing/gtest", | 163 "//testing/gtest", |
| 154 ] | 164 ] |
| 155 | 165 |
| 156 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. | 166 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. |
| 157 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 167 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 158 } | 168 } |
| OLD | NEW |