Merge "Remove extension from LOCAL_MODULE_STEM"

am: e925ffc

* commit 'e925ffce03086c8654265705a7e0d3f4558ff5e9':
  Remove extension from LOCAL_MODULE_STEM

Change-Id: I57e3e2eff355235e25ff7bd46ba6213fc0e60c9b
This commit is contained in:
Colin Cross
2016-03-30 01:29:47 +00:00
committed by android-build-merger

View File

@@ -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
})
}