Нема описа

12345678910111213141516171819
  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. )