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 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
11 import("//build/config/mips.gni") | 11 import("//build/config/mips.gni") |
| 12 import("//build/config/sanitizers/sanitizers.gni") |
12 import("//build_overrides/webrtc.gni") | 13 import("//build_overrides/webrtc.gni") |
13 import("//testing/test.gni") | 14 import("//testing/test.gni") |
14 | 15 |
15 declare_args() { | 16 declare_args() { |
16 # Disable this to avoid building the Opus audio codec. | 17 # Disable this to avoid building the Opus audio codec. |
17 rtc_include_opus = true | 18 rtc_include_opus = true |
18 | 19 |
19 # Disable to use absolute header paths for some libraries. | 20 # Disable to use absolute header paths for some libraries. |
20 rtc_relative_path = true | 21 rtc_relative_path = true |
21 | 22 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 configs -= rtc_remove_configs | 213 configs -= rtc_remove_configs |
213 configs -= invoker.suppressed_configs | 214 configs -= invoker.suppressed_configs |
214 } | 215 } |
215 } | 216 } |
216 | 217 |
217 template("rtc_executable") { | 218 template("rtc_executable") { |
218 executable(target_name) { | 219 executable(target_name) { |
219 forward_variables_from(invoker, | 220 forward_variables_from(invoker, |
220 "*", | 221 "*", |
221 [ | 222 [ |
| 223 "deps", |
222 "configs", | 224 "configs", |
223 "suppressed_configs", | 225 "suppressed_configs", |
224 ]) | 226 ]) |
225 configs += invoker.configs | 227 configs += invoker.configs |
226 configs += rtc_add_configs | 228 configs += rtc_add_configs |
227 configs -= rtc_remove_configs | 229 configs -= rtc_remove_configs |
228 configs -= invoker.suppressed_configs | 230 configs -= invoker.suppressed_configs |
| 231 deps = [ |
| 232 "//build/config/sanitizers:deps", |
| 233 ] |
| 234 deps += invoker.deps |
229 } | 235 } |
230 } | 236 } |
231 | 237 |
232 template("rtc_static_library") { | 238 template("rtc_static_library") { |
233 static_library(target_name) { | 239 static_library(target_name) { |
234 forward_variables_from(invoker, | 240 forward_variables_from(invoker, |
235 "*", | 241 "*", |
236 [ | 242 [ |
237 "configs", | 243 "configs", |
238 "suppressed_configs", | 244 "suppressed_configs", |
239 ]) | 245 ]) |
240 configs += invoker.configs | 246 configs += invoker.configs |
241 configs += rtc_add_configs | 247 configs += rtc_add_configs |
242 configs -= rtc_remove_configs | 248 configs -= rtc_remove_configs |
243 configs -= invoker.suppressed_configs | 249 configs -= invoker.suppressed_configs |
244 } | 250 } |
245 } | 251 } |
OLD | NEW |