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