Hide static from cc_library_shared and vice versa

The static properties don't make sense for cc_library_shared
modules, and the shared properties don't make sense for
cc_library_static modules.  Move them into separate property
structs so they can be added conditionally.

Test: m nothing
Test: DefaultsTest
Change-Id: I0b0cedf9eba07deb721fae138ffa7bedcfbfe71e
This commit is contained in:
Colin Cross
2019-09-24 14:55:04 -07:00
parent ec3e81b4be
commit e1bb5d092a
4 changed files with 142 additions and 54 deletions

View File

@@ -2202,6 +2202,8 @@ func DefaultsFactory(props ...interface{}) android.Module {
&BaseLinkerProperties{},
&ObjectLinkerProperties{},
&LibraryProperties{},
&StaticProperties{},
&SharedProperties{},
&FlagExporterProperties{},
&BinaryLinkerProperties{},
&TestProperties{},