| 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_source_set("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", | 24 "include/data_log.h", |
| 25 "include/data_log_c.h", | 25 "include/data_log_c.h", |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 | 130 |
| 131 if (is_win && is_clang) { | 131 if (is_win && is_clang) { |
| 132 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 132 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 133 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 134 } | 134 } |
| 135 | 135 |
| 136 deps += [ "../base:rtc_base_approved" ] | 136 deps += [ "../base:rtc_base_approved" ] |
| 137 } | 137 } |
| 138 | 138 |
| 139 rtc_source_set("field_trial_default") { | 139 rtc_static_library("field_trial_default") { |
| 140 sources = [ | 140 sources = [ |
| 141 "include/field_trial_default.h", | 141 "include/field_trial_default.h", |
| 142 "source/field_trial_default.cc", | 142 "source/field_trial_default.cc", |
| 143 ] | 143 ] |
| 144 } | 144 } |
| 145 | 145 |
| 146 rtc_source_set("metrics_default") { | 146 rtc_static_library("metrics_default") { |
| 147 sources = [ | 147 sources = [ |
| 148 "include/metrics_default.h", | 148 "include/metrics_default.h", |
| 149 "source/metrics_default.cc", | 149 "source/metrics_default.cc", |
| 150 ] | 150 ] |
| 151 } | 151 } |
| 152 | 152 |
| 153 rtc_source_set("system_wrappers_default") { | 153 group("system_wrappers_default") { |
| 154 deps = [ | 154 deps = [ |
| 155 ":field_trial_default", | 155 ":field_trial_default", |
| 156 ":metrics_default", | 156 ":metrics_default", |
| 157 ":system_wrappers", | 157 ":system_wrappers", |
| 158 ] | 158 ] |
| 159 } | 159 } |
| 160 | 160 |
| 161 if (is_android) { | 161 if (is_android) { |
| 162 rtc_source_set("cpu_features_android") { | 162 rtc_static_library("cpu_features_android") { |
| 163 sources = [ | 163 sources = [ |
| 164 "source/cpu_features_android.c", | 164 "source/cpu_features_android.c", |
| 165 ] | 165 ] |
| 166 | 166 |
| 167 deps = [ | 167 deps = [ |
| 168 "//third_party/android_tools:cpu_features", | 168 "//third_party/android_tools:cpu_features", |
| 169 ] | 169 ] |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 | 172 |
| 173 if (is_linux) { | 173 if (is_linux) { |
| 174 rtc_source_set("cpu_features_linux") { | 174 rtc_static_library("cpu_features_linux") { |
| 175 sources = [ | 175 sources = [ |
| 176 "source/cpu_features_linux.c", | 176 "source/cpu_features_linux.c", |
| 177 ] | 177 ] |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 if (rtc_include_tests) { | 181 if (rtc_include_tests) { |
| 182 rtc_test("system_wrappers_unittests") { | 182 rtc_test("system_wrappers_unittests") { |
| 183 testonly = true | 183 testonly = true |
| 184 sources = [ | 184 sources = [ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 "//testing/gtest", | 221 "//testing/gtest", |
| 222 ] | 222 ] |
| 223 | 223 |
| 224 if (is_android) { | 224 if (is_android) { |
| 225 deps += [ "//testing/android/native_test:native_test_support" ] | 225 deps += [ "//testing/android/native_test:native_test_support" ] |
| 226 | 226 |
| 227 shard_timeout = 900 | 227 shard_timeout = 900 |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 } | 230 } |
| OLD | NEW |