def get_build_command(self, code_path, exe_path):
     temp_dir = tempfile.gettempdir()
     compile_cmd = screen_str(self.compiler_path) \
                   + " " + code_path \
                   + " /Fo" + temp_dir \
                   + " /Fe" + str(exe_path)
     return compile_cmd
 def get_build_command(self, code_path, exe_path):
     exe_dir = os.path.dirname(exe_path)
     temp_dir = tempfile.gettempdir()
     compile_cmd = screen_str(self.compiler_path) \
                   + " -Fo" + temp_dir \
                   + " -FE" + str(exe_dir) \
                   + " " + code_path
     return compile_cmd
Exemple #3
0
 def get_build_command(self, code_path, exe_path):
     exe_dir = os.path.dirname(exe_path)
     temp_dir = tempfile.gettempdir()
     compile_cmd = screen_str(self.compiler_path) \
                   + " -Fo" + temp_dir \
                   + " -FE" + str(exe_dir) \
                   + " " + code_path
     return compile_cmd
 def __init__(self, config_parser=None):
     ILanguage.__init__(self)
     self.compiler_dir = self.DEFAULT_COMPILER_DIR
     if config_parser:
         compiler_dir = config_parser.get('compiler_paths', 'cpp_path')
         if compiler_dir:
             self.compiler_dir = compiler_dir
     self.compiler_path = os.path.join(self.compiler_dir, self.COMPILER_FILE)
     self.vc_bat_path = os.path.join(os.path.dirname(self.compiler_dir), self.VC_BAT_FILE)
     set_env(screen_str(self.vc_bat_path))
 def _compile(self, language):
     compile_cmd = screen_str(
         language.compiler_path
     ) + " /debug+ /out:" + self.test_exe_file_path + " " + self.test_src_file_path
     return shell(compile_cmd)
 def _compile(self, language):
     compile_cmd = screen_str(
         language.compiler_path) + " /debug+ /out:" + self.test_exe_file_path + " " + self.test_src_file_path
     return shell(compile_cmd)
Exemple #7
0
 def _compile(self, language):
     compile_cmd = screen_str(language.compiler_path) + " " + self.test_src_file_path \
                   + " /Fo" + self.build_dir + os.sep + " /Fe" + self.test_exe_file_path
     return shell(compile_cmd)
Exemple #8
0
 def get_run_command(self, file, run_string):
     run_cmd = screen_str(file) \
                   + " " + run_string
     return run_cmd
 def get_build_command(self, code_path, exe_path):
     compile_cmd = screen_str(self.compiler_path) \
                   + " /debug+" \
                   + " /out:" + exe_path \
                   + " " + code_path
     return compile_cmd
 def get_run_command(self, file, run_string):
     run_cmd = screen_str(file) \
                   + " " + run_string
     return run_cmd
 def get_build_command(self, code_path, exe_path):
     compile_cmd = screen_str(self.compiler_path) \
                   + " /debug+" \
                   + " /out:" + exe_path \
                   + " " + code_path
     return compile_cmd