| OLD | NEW |
| 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") |
| 11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
| 12 } | 12 } |
| 13 import("../webrtc.gni") | 13 import("../webrtc.gni") |
| 14 | 14 |
| 15 rtc_static_library("system_wrappers") { | 15 rtc_static_library("system_wrappers") { |
| 16 sources = [ | 16 sources = [ |
| 17 "include/aligned_array.h", | 17 "include/aligned_array.h", |
| 18 "include/aligned_malloc.h", | 18 "include/aligned_malloc.h", |
| 19 "include/atomic32.h", | 19 "include/atomic32.h", |
| 20 "include/clock.h", | 20 "include/clock.h", |
| 21 "include/cpu_features_wrapper.h", | 21 "include/cpu_features_wrapper.h", |
| 22 "include/cpu_info.h", | 22 "include/cpu_info.h", |
| 23 "include/event_wrapper.h", | 23 "include/event_wrapper.h", |
| 24 "include/field_trial.h", | 24 "include/field_trial.h", |
| 25 "include/file_wrapper.h", | 25 "include/file_wrapper.h", |
| 26 "include/fix_interlocked_exchange_pointer_win.h", | 26 "include/fix_interlocked_exchange_pointer_win.h", |
| 27 "include/logging.h", | |
| 28 "include/metrics.h", | 27 "include/metrics.h", |
| 29 "include/ntp_time.h", | 28 "include/ntp_time.h", |
| 30 "include/rtp_to_ntp_estimator.h", | 29 "include/rtp_to_ntp_estimator.h", |
| 31 "include/rw_lock_wrapper.h", | 30 "include/rw_lock_wrapper.h", |
| 32 "include/sleep.h", | 31 "include/sleep.h", |
| 33 "include/static_instance.h", | 32 "include/static_instance.h", |
| 34 "include/stringize_macros.h", | 33 "include/stringize_macros.h", |
| 35 "include/timestamp_extrapolator.h", | 34 "include/timestamp_extrapolator.h", |
| 36 "include/trace.h", | 35 "include/trace.h", |
| 37 "source/aligned_malloc.cc", | 36 "source/aligned_malloc.cc", |
| 38 "source/atomic32_win.cc", | 37 "source/atomic32_win.cc", |
| 39 "source/clock.cc", | 38 "source/clock.cc", |
| 40 "source/cpu_features.cc", | 39 "source/cpu_features.cc", |
| 41 "source/cpu_info.cc", | 40 "source/cpu_info.cc", |
| 42 "source/event.cc", | 41 "source/event.cc", |
| 43 "source/event_timer_posix.cc", | 42 "source/event_timer_posix.cc", |
| 44 "source/event_timer_posix.h", | 43 "source/event_timer_posix.h", |
| 45 "source/event_timer_win.cc", | 44 "source/event_timer_win.cc", |
| 46 "source/event_timer_win.h", | 45 "source/event_timer_win.h", |
| 47 "source/file_impl.cc", | 46 "source/file_impl.cc", |
| 48 "source/logging.cc", | |
| 49 "source/rtp_to_ntp_estimator.cc", | 47 "source/rtp_to_ntp_estimator.cc", |
| 50 "source/rw_lock.cc", | 48 "source/rw_lock.cc", |
| 51 "source/rw_lock_posix.cc", | 49 "source/rw_lock_posix.cc", |
| 52 "source/rw_lock_posix.h", | 50 "source/rw_lock_posix.h", |
| 53 "source/rw_lock_win.cc", | 51 "source/rw_lock_win.cc", |
| 54 "source/rw_lock_win.h", | 52 "source/rw_lock_win.h", |
| 55 "source/sleep.cc", | 53 "source/sleep.cc", |
| 56 "source/timestamp_extrapolator.cc", | 54 "source/timestamp_extrapolator.cc", |
| 57 "source/trace_impl.cc", | 55 "source/trace_impl.cc", |
| 58 "source/trace_impl.h", | 56 "source/trace_impl.h", |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 158 } |
| 161 | 159 |
| 162 if (rtc_include_tests) { | 160 if (rtc_include_tests) { |
| 163 rtc_test("system_wrappers_unittests") { | 161 rtc_test("system_wrappers_unittests") { |
| 164 testonly = true | 162 testonly = true |
| 165 sources = [ | 163 sources = [ |
| 166 "source/aligned_array_unittest.cc", | 164 "source/aligned_array_unittest.cc", |
| 167 "source/aligned_malloc_unittest.cc", | 165 "source/aligned_malloc_unittest.cc", |
| 168 "source/clock_unittest.cc", | 166 "source/clock_unittest.cc", |
| 169 "source/event_timer_posix_unittest.cc", | 167 "source/event_timer_posix_unittest.cc", |
| 170 "source/logging_unittest.cc", | |
| 171 "source/metrics_default_unittest.cc", | 168 "source/metrics_default_unittest.cc", |
| 172 "source/metrics_unittest.cc", | 169 "source/metrics_unittest.cc", |
| 173 "source/ntp_time_unittest.cc", | 170 "source/ntp_time_unittest.cc", |
| 174 "source/rtp_to_ntp_estimator_unittest.cc", | 171 "source/rtp_to_ntp_estimator_unittest.cc", |
| 175 "source/stringize_macros_unittest.cc", | 172 "source/stringize_macros_unittest.cc", |
| 176 ] | 173 ] |
| 177 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 174 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 178 | 175 |
| 179 if (!build_with_chromium && is_clang) { | 176 if (!build_with_chromium && is_clang) { |
| 180 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 177 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 181 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 178 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 182 } | 179 } |
| 183 | 180 |
| 184 deps = [ | 181 deps = [ |
| 185 ":metrics_default", | 182 ":metrics_default", |
| 186 ":system_wrappers", | 183 ":system_wrappers", |
| 187 "../test:test_main", | 184 "../test:test_main", |
| 188 "//testing/gtest", | 185 "//testing/gtest", |
| 189 ] | 186 ] |
| 190 | 187 |
| 191 if (is_android) { | 188 if (is_android) { |
| 192 deps += [ "//testing/android/native_test:native_test_support" ] | 189 deps += [ "//testing/android/native_test:native_test_support" ] |
| 193 | 190 |
| 194 shard_timeout = 900 | 191 shard_timeout = 900 |
| 195 } | 192 } |
| 196 } | 193 } |
| 197 } | 194 } |
| OLD | NEW |