Add libc++ and libc++_static aliases for SDK builds.

c++_shared and c++_static are named libc++ and libc++_static in every
other mode. Allow the same names so targets which are built for both
host and device with SDK may specify a single name for the STL.

Test: external/boringssl is able to use "libc++_static" as the STL.
Change-Id: Ibc579c7e24ddb8de12fbfc6e1b5d80648efa589e
This commit is contained in:
David Benjamin
2017-01-25 14:10:04 -05:00
parent 97673c06d8
commit 87f9f03d3f

View File

@@ -50,6 +50,10 @@ func (stl *stl) begin(ctx BaseModuleContext) {
"stlport_shared", "stlport_static",
"gnustl_static":
return "ndk_lib" + s
case "libc++":
return "ndk_libc++_shared"
case "libc++_static":
return "ndk_libc++_static"
case "none":
return ""
default: