def get_dest_binfmt(self): # The only thing we need for cross-compilation is DEST_BINFMT. # At some point, we may reach a case where DEST_BINFMT is not enough, but for now it's sufficient. # Currently, cross-compilation is auto-detected only for the gnu and intel compilers. if not self.env.DEST_BINFMT: # Infer the binary format from the os name. self.env.DEST_BINFMT = Utils.unversioned_sys_platform_to_binary_format( self.env.DEST_OS or Utils.unversioned_sys_platform()) return self.env.DEST_BINFMT
def d_platform_flags(self): v = self.env if Utils.unversioned_sys_platform_to_binary_format(self.env.DEST_OS or Utils.unversioned_sys_platform()) == 'pe': v['dprogram_PATTERN'] = '%s.exe' v['dshlib_PATTERN'] = 'lib%s.dll' v['dstlib_PATTERN'] = 'lib%s.a' else: v['dprogram_PATTERN'] = '%s' v['dshlib_PATTERN'] = 'lib%s.so' v['dstlib_PATTERN'] = 'lib%s.a'