Implement cc_cmake_snapshot

Bug: 302718225
Test: cd build/soong/cc && go test
Test: https://r.android.com/2803466
Change-Id: Ie7df635233ed68c40d917ea1f83f9fd4b5bfe729
This commit is contained in:
Hao Chen
2023-10-20 23:03:45 +00:00
committed by Tomasz Wasilczyk
parent 5b007eaa91
commit 1c8ea5b6e1
12 changed files with 746 additions and 11 deletions

View File

@@ -287,6 +287,10 @@ func (linker *baseLinker) linkerProps() []interface{} {
return []interface{}{&linker.Properties, &linker.dynamicProperties}
}
func (linker *baseLinker) baseLinkerProps() BaseLinkerProperties {
return linker.Properties
}
func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
deps.WholeStaticLibs = append(deps.WholeStaticLibs, linker.Properties.Whole_static_libs...)
deps.HeaderLibs = append(deps.HeaderLibs, linker.Properties.Header_libs...)