diff options
Diffstat (limited to 'rust/library.go')
-rw-r--r-- | rust/library.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/library.go b/rust/library.go index 50d5a72ae..7db8f3691 100644 --- a/rust/library.go +++ b/rust/library.go @@ -70,6 +70,10 @@ type LibraryCompilerProperties struct { // Whether this library is part of the Rust toolchain sysroot. Sysroot *bool + + // Exclude this rust_ffi target from being included in APEXes. + // TODO(b/362509506): remove this once stubs are properly supported by rust_ffi targets. + Apex_exclude *bool } type LibraryMutatedProperties struct { @@ -122,6 +126,7 @@ type libraryInterface interface { shared() bool sysroot() bool source() bool + apexExclude() bool // Returns true if the build options for the module have selected a particular build type buildRlib() bool @@ -186,6 +191,10 @@ func (library *libraryDecorator) source() bool { return library.MutatedProperties.VariantIsSource } +func (library *libraryDecorator) apexExclude() bool { + return Bool(library.Properties.Apex_exclude) +} + func (library *libraryDecorator) buildRlib() bool { return library.MutatedProperties.BuildRlib && BoolDefault(library.Properties.Rlib.Enabled, true) } |