| 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") |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 configs += [ "..:common_config" ] | |
| 79 | |
| 80 public_configs = [ "..:common_inherited_config" ] | 78 public_configs = [ "..:common_inherited_config" ] |
| 81 | 79 |
| 82 if (rtc_enable_data_logging) { | 80 if (rtc_enable_data_logging) { |
| 83 sources += [ "source/data_log.cc" ] | 81 sources += [ "source/data_log.cc" ] |
| 84 } else { | 82 } else { |
| 85 sources += [ "source/data_log_no_op.cc" ] | 83 sources += [ "source/data_log_no_op.cc" ] |
| 86 } | 84 } |
| 87 | 85 |
| 88 defines = [] | 86 defines = [] |
| 89 libs = [] | 87 libs = [] |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 137 |
| 140 deps += [ "../base:rtc_base_approved" ] | 138 deps += [ "../base:rtc_base_approved" ] |
| 141 } | 139 } |
| 142 | 140 |
| 143 rtc_source_set("field_trial_default") { | 141 rtc_source_set("field_trial_default") { |
| 144 sources = [ | 142 sources = [ |
| 145 "include/field_trial_default.h", | 143 "include/field_trial_default.h", |
| 146 "source/field_trial_default.cc", | 144 "source/field_trial_default.cc", |
| 147 ] | 145 ] |
| 148 | 146 |
| 149 configs += [ "..:common_config" ] | |
| 150 public_configs = [ "..:common_inherited_config" ] | 147 public_configs = [ "..:common_inherited_config" ] |
| 151 } | 148 } |
| 152 | 149 |
| 153 rtc_source_set("metrics_default") { | 150 rtc_source_set("metrics_default") { |
| 154 sources = [ | 151 sources = [ |
| 155 "include/metrics_default.h", | 152 "include/metrics_default.h", |
| 156 "source/metrics_default.cc", | 153 "source/metrics_default.cc", |
| 157 ] | 154 ] |
| 158 | 155 |
| 159 configs += [ "..:common_config" ] | |
| 160 public_configs = [ "..:common_inherited_config" ] | 156 public_configs = [ "..:common_inherited_config" ] |
| 161 } | 157 } |
| 162 | 158 |
| 163 rtc_source_set("system_wrappers_default") { | 159 rtc_source_set("system_wrappers_default") { |
| 164 configs += [ "..:common_config" ] | |
| 165 public_configs = [ "..:common_inherited_config" ] | 160 public_configs = [ "..:common_inherited_config" ] |
| 166 | 161 |
| 167 deps = [ | 162 deps = [ |
| 168 ":field_trial_default", | 163 ":field_trial_default", |
| 169 ":metrics_default", | 164 ":metrics_default", |
| 170 ":system_wrappers", | 165 ":system_wrappers", |
| 171 ] | 166 ] |
| 172 } | 167 } |
| 173 | 168 |
| 174 if (is_android) { | 169 if (is_android) { |
| 175 rtc_source_set("cpu_features_android") { | 170 rtc_source_set("cpu_features_android") { |
| 176 sources = [ | 171 sources = [ |
| 177 "source/cpu_features_android.c", | 172 "source/cpu_features_android.c", |
| 178 ] | 173 ] |
| 179 | 174 |
| 180 configs += [ "..:common_config" ] | |
| 181 public_configs = [ "..:common_inherited_config" ] | 175 public_configs = [ "..:common_inherited_config" ] |
| 182 deps = [ | 176 deps = [ |
| 183 "//third_party/android_tools:cpu_features", | 177 "//third_party/android_tools:cpu_features", |
| 184 ] | 178 ] |
| 185 } | 179 } |
| 186 } | 180 } |
| 187 | 181 |
| 188 if (is_linux) { | 182 if (is_linux) { |
| 189 rtc_source_set("cpu_features_linux") { | 183 rtc_source_set("cpu_features_linux") { |
| 190 sources = [ | 184 sources = [ |
| 191 "source/cpu_features_linux.c", | 185 "source/cpu_features_linux.c", |
| 192 ] | 186 ] |
| 193 | 187 |
| 194 configs += [ "..:common_config" ] | |
| 195 public_configs = [ "..:common_inherited_config" ] | 188 public_configs = [ "..:common_inherited_config" ] |
| 196 } | 189 } |
| 197 } | 190 } |
| 198 | 191 |
| 199 if (rtc_include_tests) { | 192 if (rtc_include_tests) { |
| 200 rtc_test("system_wrappers_unittests") { | 193 rtc_test("system_wrappers_unittests") { |
| 201 testonly = true | 194 testonly = true |
| 202 sources = [ | 195 sources = [ |
| 203 "source/aligned_array_unittest.cc", | 196 "source/aligned_array_unittest.cc", |
| 204 "source/aligned_malloc_unittest.cc", | 197 "source/aligned_malloc_unittest.cc", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 217 "source/stl_util_unittest.cc", | 210 "source/stl_util_unittest.cc", |
| 218 "source/stringize_macros_unittest.cc", | 211 "source/stringize_macros_unittest.cc", |
| 219 ] | 212 ] |
| 220 if (rtc_enable_data_logging) { | 213 if (rtc_enable_data_logging) { |
| 221 sources += [ | 214 sources += [ |
| 222 "source/data_log_unittest.cc", | 215 "source/data_log_unittest.cc", |
| 223 "source/data_log_unittest_disabled.cc", | 216 "source/data_log_unittest_disabled.cc", |
| 224 ] | 217 ] |
| 225 } | 218 } |
| 226 | 219 |
| 227 configs += [ "..:common_config" ] | |
| 228 public_configs = [ "..:common_inherited_config" ] | 220 public_configs = [ "..:common_inherited_config" ] |
| 229 | 221 |
| 230 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 222 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 231 | 223 |
| 232 if (is_clang) { | 224 if (is_clang) { |
| 233 # Suppress warnings from Chrome's Clang plugins. | 225 # Suppress warnings from Chrome's Clang plugins. |
| 234 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 226 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 235 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 227 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 236 } | 228 } |
| 237 | 229 |
| 238 deps = [ | 230 deps = [ |
| 239 ":metrics_default", | 231 ":metrics_default", |
| 240 ":system_wrappers", | 232 ":system_wrappers", |
| 241 "../test:test_support_main", | 233 "../test:test_support_main", |
| 242 "//testing/gtest", | 234 "//testing/gtest", |
| 243 ] | 235 ] |
| 244 | 236 |
| 245 if (is_android) { | 237 if (is_android) { |
| 246 deps += [ "//testing/android/native_test:native_test_support" ] | 238 deps += [ "//testing/android/native_test:native_test_support" ] |
| 247 | 239 |
| 248 shard_timeout = 900 | 240 shard_timeout = 900 |
| 249 } | 241 } |
| 250 } | 242 } |
| 251 } | 243 } |
| OLD | NEW |