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

Side by Side Diff: webrtc/system_wrappers/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/stats/BUILD.gn ('k') | webrtc/test/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 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "source/sort.cc", 68 "source/sort.cc",
69 "source/timestamp_extrapolator.cc", 69 "source/timestamp_extrapolator.cc",
70 "source/trace_impl.cc", 70 "source/trace_impl.cc",
71 "source/trace_impl.h", 71 "source/trace_impl.h",
72 "source/trace_posix.cc", 72 "source/trace_posix.cc",
73 "source/trace_posix.h", 73 "source/trace_posix.h",
74 "source/trace_win.cc", 74 "source/trace_win.cc",
75 "source/trace_win.h", 75 "source/trace_win.h",
76 ] 76 ]
77 77
78 public_configs = [ "..:common_inherited_config" ]
79
80 if (rtc_enable_data_logging) { 78 if (rtc_enable_data_logging) {
81 sources += [ "source/data_log.cc" ] 79 sources += [ "source/data_log.cc" ]
82 } else { 80 } else {
83 sources += [ "source/data_log_no_op.cc" ] 81 sources += [ "source/data_log_no_op.cc" ]
84 } 82 }
85 83
86 defines = [] 84 defines = []
87 libs = [] 85 libs = []
88 deps = [ 86 deps = [
89 "..:webrtc_common", 87 "..:webrtc_common",
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 134 }
137 135
138 deps += [ "../base:rtc_base_approved" ] 136 deps += [ "../base:rtc_base_approved" ]
139 } 137 }
140 138
141 rtc_source_set("field_trial_default") { 139 rtc_source_set("field_trial_default") {
142 sources = [ 140 sources = [
143 "include/field_trial_default.h", 141 "include/field_trial_default.h",
144 "source/field_trial_default.cc", 142 "source/field_trial_default.cc",
145 ] 143 ]
146
147 public_configs = [ "..:common_inherited_config" ]
148 } 144 }
149 145
150 rtc_source_set("metrics_default") { 146 rtc_source_set("metrics_default") {
151 sources = [ 147 sources = [
152 "include/metrics_default.h", 148 "include/metrics_default.h",
153 "source/metrics_default.cc", 149 "source/metrics_default.cc",
154 ] 150 ]
155
156 public_configs = [ "..:common_inherited_config" ]
157 } 151 }
158 152
159 rtc_source_set("system_wrappers_default") { 153 rtc_source_set("system_wrappers_default") {
160 public_configs = [ "..:common_inherited_config" ]
161
162 deps = [ 154 deps = [
163 ":field_trial_default", 155 ":field_trial_default",
164 ":metrics_default", 156 ":metrics_default",
165 ":system_wrappers", 157 ":system_wrappers",
166 ] 158 ]
167 } 159 }
168 160
169 if (is_android) { 161 if (is_android) {
170 rtc_source_set("cpu_features_android") { 162 rtc_source_set("cpu_features_android") {
171 sources = [ 163 sources = [
172 "source/cpu_features_android.c", 164 "source/cpu_features_android.c",
173 ] 165 ]
174 166
175 public_configs = [ "..:common_inherited_config" ]
176 deps = [ 167 deps = [
177 "//third_party/android_tools:cpu_features", 168 "//third_party/android_tools:cpu_features",
178 ] 169 ]
179 } 170 }
180 } 171 }
181 172
182 if (is_linux) { 173 if (is_linux) {
183 rtc_source_set("cpu_features_linux") { 174 rtc_source_set("cpu_features_linux") {
184 sources = [ 175 sources = [
185 "source/cpu_features_linux.c", 176 "source/cpu_features_linux.c",
186 ] 177 ]
187
188 public_configs = [ "..:common_inherited_config" ]
189 } 178 }
190 } 179 }
191 180
192 if (rtc_include_tests) { 181 if (rtc_include_tests) {
193 rtc_test("system_wrappers_unittests") { 182 rtc_test("system_wrappers_unittests") {
194 testonly = true 183 testonly = true
195 sources = [ 184 sources = [
196 "source/aligned_array_unittest.cc", 185 "source/aligned_array_unittest.cc",
197 "source/aligned_malloc_unittest.cc", 186 "source/aligned_malloc_unittest.cc",
198 "source/clock_unittest.cc", 187 "source/clock_unittest.cc",
(...skipping 11 matching lines...) Expand all
210 "source/stl_util_unittest.cc", 199 "source/stl_util_unittest.cc",
211 "source/stringize_macros_unittest.cc", 200 "source/stringize_macros_unittest.cc",
212 ] 201 ]
213 if (rtc_enable_data_logging) { 202 if (rtc_enable_data_logging) {
214 sources += [ 203 sources += [
215 "source/data_log_unittest.cc", 204 "source/data_log_unittest.cc",
216 "source/data_log_unittest_disabled.cc", 205 "source/data_log_unittest_disabled.cc",
217 ] 206 ]
218 } 207 }
219 208
220 public_configs = [ "..:common_inherited_config" ]
221
222 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 209 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
223 210
224 if (is_clang) { 211 if (is_clang) {
225 # Suppress warnings from Chrome's Clang plugins. 212 # Suppress warnings from Chrome's Clang plugins.
226 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 213 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
227 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 214 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
228 } 215 }
229 216
230 deps = [ 217 deps = [
231 ":metrics_default", 218 ":metrics_default",
232 ":system_wrappers", 219 ":system_wrappers",
233 "../test:test_support_main", 220 "../test:test_support_main",
234 "//testing/gtest", 221 "//testing/gtest",
235 ] 222 ]
236 223
237 if (is_android) { 224 if (is_android) {
238 deps += [ "//testing/android/native_test:native_test_support" ] 225 deps += [ "//testing/android/native_test:native_test_support" ]
239 226
240 shard_timeout = 900 227 shard_timeout = 900
241 } 228 }
242 } 229 }
243 } 230 }
OLDNEW
« no previous file with comments | « webrtc/stats/BUILD.gn ('k') | webrtc/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698