Merge "Fix NDK gtest name."
am: 50b8682dca
Change-Id: Ie30659f2d066da5c4cd022c112fbb4f6fab32f99
This commit is contained in:
@@ -158,12 +158,7 @@ func (test *testDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
|
|||||||
func (test *testDecorator) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
|
func (test *testDecorator) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
|
||||||
if test.gtest() {
|
if test.gtest() {
|
||||||
if ctx.useSdk() && ctx.Device() {
|
if ctx.useSdk() && ctx.Device() {
|
||||||
switch ctx.selectedStl() {
|
deps.StaticLibs = append(deps.StaticLibs, "libgtest_main_ndk_c++", "libgtest_ndk_c++")
|
||||||
case "ndk_libc++_shared", "ndk_libc++_static":
|
|
||||||
deps.StaticLibs = append(deps.StaticLibs, "libgtest_main_ndk_libcxx", "libgtest_ndk_libcxx")
|
|
||||||
default:
|
|
||||||
deps.StaticLibs = append(deps.StaticLibs, "libgtest_main_ndk", "libgtest_ndk")
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
deps.StaticLibs = append(deps.StaticLibs, "libgtest_main", "libgtest")
|
deps.StaticLibs = append(deps.StaticLibs, "libgtest_main", "libgtest")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user