• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1def _impl(rctx):
2    rctx.file("WORKSPACE", "")
3    build_dir = str(rctx.path(Label("//:BUILD")).dirname.dirname)
4    soong_injection_dir = build_dir + "/soong_injection"
5    rctx.symlink(soong_injection_dir + "/mixed_builds", "mixed_builds")
6    rctx.symlink(soong_injection_dir + "/cc_toolchain", "cc_toolchain")
7
8soong_injection_repository = repository_rule(
9    implementation = _impl,
10)
11