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