Merge "Remove extension from LOCAL_MODULE_STEM" am: e925ffc
am: 9b79db3
* commit '9b79db366e7e35ce4277d4a9c11d2a0ff0847167':
Remove extension from LOCAL_MODULE_STEM
Change-Id: I623dc4fc4ef659ac80767f6f11a566a78fa460b8
This commit is contained in:
@@ -115,8 +115,10 @@ func (test *testLinker) AndroidMk(ret *common.AndroidMkData) {
|
||||
func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) {
|
||||
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error {
|
||||
path := installer.path.RelPathString()
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Dir(path))
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+filepath.Base(path))
|
||||
dir, file := filepath.Split(path)
|
||||
stem := strings.TrimSuffix(file, filepath.Ext(file))
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+dir)
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user