You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/10/02 16:21:10 UTC

[GitHub] [mynewt-newt] ccollins476ad commented on a change in pull request #335: Run custom commands at build time

ccollins476ad commented on a change in pull request #335: Run custom commands at build time
URL: https://github.com/apache/mynewt-newt/pull/335#discussion_r330645214
 
 

 ##########
 File path: newt/resolve/resolve.go
 ##########
 @@ -987,6 +994,22 @@ func (r *Resolver) resolveDepsAndCfg() error {
 	r.sysinitCfg = sysinit.Read(lpkgs, &r.cfg)
 	r.sysdownCfg = sysdown.Read(lpkgs, &r.cfg)
 
+	r.preBuildCmdCfg = extcmd.Read("pre_build_cmds", lpkgs, &r.cfg,
+		func(lpkg *pkg.LocalPackage,
+			settings map[string]string) map[string]string {
+			return lpkg.PreBuildCmds(settings)
+		})
+	r.preLinkCmdCfg = extcmd.Read("pre_link_cmds", lpkgs, &r.cfg,
+		func(lpkg *pkg.LocalPackage,
+			settings map[string]string) map[string]string {
+			return lpkg.PreLinkCmds(settings)
+		})
+	r.postBuildCmdCfg = extcmd.Read("post_build_cmds", lpkgs, &r.cfg,
 
 Review comment:
   Thanks @mkiiskila.  For some reason I have a preference for `post_build`, but I agree there is some ambiguity there, so I did the right thing and renamed it to `post_link` :).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services