Use lunch repo rule to find ninja filenames.

Passing $(getoutdir) into the repo environment allows us to look into
the output directory for build-<target-product> prefixed ninja files,
and pass them onto the top level BUILD file as src file names.

This also fixes the problem of lunch rule not knowing what the un-md5'ed
kati suffix is.

This also makes "build/soong/soong_ui.bash --make-mode USE_BAZEL=true"
work without sourcing envsetup.sh or running lunch.

Test: USE_BAZEL=1 m
Test: (no lunch) build/soong/soong_ui.bash --make-mode USE_BAZEL=true
Test: WITH_DEXPREOPT=false build/soong/soong_ui.bash --make-mode cts TARGET_PRODUCT=aosp_x86_64 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY=true acts_tests vts tradefed-all general-tests test_mapping OUT=`pwd`/out USE_BAZEL=true

Bug: 172548916
Fixes: 172548916
Bug: 172302866
Fixes: 172302866
Change-Id: I92dc4e15587e4d599e88dacfd63d6d6bb5dcaf06
3 files changed
tree: 6280225947a809dba516db02ae9fd1b3b9004c68
  1. docs/
  2. rules/
  3. bazel.BUILD
  4. bazel.sh
  5. bazel.WORKSPACE
  6. common.bazelrc
  7. darwin.bazelrc
  8. linux.bazelrc
  9. OWNERS
  10. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.