INNER CODE UNIT · Python
vcx_library_type
CrypToolProject/CrypTool-2 · LibSource/mpir/msvc/_msvc_project.py:50
def vcx_library_type(plat, proj_type, vs_info, outf):
f1 = r''' <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='{1:s}|{0:s}'" Label="Configuration">
<ConfigurationType>{2:s}</ConfigurationType>
<UseDebugLibraries>{3:s}</UseDebugLibraries>
<PlatformToolset>v{4:s}</PlatformToolset>
</PropertyGroup>
'''
for pl in plat:
for conf, bool in (('Release', 'false'), ('Debug', 'true')):
outf.write(f1.format(pl, conf, app_str[proj_type], bool, vs_info['platform_toolset']))
def vcx_cpp_props(outf):
f1 = r''' <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
'''
outf.write(f1)