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

Side by Side Diff: webrtc/modules/video_capture/BUILD.gn

Issue 2992953002: Decoupling video_capture_internal_imlp from Obj-C code. (Closed)
Patch Set: Switching to rtc_source_set to remove noop.cc Created 3 years, 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("../../webrtc.gni") 9 import("../../webrtc.gni")
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 "-Wno-ignored-qualifiers", 79 "-Wno-ignored-qualifiers",
80 "-Wno-microsoft-extra-qualification", 80 "-Wno-microsoft-extra-qualification",
81 "-Wno-missing-braces", 81 "-Wno-missing-braces",
82 "-Wno-overloaded-virtual", 82 "-Wno-overloaded-virtual",
83 "-Wno-reorder", 83 "-Wno-reorder",
84 "-Wno-writable-strings", 84 "-Wno-writable-strings",
85 ] 85 ]
86 } 86 }
87 } 87 }
88 88
89 rtc_static_library("video_capture_internal_impl") { 89 if (is_ios || is_mac) {
90 rtc_source_set("video_capture_internal_impl_objc") {
91 visibility = [ ":video_capture_internal_impl" ]
92 configs += [ ":video_capture_internal_impl_warnings_config" ]
93
94 deps = [
95 ":video_capture_module",
96 "../../rtc_base:rtc_base_approved",
97 "../../system_wrappers",
98 ]
99
100 sources = [
101 "objc/device_info.h",
102 "objc/device_info.mm",
103 "objc/device_info_objc.h",
104 "objc/device_info_objc.mm",
105 "objc/rtc_video_capture_objc.h",
106 "objc/rtc_video_capture_objc.mm",
107 "objc/video_capture.h",
108 "objc/video_capture.mm",
109 ]
110
111 all_dependent_configs = [ ":video_capture_internal_impl_config" ]
112
113 if (!build_with_chromium && is_clang) {
114 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
115 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
116 }
117 }
118 }
119
120 rtc_source_set("video_capture_internal_impl") {
90 configs += [ ":video_capture_internal_impl_warnings_config" ] 121 configs += [ ":video_capture_internal_impl_warnings_config" ]
91 122
92 deps = [ 123 deps = [
93 ":video_capture_module", 124 ":video_capture_module",
94 "../../rtc_base:rtc_base_approved", 125 "../../rtc_base:rtc_base_approved",
95 "../../system_wrappers", 126 "../../system_wrappers",
96 ] 127 ]
97 128
98 if (is_linux) { 129 if (is_linux) {
99 sources = [ 130 sources = [
(...skipping 22 matching lines...) Expand all
122 "windows/video_capture_factory_windows.cc", 153 "windows/video_capture_factory_windows.cc",
123 "windows/video_capture_mf.cc", 154 "windows/video_capture_mf.cc",
124 "windows/video_capture_mf.h", 155 "windows/video_capture_mf.h",
125 ] 156 ]
126 157
127 libs = [ "Strmiids.lib" ] 158 libs = [ "Strmiids.lib" ]
128 159
129 deps += [ "//third_party/winsdk_samples" ] 160 deps += [ "//third_party/winsdk_samples" ]
130 } 161 }
131 if (is_ios || is_mac) { 162 if (is_ios || is_mac) {
132 sources = [ 163 deps += [ ":video_capture_internal_impl_objc" ]
133 "objc/device_info.h",
134 "objc/device_info.mm",
135 "objc/device_info_objc.h",
136 "objc/device_info_objc.mm",
137 "objc/rtc_video_capture_objc.h",
138 "objc/rtc_video_capture_objc.mm",
139 "objc/video_capture.h",
140 "objc/video_capture.mm",
141 ]
142 } 164 }
143 165
144 all_dependent_configs = [ ":video_capture_internal_impl_config" ] 166 all_dependent_configs = [ ":video_capture_internal_impl_config" ]
145 167
146 if (!build_with_chromium && is_clang) { 168 if (!build_with_chromium && is_clang) {
147 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 169 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
148 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 170 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
149 } 171 }
150 } 172 }
151 173
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ] 210 ]
189 deps += [ "../../test:test_main" ] 211 deps += [ "../../test:test_main" ]
190 212
191 if (!build_with_chromium && is_clang) { 213 if (!build_with_chromium && is_clang) {
192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) . 214 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163) .
193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 215 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
194 } 216 }
195 } 217 }
196 } 218 }
197 } 219 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698