INNER CODE UNIT · Python

vcx_tool_options

CrypToolProject/CrypTool-2 · LibSource/mpir/msvc/_msvc_project.py:168

def vcx_tool_options(config, plat, proj_type, is_cpp, af_list, add_prebuild, vs_info, outf):

  f1 = r'''  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='{1:s}|{0:s}'">
'''
  f2 = r'''  </ItemDefinitionGroup>
'''
  for pl in plat:
    for is_debug in (False, True):
      outf.write(f1.format(pl, 'Debug' if is_debug else 'Release'))
      if add_prebuild and not is_cpp:
        vcx_pre_build(config, pl, vs_info, outf)
      if af_list:
        yasm_options(pl, proj_type, outf)
      compiler_options(pl, proj_type, is_debug, config.endswith('\\avx'), outf)
      if proj_type != Project_Type.LIB:
        linker_options(outf)
      vcx_post_build(is_cpp, vs_info, outf)
      outf.write(f2)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…