Merge "Remove extension from LOCAL_MODULE_STEM"

This commit is contained in:
Colin Cross
2016-03-30 01:15:44 +00:00
committed by Gerrit Code Review

View File

@@ -115,8 +115,10 @@ func (test *testLinker) AndroidMk(ret *common.AndroidMkData) {
func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) { func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) {
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error {
path := installer.path.RelPathString() path := installer.path.RelPathString()
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Dir(path)) dir, file := filepath.Split(path)
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+filepath.Base(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 return nil
}) })
} }