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") |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 ]) | 320 ]) |
321 configs += invoker.configs | 321 configs += invoker.configs |
322 configs -= rtc_remove_configs | 322 configs -= rtc_remove_configs |
323 configs -= invoker.suppressed_configs | 323 configs -= invoker.suppressed_configs |
324 public_configs = [ rtc_common_inherited_config ] | 324 public_configs = [ rtc_common_inherited_config ] |
325 if (defined(invoker.public_configs)) { | 325 if (defined(invoker.public_configs)) { |
326 public_configs += invoker.public_configs | 326 public_configs += invoker.public_configs |
327 } | 327 } |
328 } | 328 } |
329 } | 329 } |
| 330 |
| 331 # TODO(mbonadei): Merge this in android_library or create an |
| 332 # rtc_android_library. Waiting for hints from chromium:648244. |
| 333 if (is_android) { |
| 334 template("android_shared_srcjar") { |
| 335 action(target_name) { |
| 336 check_includes = false |
| 337 set_sources_assignment_filter([]) |
| 338 assert(defined(invoker.sources)) |
| 339 |
| 340 forward_variables_from(invoker, |
| 341 [ |
| 342 "sources", |
| 343 "testonly", |
| 344 "visibility", |
| 345 ]) |
| 346 script = "//webrtc/build/generate_srcjar.py" |
| 347 _srcjar_path = "${target_gen_dir}/${target_name}.srcjar" |
| 348 _rebased_srcjar_path = rebase_path(_srcjar_path, root_build_dir) |
| 349 _rebased_sources = rebase_path(invoker.sources, root_build_dir) |
| 350 |
| 351 args = [ "--srcjar=$_rebased_srcjar_path" ] + _rebased_sources |
| 352 |
| 353 outputs = [ |
| 354 _srcjar_path, |
| 355 ] |
| 356 } |
| 357 } |
| 358 } |
OLD | NEW |