Aucune description

build_defs.bzl 602B

1234567891011121314151617181920
  1. """Helper definitions to glob .aar and .jar targets"""
  2. def create_aar_targets(aarfiles):
  3. for aarfile in aarfiles:
  4. name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
  5. lib_deps.append(":" + name)
  6. android_prebuilt_aar(
  7. name = name,
  8. aar = aarfile,
  9. )
  10. def create_jar_targets(jarfiles):
  11. for jarfile in jarfiles:
  12. name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
  13. lib_deps.append(":" + name)
  14. prebuilt_jar(
  15. name = name,
  16. binary_jar = jarfile,
  17. )