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

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

Issue 2059493002: Revert of Make media/capture gn and gyps produce components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « media/base/win/mf_initializer_export.h ('k') | media/capture/capture.gyp » ('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 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/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",
30 "video/fake_video_capture_device.cc", 32 "video/fake_video_capture_device.cc",
31 "video/fake_video_capture_device.h", 33 "video/fake_video_capture_device.h",
32 "video/fake_video_capture_device_factory.cc", 34 "video/fake_video_capture_device_factory.cc",
33 "video/fake_video_capture_device_factory.h", 35 "video/fake_video_capture_device_factory.h",
34 "video/file_video_capture_device.cc", 36 "video/file_video_capture_device.cc",
35 "video/file_video_capture_device.h", 37 "video/file_video_capture_device.h",
36 "video/file_video_capture_device_factory.cc", 38 "video/file_video_capture_device_factory.cc",
37 "video/file_video_capture_device_factory.h", 39 "video/file_video_capture_device_factory.h",
38 "video/linux/v4l2_capture_delegate.cc", 40 "video/linux/v4l2_capture_delegate.cc",
39 "video/linux/video_capture_device_chromeos.cc", 41 "video/linux/video_capture_device_chromeos.cc",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 "video/win/video_capture_device_factory_win.h", 74 "video/win/video_capture_device_factory_win.h",
73 "video/win/video_capture_device_mf_win.cc", 75 "video/win/video_capture_device_mf_win.cc",
74 "video/win/video_capture_device_mf_win.h", 76 "video/win/video_capture_device_mf_win.h",
75 "video/win/video_capture_device_win.cc", 77 "video/win/video_capture_device_win.cc",
76 "video/win/video_capture_device_win.h", 78 "video/win/video_capture_device_win.h",
77 ] 79 ]
78 80
79 public_deps = [] 81 public_deps = []
80 deps = [ 82 deps = [
81 "//base", 83 "//base",
82 "//base:i18n", 84 "//media/base",
83 "//media",
84 "//skia", 85 "//skia",
85 "//ui/display", 86 "//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.
94 "//media:media_implementation", 90 "//media:media_implementation",
95 91
96 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. 92 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors.
97 "//build/config/compiler:no_size_t_to_int_warning", 93 "//build/config/compiler:no_size_t_to_int_warning",
98 ] 94 ]
99 95
100 if (is_android) { 96 if (is_android) {
101 public_deps += [ 97 public_deps += [ "video/android" ]
102 "video/android",
103 "video/android:capture_java",
104 ]
105 deps += [ "video/android:capture_jni_headers" ] 98 deps += [ "video/android:capture_jni_headers" ]
106 } 99 }
107 100
108 if (is_mac) { 101 if (is_mac) {
109 deps += [ "//third_party/decklink" ] 102 deps += [ "//third_party/decklink" ]
110 libs = [ 103 libs = [
111 "CoreFoundation.framework", 104 "CoreFoundation.framework",
112 "CoreGraphics.framework", 105 "CoreGraphics.framework",
113 "Foundation.framework", 106 "Foundation.framework",
114 ] 107 ]
115 } 108 }
116 109
117 if (use_udev) { 110 if (use_udev) {
118 deps += [ "//device/udev_linux" ] 111 deps += [ "//device/udev_linux" ]
119 sources += [ 112 sources += [
120 "device_monitor_udev.cc", 113 "device_monitor_udev.cc",
121 "device_monitor_udev.h", 114 "device_monitor_udev.h",
122 ] 115 ]
123 } 116 }
124 117
125 if (is_win) { 118 if (is_win) {
126 deps += [ 119 public_deps += [ "//media/base/win" ]
127 "//media/base", # For media_switches.
128 "//media/base/win",
129 ]
130 libs = [ 120 libs = [
131 "mf.lib", 121 "mf.lib",
132 "mfplat.lib", 122 "mfplat.lib",
133 "mfreadwrite.lib", 123 "mfreadwrite.lib",
134 "mfuuid.lib", 124 "mfuuid.lib",
135 ] 125 ]
126
136 ldflags = [ 127 ldflags = [
137 "/DELAYLOAD:mf.dll", 128 "/DELAYLOAD:mf.dll",
138 "/DELAYLOAD:mfplat.dll", 129 "/DELAYLOAD:mfplat.dll",
139 "/DELAYLOAD:mfreadwrite.dll", 130 "/DELAYLOAD:mfreadwrite.dll",
140 ] 131 ]
141 } 132 }
142 } 133 }
143 134
144 # TODO(mcasas): Make this a test target, https://crbug.com/618718.
145 source_set("unittests") { 135 source_set("unittests") {
146 testonly = true 136 testonly = true
147 137
148 sources = [ 138 sources = [
149 "content/animated_content_sampler_unittest.cc", 139 "content/animated_content_sampler_unittest.cc",
150 "content/capture_resolution_chooser_unittest.cc", 140 "content/capture_resolution_chooser_unittest.cc",
151 "content/feedback_signal_accumulator_unittest.cc", 141 "content/feedback_signal_accumulator_unittest.cc",
152 "content/smooth_event_sampler_unittest.cc", 142 "content/smooth_event_sampler_unittest.cc",
153 "content/video_capture_oracle_unittest.cc", 143 "content/video_capture_oracle_unittest.cc",
154 "system_message_window_win_unittest.cc", 144 "system_message_window_win_unittest.cc",
155 "video/fake_video_capture_device_unittest.cc", 145 "video/fake_video_capture_device_unittest.cc",
156 "video/mac/video_capture_device_factory_mac_unittest.mm", 146 "video/mac/video_capture_device_factory_mac_unittest.mm",
157 "video/video_capture_device_unittest.cc", 147 "video/video_capture_device_unittest.cc",
158 ] 148 ]
159 149
160 deps = [ 150 deps = [
161 ":capture", 151 "//media/base:unittests",
162 "//testing/gmock", 152 "//testing/gmock",
163 "//testing/gtest", 153 "//testing/gtest",
164 ] 154 ]
165 155
166 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors. 156 # TODO(mcasas): Fix size_t to int truncation warning-treated-as-errors.
167 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 157 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
168 } 158 }
OLDNEW
« no previous file with comments | « media/base/win/mf_initializer_export.h ('k') | media/capture/capture.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698