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

Side by Side Diff: webrtc/system_wrappers/BUILD.gn

Issue 2025343002: GN: Add system_wrappers_unittests, tools and tools_unittests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased 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 | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/system_wrappers/system_wrappers_tests.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 (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/config/android/config.gni") 9 if (is_android) {
10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni")
12 }
13 import("//testing/test.gni")
10 import("../build/webrtc.gni") 14 import("../build/webrtc.gni")
11 15
12 static_library("system_wrappers") { 16 source_set("system_wrappers") {
13 sources = [ 17 sources = [
14 "include/aligned_array.h", 18 "include/aligned_array.h",
15 "include/aligned_malloc.h", 19 "include/aligned_malloc.h",
16 "include/atomic32.h", 20 "include/atomic32.h",
17 "include/clock.h", 21 "include/clock.h",
18 "include/cpu_features_wrapper.h", 22 "include/cpu_features_wrapper.h",
19 "include/cpu_info.h", 23 "include/cpu_info.h",
20 "include/critical_section_wrapper.h", 24 "include/critical_section_wrapper.h",
21 "include/data_log.h", 25 "include/data_log.h",
22 "include/data_log_c.h", 26 "include/data_log_c.h",
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 if (is_linux) { 185 if (is_linux) {
182 source_set("cpu_features_linux") { 186 source_set("cpu_features_linux") {
183 sources = [ 187 sources = [
184 "source/cpu_features_linux.c", 188 "source/cpu_features_linux.c",
185 ] 189 ]
186 190
187 configs += [ "..:common_config" ] 191 configs += [ "..:common_config" ]
188 public_configs = [ "..:common_inherited_config" ] 192 public_configs = [ "..:common_inherited_config" ]
189 } 193 }
190 } 194 }
195
196 test("system_wrappers_unittests") {
197 testonly = true
198 sources = [
199 "source/aligned_array_unittest.cc",
200 "source/aligned_malloc_unittest.cc",
201 "source/clock_unittest.cc",
202 "source/condition_variable_unittest.cc",
203 "source/critical_section_unittest.cc",
204 "source/data_log_c_helpers_unittest.c",
205 "source/data_log_c_helpers_unittest.h",
206 "source/data_log_helpers_unittest.cc",
207 "source/event_timer_posix_unittest.cc",
208 "source/logging_unittest.cc",
209 "source/metrics_default_unittest.cc",
210 "source/metrics_unittest.cc",
211 "source/ntp_time_unittest.cc",
212 "source/rtp_to_ntp_unittest.cc",
213 "source/stl_util_unittest.cc",
214 "source/stringize_macros_unittest.cc",
215 ]
216 if (rtc_enable_data_logging) {
217 sources += [
218 "source/data_log_unittest.cc",
219 "source/data_log_unittest_disabled.cc",
220 ]
221 }
222
223 configs += [ "..:common_config" ]
224 public_configs = [ "..:common_inherited_config" ]
225
226 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
227
228 if (is_clang) {
229 # Suppress warnings from Chrome's Clang plugins.
230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
231 configs -= [ "//build/config/clang:find_bad_constructs" ]
232 }
233
234 deps = [
235 ":metrics_default",
236 ":system_wrappers",
237 "../test:test_support_main",
238 "//testing/gtest",
239 ]
240
241 if (is_android) {
242 deps += [ "//testing/android/native_test:native_test_support" ]
243 }
244 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/BUILD.gn ('k') | webrtc/system_wrappers/system_wrappers_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698