Files
build_soong/cc
Logan Chien 031d2b32e3 Support prebuilt shared libs end with versions
This commit changes how `cc/androidmk.go` generates LOCAL_MODULE_STEM,
LOCAL_MODULE_SUFFIX, and LOCAL_BUILT_MODULE_STEM.  Now, `splitFileExt()`
takes a file name and a list of expected file extensions.
`splitFileExt()` searches the first occurrence of expected file
extensions in the file name.  If it can not find any, it will simply
return the last file extension.

Before this commit, `cc/androidmk.go` simply extracts the last file
extension (e.g. `.so`).  However, if the prebuilt shared libs end with
version numbers (e.g. `libc++.so.1`), it will use `$(LOCAL_MODULE).1` as
LOCAL_BUILT_MODULE_STEM and this will lead to missing target ninja
error.

Bug: 111579848
Test: Build a program that links libc++_host (from prebuilts/clang)
Change-Id: Id96726c69705d518ea725bb6abd8ff4527ca0cbc
2018-08-09 10:45:18 +08:00
..
2018-07-31 10:56:27 -07:00
2018-07-23 17:19:36 -07:00
2017-10-19 22:39:32 +09:00
2018-07-22 21:18:45 -07:00
2018-07-06 11:36:32 -07:00
2017-11-17 11:22:04 -08:00
2018-07-11 18:37:50 +08:00
2018-06-25 18:36:50 -07:00
2018-04-12 14:37:35 -07:00
2018-05-07 16:21:59 -07:00
2016-08-01 14:36:22 -07:00
2018-07-22 21:18:45 -07:00
2018-05-14 16:30:46 -07:00