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