diff options
Diffstat (limited to 'soong')
-rw-r--r-- | soong/clangprebuilts.go | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/soong/clangprebuilts.go b/soong/clangprebuilts.go index bf7f5262b..c0979c203 100644 --- a/soong/clangprebuilts.go +++ b/soong/clangprebuilts.go @@ -51,8 +51,6 @@ func init() { libClangRtPrebuiltLibrarySharedFactory) android.RegisterModuleType("libclang_rt_prebuilt_library_static", libClangRtPrebuiltLibraryStaticFactory) - android.RegisterModuleType("libclang_rt_llndk_library", - libClangRtLLndkLibraryFactory) android.RegisterModuleType("llvm_darwin_filegroup", llvmDarwinFileGroupFactory) android.RegisterModuleType("clang_builtin_headers", @@ -199,7 +197,7 @@ func llvmPrebuiltLibraryStatic(ctx android.LoadHookContext) { } type prebuiltLibrarySharedProps struct { - Llndk_stubs *string + Is_llndk *bool Shared_libs []string } @@ -227,6 +225,9 @@ func libClangRtPrebuiltLibraryShared(ctx android.LoadHookContext, in *prebuiltLi Symbol_file *string Versions []string } + Llndk struct { + Symbol_file *string + } } p := &props{} @@ -242,9 +243,10 @@ func libClangRtPrebuiltLibraryShared(ctx android.LoadHookContext, in *prebuiltLi p.Pack_relocations = &disable p.Stl = proptools.StringPtr("none") - if proptools.String(in.Llndk_stubs) != "" { + if proptools.Bool(in.Is_llndk) { p.Stubs.Versions = []string{"29", "10000"} p.Stubs.Symbol_file = proptools.StringPtr(getSymbolFilePath(ctx)) + p.Llndk.Symbol_file = proptools.StringPtr(getSymbolFilePath(ctx)) } ctx.AppendProperties(p) @@ -274,16 +276,6 @@ func libClangRtPrebuiltLibraryStatic(ctx android.LoadHookContext) { ctx.AppendProperties(p) } -func libClangRtLLndkLibrary(ctx android.LoadHookContext) { - type props struct { - Symbol_file *string - } - - p := &props{} - p.Symbol_file = proptools.StringPtr(getSymbolFilePath(ctx)) - ctx.AppendProperties(p) -} - func llvmDarwinFileGroup(ctx android.LoadHookContext) { clangDir := getClangPrebuiltDir(ctx) libName := strings.TrimSuffix(ctx.ModuleName(), "_darwin") @@ -334,12 +326,6 @@ func libClangRtPrebuiltLibraryStaticFactory() android.Module { return module.Init() } -func libClangRtLLndkLibraryFactory() android.Module { - module := cc.NewLLndkStubLibrary() - android.AddLoadHook(module, libClangRtLLndkLibrary) - return module.Init() -} - func llvmDarwinFileGroupFactory() android.Module { module := android.FileGroupFactory() android.AddLoadHook(module, llvmDarwinFileGroup) |