OpenQuizz
Une application de gestion des contenus pédagogiques
MSVCCompiler Class Reference
Inheritance diagram for MSVCCompiler:
Collaboration diagram for MSVCCompiler:

Public Member Functions

def __init__ (self, verbose=0, dry_run=0, force=0)
 
def initialize (self)
 
def object_filenames (self, source_filenames, strip_dir=0, output_dir='')
 
def compile (self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None)
 
def create_static_lib (self, objects, output_libname, output_dir=None, debug=0, target_lang=None)
 
def link (self, target_desc, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None, target_lang=None)
 
def library_dir_option (self, dir)
 
def runtime_library_dir_option (self, dir)
 
def library_option (self, lib)
 
def find_library_file (self, dirs, lib, debug=0)
 
def find_exe (self, exe)
 
def get_msvc_paths (self, path, platform='x86')
 
def set_path_env_var (self, name)
 

Data Fields

 initialized
 
 cc
 
 linker
 
 lib
 
 rc
 
 mc
 
 preprocess_options
 
 compile_options
 
 compile_options_debug
 
 ldflags_shared
 
 ldflags_shared_debug
 
 ldflags_static
 

Static Public Attributes

 compiler_type
 
 executables
 
 src_extensions
 
 res_extension
 
 obj_extension
 
 static_lib_extension
 
 shared_lib_extension
 
 static_lib_format
 
 shared_lib_format
 
 exe_extension
 

Detailed Description

Concrete class that implements an interface to Microsoft Visual C++,
   as defined by the CCompiler abstract class.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  verbose = 0,
  dry_run = 0,
  force = 0 
)

Member Function Documentation

◆ compile()

def compile (   self,
  sources,
  output_dir = None,
  macros = None,
  include_dirs = None,
  debug = 0,
  extra_preargs = None,
  extra_postargs = None,
  depends = None 
)

◆ create_static_lib()

def create_static_lib (   self,
  objects,
  output_libname,
  output_dir = None,
  debug = 0,
  target_lang = None 
)

◆ find_exe()

def find_exe (   self,
  exe 
)
Return path to an MSVC executable program.

Tries to find the program in several places: first, one of the
MSVC program search paths from the registry; next, the directories
in the PATH environment variable.  If any of those work, return an
absolute path that is known to exist.  If none of them work, just
return the original program name, 'exe'.

◆ find_library_file()

def find_library_file (   self,
  dirs,
  lib,
  debug = 0 
)

◆ get_msvc_paths()

def get_msvc_paths (   self,
  path,
  platform = 'x86' 
)
Get a list of devstudio directories (include, lib or path).

Return a list of strings.  The list will be empty if unable to
access the registry or appropriate registry keys not found.

◆ initialize()

def initialize (   self)

◆ library_dir_option()

def library_dir_option (   self,
  dir 
)

◆ library_option()

def library_option (   self,
  lib 
)

◆ link()

def link (   self,
  target_desc,
  objects,
  output_filename,
  output_dir = None,
  libraries = None,
  library_dirs = None,
  runtime_library_dirs = None,
  export_symbols = None,
  debug = 0,
  extra_preargs = None,
  extra_postargs = None,
  build_temp = None,
  target_lang = None 
)

◆ object_filenames()

def object_filenames (   self,
  source_filenames,
  strip_dir = 0,
  output_dir = '' 
)

◆ runtime_library_dir_option()

def runtime_library_dir_option (   self,
  dir 
)

◆ set_path_env_var()

def set_path_env_var (   self,
  name 
)
Set environment variable 'name' to an MSVC path type value.

This is equivalent to a SET command prior to execution of spawned
commands.

Field Documentation

◆ cc

cc

◆ compile_options

compile_options

◆ compile_options_debug

compile_options_debug

◆ compiler_type

compiler_type
static

◆ exe_extension

exe_extension
static

◆ executables

executables
static

◆ initialized

initialized

◆ ldflags_shared

ldflags_shared

◆ ldflags_shared_debug

ldflags_shared_debug

◆ ldflags_static

ldflags_static

◆ lib

lib

◆ linker

linker

◆ mc

mc

◆ obj_extension

obj_extension
static

◆ preprocess_options

preprocess_options

◆ rc

rc

◆ res_extension

res_extension
static

◆ shared_lib_extension

shared_lib_extension
static

◆ shared_lib_format

shared_lib_format
static

◆ src_extensions

src_extensions
static

◆ static_lib_extension

static_lib_extension
static

◆ static_lib_format

static_lib_format
static

The documentation for this class was generated from the following file: