platform_build_soong/android
Vinh Tran f19b658803 bp2build to convert $(genDir) to $(RULEDIR) in genrule's cmd
`statslog.cpp` with cmd `"$(location stats-log-api-gen) --cpp $(genDir)/statslog.cpp"` produces `out/.intermediates/frameworks/proto_logging/stats/stats_log_api_gen/statslog.cpp/gen/statslog.cpp`. Hence, $(genDir) is equivalent to `<package-dir>/<module-name>/gen`.

Currently, bp2buld converts `$(genDir)` to `$(GENDIR)`. In Bazel, `$(GENDIR)` is only the base of the generated code (e.g. `bazel-bin`).

```
genrule(
    name = "statslog.cpp",
    cmd = "$(location :stats-log-api-gen) --cpp $(GENDIR)/statslog.cpp",
    outs = ["statslog.cpp"],
    tools = [":stats-log-api-gen"],
)
```
produces `bazel-bin/statslog.cpp` but expects to have `bazel-bin/frameworks/proto_logging/stats/stats_log_api_gen/statslog.cpp`.

By converting to `$(RULEDIR)` which is `bazel-bin/frameworks/proto_logging/stats/stats_log_api_gen`.

There had not been any genrule module allowlisted with genDir
yet. So this should not cause any issue with modules converted before
this CL.

Bug: 247536535
Test: go tests
Test: presubmit builds and tests
Change-Id: I65c6aafadab6b180b7ef700427e041547ae7e98a
2022-09-22 08:57:14 -04:00
..
allowlists bp2build to convert $(genDir) to $(RULEDIR) in genrule's cmd 2022-09-22 08:57:14 -04:00
soongconfig Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
Android.bp Create api_domain module type and its bp2build converter 2022-09-21 19:49:46 +00:00
android_test.go
androidmk.go Integrate gen_notice with Make for dist. 2022-09-14 14:21:44 -07:00
androidmk_test.go Make sure dist files have license metadata. 2022-06-01 21:07:25 -07:00
apex.go Remove obsolete com.android.bluetooth apex 2022-09-14 21:09:50 +00:00
apex_test.go Remove unused uses_sdks property for apexes 2022-05-20 07:45:48 +00:00
api_domain.go Create api_domain module type and its bp2build converter 2022-09-21 19:49:46 +00:00
api_levels.go Merge "Revert^2 "Fix erroneous "Field requires API level 33 (current min is 32)" warnings"" am: 100c7ad7f2 2022-07-01 23:06:03 +00:00
arch.go Support arch features in bp2build 2022-09-02 15:20:54 -07:00
arch_list.go Export variant/features via soong_injection 2022-02-28 14:17:15 -05:00
arch_test.go Make FirstTarget treat HostCross separately from Host 2022-08-22 14:36:13 -07:00
bazel.go Merge "Support proto modules with external references." 2022-09-15 16:00:32 +00:00
bazel_handler.go Use list comprehensions in Starlark 2022-09-08 17:12:42 +00:00
bazel_handler_test.go Reformat the test to make them more readable. 2022-06-30 14:20:55 -07:00
bazel_paths.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
bazel_paths_test.go Make filegroup paths relative to module dir in mixed builds 2022-06-08 11:47:24 -07:00
bazel_test.go Improve error message when a module is double enabled. 2022-09-14 16:15:43 -07:00
buildinfo_prop.go buildinfo_prop generates ro.build.version.known_codenames 2022-06-21 10:13:42 +09:00
config.go Revert^2 "deletion of clang_cflags & clang_asflags from Soong" 2022-09-14 19:10:51 +00:00
config_bp2build.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
config_bp2build_test.go export Java variables to Bazel 2022-04-08 14:15:43 +00:00
config_test.go
configured_jars.go Split up config.go 2022-08-01 16:07:30 -04:00
csuite_config.go
csuite_config_test.go
deapexer.go Treat <x> and <x>_compressed prebuilt APEXes as being equivalent 2022-06-13 13:16:53 +00:00
defaults.go Refactor mixed build allowlist handling 2022-08-23 13:15:12 -04:00
defaults_test.go Add protected_properties support in defaults modules 2022-05-04 21:41:55 +00:00
defs.go CpExecutable should not preserve symlink 2022-08-16 01:03:10 +00:00
depset_generic.go
depset_paths.go
depset_test.go
deptag.go
deptag_test.go
expand.go
expand_test.go
filegroup.go Fix a bug where deps were missing for converted proto_library 2022-09-15 22:18:48 -07:00
filegroup_test.go Fix ProcessBazelQueryResponse of filegroup 2022-08-18 13:59:06 -04:00
fixture.go AIDL source generation accounts for Bazel paths 2022-08-25 14:47:41 -04:00
fixture_test.go
gen_notice.go Integrate gen_notice with Make for dist. 2022-09-14 14:21:44 -07:00
gen_notice_test.go Integrate gen_notice with Make for dist. 2022-09-14 14:21:44 -07:00
hooks.go Share CreateModule between hooks & mutators 2022-04-26 09:08:55 -04:00
image.go
license.go Implement bp2build for the package module 2022-09-14 13:49:27 -07:00
license_kind.go Implement bp2build for the license_kind module 2022-09-14 13:49:27 -07:00
license_kind_test.go
license_metadata.go Don't write bogus built targets. 2022-07-29 15:49:58 -07:00
license_sdk_member.go Support multiple library names per target. 2022-02-11 10:36:22 -08:00
license_test.go
licenses.go Tool to create license metadata for copied target. 2022-06-01 18:56:26 -07:00
licenses_test.go Support multiple library names per target. 2022-02-11 10:36:22 -08:00
makefile_goal.go
makevars.go Allow empty zip file in extra files in install command. 2022-06-09 10:11:46 -04:00
metrics.go Add top level and per-mutator traces to soong_build 2022-07-22 10:01:35 -07:00
module.go Merge "bp2build: Convert cc_test.test_options.tags to cc_test.tags" 2022-09-19 08:28:33 +00:00
module_test.go Add a new test_options.tags attribute to customize test execution 2022-08-22 08:16:17 +00:00
mutator.go Add godoc for TransitionMutator. 2022-06-27 08:52:08 +02:00
mutator_test.go
namespace.go Make all Nameless modules have unique names 2022-06-22 17:19:03 -07:00
namespace_test.go Switch the namespace tests to fully use test fixtures 2022-05-11 17:30:58 +00:00
neverallow.go Allow libwifi-hal to use makefile_goal 2022-08-03 17:47:25 +09:00
neverallow_test.go Allow libwifi-hal to use makefile_goal 2022-08-03 17:47:25 +09:00
ninja_deps.go
ninja_deps_test.go
notices.go Fix strip_prefix flags to strip install paths. 2022-06-09 15:00:08 -07:00
onceper.go Add top level and per-mutator traces to soong_build 2022-07-22 10:01:35 -07:00
onceper_test.go
override_module.go
package.go Implement bp2build for the package module 2022-09-14 13:49:27 -07:00
package_ctx.go Escape Host*Variable contents 2021-12-08 15:08:59 -08:00
package_test.go cosmetic changes 2021-12-13 13:33:15 -05:00
packaging.go Move GatherPackagingSpecs out of CopyDepsToZip 2022-03-28 14:29:14 +09:00
packaging_test.go Move GatherPackagingSpecs out of CopyDepsToZip 2022-03-28 14:29:14 +09:00
path_properties.go Use Module.GetProperties() instead of ModuleBase.generalProperties 2022-01-08 03:09:52 +00:00
path_properties_test.go
paths.go Merge changes I1270e8d0,I61731a5e 2022-09-01 06:37:20 +00:00
paths_test.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
phony.go
prebuilt.go Enable Mixed Builds for Prebuilt Library 2022-06-07 20:36:53 +00:00
prebuilt_build_tool.go
prebuilt_test.go bp2build: add support for soong_config_module_type. 2021-11-08 13:38:28 +00:00
proto.go Fix a bug where deps were missing for converted proto_library 2022-09-15 22:18:48 -07:00
register.go Refactor mixed build allowlist handling 2022-08-23 13:15:12 -04:00
rule_builder.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
rule_builder_test.go Enable restat for sbox rules 2022-04-04 16:42:46 -07:00
sandbox.go
sdk.go Exclude unsupported libraries from sdk snapshot 2022-09-14 16:47:18 +01:00
sdk_test.go
sdk_version.go Propagate max_sdk_version to manifest_fixer 2022-06-28 22:07:23 +00:00
sdk_version_test.go Test SdkSpecForm. 2021-12-01 17:43:00 +00:00
singleton.go Fix bug: allow multiple gen_notice modules. 2022-05-20 16:54:00 -07:00
singleton_module.go
singleton_module_test.go Move functionality to test install rules into testing.go. 2022-02-10 23:36:06 +00:00
soong_config_modules.go Merge "Make all Nameless modules have unique names" 2022-09-16 21:23:36 +00:00
soong_config_modules_test.go Add package for printing starlark formatted data 2022-02-08 17:32:28 -05:00
test_asserts.go
test_config.go Make FirstTarget treat HostCross separately from Host 2022-08-22 14:36:13 -07:00
test_suites.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
testing.go Merge "FailIfNoMatchingErrors specify using regex" 2022-09-09 17:27:23 +00:00
updatable_modules.go Moving default version outside of apex package 2022-08-01 16:28:48 +01:00
util.go Support cc code coverage for mixed build 2022-06-06 12:29:25 -07:00
util_test.go Add SortedStringValues and SortedUniqueStringValues 2022-02-17 15:52:07 -08:00
variable.go Merge "Revert^2 "deletion of clang_cflags & clang_asflags from Soong"" 2022-09-21 19:28:11 +00:00
variable_test.go
visibility.go Add gen_notice module. 2022-05-18 16:38:19 -07:00
visibility_test.go gen_module visibility tests. 2022-05-20 16:54:13 -07:00