Merge "Dedup NDK library lists in make." am: 8cf2fda4c4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1353449 Change-Id: I71fb9df477b858276706af826e07ed3e7b27585b
This commit is contained in:
commit
f9d5977467
1 changed files with 1 additions and 7 deletions
|
@ -97,12 +97,6 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
|
|||
ctx.Strict("CLANG_EXTERNAL_CFLAGS", "${config.ClangExternalCflags}")
|
||||
ctx.Strict("GLOBAL_CLANG_CFLAGS_NO_OVERRIDE", "${config.NoOverrideClangGlobalCflags}")
|
||||
ctx.Strict("GLOBAL_CLANG_CPPFLAGS_NO_OVERRIDE", "")
|
||||
ndkLibNames := []string{}
|
||||
for _, lib := range ndkKnownLibs {
|
||||
ndkLibNames = append(ndkLibNames, strings.TrimPrefix(lib, "lib"))
|
||||
}
|
||||
sort.Strings(ndkLibNames)
|
||||
ctx.Strict("NDK_PREBUILT_SHARED_LIBRARIES", strings.Join(ndkLibNames, " "))
|
||||
|
||||
ctx.Strict("BOARD_VNDK_VERSION", ctx.DeviceConfig().VndkVersion())
|
||||
|
||||
|
@ -180,7 +174,7 @@ func makeVarsProvider(ctx android.MakeVarsContext) {
|
|||
ctx.StrictRaw("SRC_SYSTEM_HEADERS", strings.Join(systemIncludes, " "))
|
||||
|
||||
sort.Strings(ndkKnownLibs)
|
||||
ctx.Strict("NDK_MIGRATED_LIBS", strings.Join(ndkKnownLibs, " "))
|
||||
ctx.Strict("NDK_KNOWN_LIBS", strings.Join(ndkKnownLibs, " "))
|
||||
|
||||
hostTargets := ctx.Config().Targets[android.BuildOs]
|
||||
makeVarsToolchain(ctx, "", hostTargets[0])
|
||||
|
|
Loading…
Reference in a new issue