INNER CODE UNIT · Python
vcx_pre_build
CrypToolProject/CrypTool-2 · LibSource/mpir/msvc/_msvc_project.py:147
def vcx_pre_build(name, plat, vs_info, outf):
f1 = r''' <PreBuildEvent>
<Command>cd ..\..\
prebuild {0:s} {1:s} {2:s}
</Command>
</PreBuildEvent>
'''
outf.write(f1.format(name, plat, vs_info['visual studio']))
def vcx_post_build(is_cpp, vs_info, outf):
f1 = r''' <PostBuildEvent>
<Command>cd ..\..\
postbuild "$(TargetPath)" {0:s}
</Command>
</PostBuildEvent>
'''