25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
602 B

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