| 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("../build/webrtc.gni") | 13 import("../build/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/critical_section_wrapper.h", | 23 "include/critical_section_wrapper.h", |
| 24 "include/data_log.h", | |
| 25 "include/data_log_c.h", | |
| 26 "include/data_log_impl.h", | |
| 27 "include/event_wrapper.h", | 24 "include/event_wrapper.h", |
| 28 "include/field_trial.h", | 25 "include/field_trial.h", |
| 29 "include/file_wrapper.h", | 26 "include/file_wrapper.h", |
| 30 "include/fix_interlocked_exchange_pointer_win.h", | 27 "include/fix_interlocked_exchange_pointer_win.h", |
| 31 "include/logging.h", | 28 "include/logging.h", |
| 32 "include/metrics.h", | 29 "include/metrics.h", |
| 33 "include/ntp_time.h", | 30 "include/ntp_time.h", |
| 34 "include/rtp_to_ntp.h", | 31 "include/rtp_to_ntp.h", |
| 35 "include/rw_lock_wrapper.h", | 32 "include/rw_lock_wrapper.h", |
| 36 "include/sleep.h", | 33 "include/sleep.h", |
| 37 "include/sort.h", | 34 "include/sort.h", |
| 38 "include/static_instance.h", | 35 "include/static_instance.h", |
| 39 "include/stl_util.h", | 36 "include/stl_util.h", |
| 40 "include/stringize_macros.h", | 37 "include/stringize_macros.h", |
| 41 "include/timestamp_extrapolator.h", | 38 "include/timestamp_extrapolator.h", |
| 42 "include/trace.h", | 39 "include/trace.h", |
| 43 "include/utf_util_win.h", | 40 "include/utf_util_win.h", |
| 44 "source/aligned_malloc.cc", | 41 "source/aligned_malloc.cc", |
| 45 "source/atomic32_win.cc", | 42 "source/atomic32_win.cc", |
| 46 "source/clock.cc", | 43 "source/clock.cc", |
| 47 "source/condition_variable_event_win.cc", | 44 "source/condition_variable_event_win.cc", |
| 48 "source/condition_variable_event_win.h", | 45 "source/condition_variable_event_win.h", |
| 49 "source/cpu_features.cc", | 46 "source/cpu_features.cc", |
| 50 "source/cpu_info.cc", | 47 "source/cpu_info.cc", |
| 51 "source/data_log_c.cc", | |
| 52 "source/event.cc", | 48 "source/event.cc", |
| 53 "source/event_timer_posix.cc", | 49 "source/event_timer_posix.cc", |
| 54 "source/event_timer_posix.h", | 50 "source/event_timer_posix.h", |
| 55 "source/event_timer_win.cc", | 51 "source/event_timer_win.cc", |
| 56 "source/event_timer_win.h", | 52 "source/event_timer_win.h", |
| 57 "source/file_impl.cc", | 53 "source/file_impl.cc", |
| 58 "source/logging.cc", | 54 "source/logging.cc", |
| 59 "source/rtp_to_ntp.cc", | 55 "source/rtp_to_ntp.cc", |
| 60 "source/rw_lock.cc", | 56 "source/rw_lock.cc", |
| 61 "source/rw_lock_posix.cc", | 57 "source/rw_lock_posix.cc", |
| 62 "source/rw_lock_posix.h", | 58 "source/rw_lock_posix.h", |
| 63 "source/rw_lock_win.cc", | 59 "source/rw_lock_win.cc", |
| 64 "source/rw_lock_win.h", | 60 "source/rw_lock_win.h", |
| 65 "source/rw_lock_winxp_win.cc", | 61 "source/rw_lock_winxp_win.cc", |
| 66 "source/rw_lock_winxp_win.h", | 62 "source/rw_lock_winxp_win.h", |
| 67 "source/sleep.cc", | 63 "source/sleep.cc", |
| 68 "source/sort.cc", | 64 "source/sort.cc", |
| 69 "source/timestamp_extrapolator.cc", | 65 "source/timestamp_extrapolator.cc", |
| 70 "source/trace_impl.cc", | 66 "source/trace_impl.cc", |
| 71 "source/trace_impl.h", | 67 "source/trace_impl.h", |
| 72 "source/trace_posix.cc", | 68 "source/trace_posix.cc", |
| 73 "source/trace_posix.h", | 69 "source/trace_posix.h", |
| 74 "source/trace_win.cc", | 70 "source/trace_win.cc", |
| 75 "source/trace_win.h", | 71 "source/trace_win.h", |
| 76 ] | 72 ] |
| 77 | 73 |
| 78 if (rtc_enable_data_logging) { | |
| 79 sources += [ "source/data_log.cc" ] | |
| 80 } else { | |
| 81 sources += [ "source/data_log_no_op.cc" ] | |
| 82 } | |
| 83 | |
| 84 defines = [] | 74 defines = [] |
| 85 libs = [] | 75 libs = [] |
| 86 deps = [ | 76 deps = [ |
| 87 "..:webrtc_common", | 77 "..:webrtc_common", |
| 88 ] | 78 ] |
| 89 | 79 |
| 90 if (is_android) { | 80 if (is_android) { |
| 91 sources += [ | 81 sources += [ |
| 92 "include/logcat_trace_context.h", | 82 "include/logcat_trace_context.h", |
| 93 "source/logcat_trace_context.cc", | 83 "source/logcat_trace_context.cc", |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 170 |
| 181 if (rtc_include_tests) { | 171 if (rtc_include_tests) { |
| 182 rtc_test("system_wrappers_unittests") { | 172 rtc_test("system_wrappers_unittests") { |
| 183 testonly = true | 173 testonly = true |
| 184 sources = [ | 174 sources = [ |
| 185 "source/aligned_array_unittest.cc", | 175 "source/aligned_array_unittest.cc", |
| 186 "source/aligned_malloc_unittest.cc", | 176 "source/aligned_malloc_unittest.cc", |
| 187 "source/clock_unittest.cc", | 177 "source/clock_unittest.cc", |
| 188 "source/condition_variable_unittest.cc", | 178 "source/condition_variable_unittest.cc", |
| 189 "source/critical_section_unittest.cc", | 179 "source/critical_section_unittest.cc", |
| 190 "source/data_log_c_helpers_unittest.c", | |
| 191 "source/data_log_c_helpers_unittest.h", | |
| 192 "source/data_log_helpers_unittest.cc", | |
| 193 "source/event_timer_posix_unittest.cc", | 180 "source/event_timer_posix_unittest.cc", |
| 194 "source/logging_unittest.cc", | 181 "source/logging_unittest.cc", |
| 195 "source/metrics_default_unittest.cc", | 182 "source/metrics_default_unittest.cc", |
| 196 "source/metrics_unittest.cc", | 183 "source/metrics_unittest.cc", |
| 197 "source/ntp_time_unittest.cc", | 184 "source/ntp_time_unittest.cc", |
| 198 "source/rtp_to_ntp_unittest.cc", | 185 "source/rtp_to_ntp_unittest.cc", |
| 199 "source/stl_util_unittest.cc", | 186 "source/stl_util_unittest.cc", |
| 200 "source/stringize_macros_unittest.cc", | 187 "source/stringize_macros_unittest.cc", |
| 201 ] | 188 ] |
| 202 if (rtc_enable_data_logging) { | |
| 203 sources += [ | |
| 204 "source/data_log_unittest.cc", | |
| 205 "source/data_log_unittest_disabled.cc", | |
| 206 ] | |
| 207 } | |
| 208 | |
| 209 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 189 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 210 | 190 |
| 211 if (!build_with_chromium && is_clang) { | 191 if (!build_with_chromium && is_clang) { |
| 212 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 213 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 214 } | 194 } |
| 215 | 195 |
| 216 deps = [ | 196 deps = [ |
| 217 ":metrics_default", | 197 ":metrics_default", |
| 218 ":system_wrappers", | 198 ":system_wrappers", |
| 219 "../test:test_support_main", | 199 "../test:test_support_main", |
| 220 "//testing/gtest", | 200 "//testing/gtest", |
| 221 ] | 201 ] |
| 222 | 202 |
| 223 if (is_android) { | 203 if (is_android) { |
| 224 deps += [ "//testing/android/native_test:native_test_support" ] | 204 deps += [ "//testing/android/native_test:native_test_support" ] |
| 225 | 205 |
| 226 shard_timeout = 900 | 206 shard_timeout = 900 |
| 227 } | 207 } |
| 228 } | 208 } |
| 229 } | 209 } |
| OLD | NEW |