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

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

Issue 2311843002: GN Templates: Move common_inherited_config to the template. (Closed)
Patch Set: Added comment for rtc_common_inherited_config. Created 4 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 | « webrtc/modules/utility/BUILD.gn ('k') | webrtc/modules/video_coding/BUILD.gn » ('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 (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("../../build/webrtc.gni") 9 import("../../build/webrtc.gni")
10 10
(...skipping 15 matching lines...) Expand all
26 "video_capture_impl.h", 26 "video_capture_impl.h",
27 ] 27 ]
28 28
29 deps = [ 29 deps = [
30 "../..:webrtc_common", 30 "../..:webrtc_common",
31 "../../common_video", 31 "../../common_video",
32 "../../system_wrappers", 32 "../../system_wrappers",
33 "../utility", 33 "../utility",
34 ] 34 ]
35 35
36 public_configs = [ "../..:common_inherited_config" ]
37
38 if (is_clang) { 36 if (is_clang) {
39 # Suppress warnings from Chrome's Clang plugins. 37 # Suppress warnings from Chrome's Clang plugins.
40 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 38 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
41 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 39 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
42 } 40 }
43 } 41 }
44 42
45 rtc_source_set("video_capture") { 43 rtc_source_set("video_capture") {
46 sources = [ 44 sources = [
47 "external/device_info_external.cc", 45 "external/device_info_external.cc",
48 "external/video_capture_external.cc", 46 "external/video_capture_external.cc",
49 ] 47 ]
50 48
51 deps = [ 49 deps = [
52 ":video_capture_module", 50 ":video_capture_module",
53 "../../system_wrappers", 51 "../../system_wrappers",
54 ] 52 ]
55 53
56 public_configs = [ "../..:common_inherited_config" ]
57
58 if (is_clang) { 54 if (is_clang) {
59 # Suppress warnings from Chrome's Clang plugins. 55 # Suppress warnings from Chrome's Clang plugins.
60 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 56 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
61 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
62 } 58 }
63 } 59 }
64 60
65 if (!build_with_chromium) { 61 if (!build_with_chromium) {
66 config("video_capture_internal_impl_config") { 62 config("video_capture_internal_impl_config") {
67 if (is_ios) { 63 if (is_ios) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 166
171 # To avoid warnings for deprecated videoMinFrameDuration and 167 # To avoid warnings for deprecated videoMinFrameDuration and
172 # videoMaxFrameDuration properties in iOS 7.0. 168 # videoMaxFrameDuration properties in iOS 7.0.
173 # See webrtc:3705 for more details. 169 # See webrtc:3705 for more details.
174 "-Wno-deprecated-declarations", 170 "-Wno-deprecated-declarations",
175 ] 171 ]
176 } 172 }
177 173
178 all_dependent_configs = [ ":video_capture_internal_impl_config" ] 174 all_dependent_configs = [ ":video_capture_internal_impl_config" ]
179 175
180 public_configs = [ "../..:common_inherited_config" ]
181
182 if (is_clang) { 176 if (is_clang) {
183 # Suppress warnings from Chrome's Clang plugins. 177 # Suppress warnings from Chrome's Clang plugins.
184 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 178 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
185 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 179 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
186 } 180 }
187 } 181 }
188 182
189 if (!is_android && rtc_include_tests) { 183 if (!is_android && rtc_include_tests) {
190 rtc_test("video_capture_tests") { 184 rtc_test("video_capture_tests") {
191 sources = [ 185 sources = [
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 222 }
229 223
230 if (is_clang) { 224 if (is_clang) {
231 # Suppress warnings from Chrome's Clang plugins. 225 # Suppress warnings from Chrome's Clang plugins.
232 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 226 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
233 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 227 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
234 } 228 }
235 } 229 }
236 } 230 }
237 } 231 }
OLDNEW
« no previous file with comments | « webrtc/modules/utility/BUILD.gn ('k') | webrtc/modules/video_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698