summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cc/androidmk.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/androidmk.go b/cc/androidmk.go
index 8b1b349c..af8347af 100644
--- a/cc/androidmk.go
+++ b/cc/androidmk.go
@@ -115,8 +115,10 @@ func (test *testLinker) AndroidMk(ret *common.AndroidMkData) {
115func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) { 115func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) {
116 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { 116 ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error {
117 path := installer.path.RelPathString() 117 path := installer.path.RelPathString()
118 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Dir(path)) 118 dir, file := filepath.Split(path)
119 fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+filepath.Base(path)) 119 stem := strings.TrimSuffix(file, filepath.Ext(file))
120 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+dir)
121 fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)
120 return nil 122 return nil
121 }) 123 })
122} 124}