示例#1
0
 def build(self,
           project_file,
           targets=None,
           upgrade_project=True,
           build_type=None,
           arch=None,
           parallel=True,
           force_vcvars=False,
           toolset=None):
     with tools.environment_append(self.build_env.vars):
         command = msvc_build_command(self._conanfile.settings,
                                      project_file,
                                      targets=targets,
                                      upgrade_project=upgrade_project,
                                      build_type=build_type,
                                      arch=arch,
                                      parallel=parallel,
                                      force_vcvars=force_vcvars,
                                      toolset=toolset)
         return self._conanfile.run(command)
示例#2
0
文件: tools.py 项目: ytljc2003/conan
def msvc_build_command(*args, **kwargs):
    return tools_win.msvc_build_command(output=_global_output, *args, **kwargs)