From cdd4c24ff78525339b2193dee5b9c3e3f5c88a69 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 8 Aug 2016 14:44:56 -0700 Subject: [PATCH] More fixes for decorator refactor. Didn't catch these the first time because I hadn't done a clean build. Test: rm -rf out && make ndk Change-Id: Ia66ad614d2163272889ee6937a6449c44db16ac0 --- cc/androidmk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cc/androidmk.go b/cc/androidmk.go index c19aa17b1..283fe2775 100644 --- a/cc/androidmk.go +++ b/cc/androidmk.go @@ -206,6 +206,8 @@ func (c *stubDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) error { path, file := filepath.Split(c.installPath) stem := strings.TrimSuffix(file, filepath.Ext(file)) + fmt.Fprintln(w, "LOCAL_SYSTEM_SHARED_LIBRARIES :=") + fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+outputFile.Ext()) fmt.Fprintln(w, "LOCAL_MODULE_PATH := "+path) fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)