Skip to content
Browse files

Implement pre- and post-build steps for VS2008.

  • Loading branch information...
1 parent b8f4dc7 commit bc9c9aa9ddde73580a18386c95f8f9fe01c66750 @vslavik committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/bkl/plugins/vs200x.py
View
10 src/bkl/plugins/vs200x.py
@@ -240,12 +240,14 @@ def gen_for_target(self, target):
def VCPreBuildEventTool(self, target, cfg):
- # FIXME
- return Node("Tool", Name="VCPreBuildEventTool")
+ n = Node("Tool", Name="VCPreBuildEventTool")
+ n["CommandLine"] = VSList("\r\n", target["pre-build-commands"])
+ return n
def VCPostBuildEventTool(self, target, cfg):
- # FIXME
- return Node("Tool", Name="VCPostBuildEventTool")
+ n = Node("Tool", Name="VCPostBuildEventTool")
+ n["CommandLine"] = VSList("\r\n", target["post-build-commands"])
+ return n
def VCAppVerifierTool(self, target, cfg):
return Node("Tool", Name="VCAppVerifierTool") if is_exe(target) else None

0 comments on commit bc9c9aa

Please sign in to comment.
Something went wrong with that request. Please try again.