def load_win_x64_win_x86_common_settings(conf): """ Setup all compiler and linker settings shared over all win_x64_win_x86 configurations """ v = conf.env # Add defines to indicate a win32 build v['DEFINES'] += [ '_WIN32' ] # Introduce the linker to generate 32 bit code v['LINKFLAGS'] += [ '/MACHINE:X86' ] v['ARFLAGS'] += [ '/MACHINE:X86' ] conf.load_msvc_compiler(msvc_target, msvc_arch)
def check_win_x64_win_x86_installed(conf): """ Check compiler is actually installed on executing machine """ # backup env as the calls modify it env_backup = conf.env conf.env = conf.env.derive() conf.load_msvc_compiler(msvc_target, msvc_arch) ret_value = True if conf.env['MSVC_VERSION'] else False # restore environment conf.env = env_backup return ret_value
def load_win_x64_win_x86_common_settings(conf): """ Setup all compiler and linker settings shared over all win_x64_win_x86 configurations """ v = conf.env # Add defines to indicate a win32 build v['DEFINES'] += ['_WIN32'] # Introduce the linker to generate 32 bit code v['LINKFLAGS'] += ['/MACHINE:X86'] v['ARFLAGS'] += ['/MACHINE:X86'] conf.load_msvc_compiler(msvc_target, msvc_arch)
def check_win_x64_win_x64_installed(conf): """ Check compiler is actually installed on executing machine """ # backup env as the calls modify it env_backup = conf.env conf.env = conf.env.derive() conf.load_msvc_compiler(msvc_target, msvc_arch) ret_value = True if conf.env['MSVC_VERSION'] else False # restore environment conf.env = env_backup return ret_value