platform_build_soong/rust
Colin Cross ea30d85a65 Remove cc.moduleContext override of android.ModuleContext.*Specific
Overriding android.ModuleContext's implementations of *Specific()
methods in cc.moduleContext and then passing that back to
android.PathForModuleInstall to affect the install path causes
problems if android.ModuleBase.GenerateBuildActions also tries
to call android.PathForModuleInstall directly with the
android.ModuleContext as it gets a different result.

Add InstallIn* methods to the android.Module interface, implement
default versions in android.ModuleBase, and override them in
cc.Module and rust.Module.  Use them in android.PathsForModuleInstall
to allow the module to customize the behavior directly.

Test: TestInstallPartition
Change-Id: I7840e07eae34ac4f4d3490b021143d5f33a83626
2023-12-18 15:07:05 -08:00
..
config Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
afdo.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
afdo_test.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
Android.bp rust: add aconfig_flag support 2023-12-07 21:56:59 +00:00
androidmk.go Properly package aconfig files for vendor partition 2023-12-14 01:19:35 +00:00
benchmark.go Allow adding extra tradefed options in the Android.bp file 2023-01-03 12:47:11 -08:00
benchmark_test.go Add rust_benchmark module to soong. 2021-04-06 12:40:32 +02:00
binary.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
binary_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
bindgen.go Define __ANDROID_VENDOR_API__ 2023-11-30 05:26:12 +00:00
bindgen_test.go rust: Emit -x c++ for bindgen modules with cpp_std 2023-10-09 11:52:18 -04:00
builder.go rust: Privatize Cargo* methods on compiler 2023-11-20 20:25:27 +00:00
builder_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
clippy.go
clippy_test.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
compiler.go Move test data installation to Soong 2023-11-30 13:38:49 -08:00
compiler_test.go rust: internalize srcPathFromModuleSrcs 2023-11-22 00:52:10 +00:00
coverage.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
coverage_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
doc.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
fuzz.go Move test data installation to Soong 2023-11-30 13:38:49 -08:00
fuzz_test.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
image.go Remove cc.moduleContext override of android.ModuleContext.*Specific 2023-12-18 15:07:05 -08:00
image_test.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
library.go Convert SetProvider to generic providers API 2023-12-14 16:12:20 -08:00
library_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
OWNERS rust: Rust is now GA for platform usage 2022-07-28 06:57:26 -07:00
prebuilt.go rust: internalize srcPathFromModuleSrcs 2023-11-22 00:52:10 +00:00
proc_macro.go Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
proc_macro_test.go Revert "support sandboxed rust rules" 2023-09-22 22:05:54 +00:00
project_json.go rust: rust-project.json: Skip disabled modules 2023-11-27 17:54:03 +00:00
project_json_test.go Include proc macro crates in rust-project.json 2021-10-06 19:39:06 +00:00
protobuf.go Merge changes I6f116385,Id77f514d,I73479de1,If58f4b53 into main 2023-12-18 22:43:45 +00:00
protobuf_test.go Rust protobuf 2->3: Update build system 2023-12-15 13:23:33 +00:00
rust.go Convert OtherModuleProvider to generic providers API 2023-12-14 16:12:22 -08:00
rust_test.go Merge "Generate product variants by default" into main 2023-10-04 06:29:31 +00:00
sanitize.go Convert Provider to generic providers API 2023-12-14 16:12:21 -08:00
sanitize_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00
snapshot_prebuilt.go rust: Rust sanitized snapshots variations 2023-08-25 12:54:56 -04:00
snapshot_utils.go rust: Add vendor and recovery dylib support. 2023-07-14 12:43:09 -04:00
source_provider.go Remove unused field 'subAndroidMkOnce'. 2023-01-26 14:06:35 +00:00
source_provider_test.go
strip.go
test.go Move test data installation to Soong 2023-11-30 13:38:49 -08:00
test_test.go Fix soong for go test ./... 2023-11-17 21:28:39 +00:00
testing.go Rust protobuf 2->3: Update build system 2023-12-15 13:23:33 +00:00
toolchain_library.go Revert^2 "rustSetToolchainSource to use linux-x86 srcs" 2023-09-27 20:45:48 +00:00
vendor_snapshot_test.go Revert "Split Rust crate builds into compile and link phases." 2023-10-02 22:15:55 -07:00