本文整理汇总了Python中waflib.Utils.unversioned_sys_platform_to_binary_format方法的典型用法代码示例。如果您正苦于以下问题:Python Utils.unversioned_sys_platform_to_binary_format方法的具体用法?Python Utils.unversioned_sys_platform_to_binary_format怎么用?Python Utils.unversioned_sys_platform_to_binary_format使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类waflib.Utils
的用法示例。
在下文中一共展示了Utils.unversioned_sys_platform_to_binary_format方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_dest_binfmt
# 需要导入模块: from waflib import Utils [as 别名]
# 或者: from waflib.Utils import unversioned_sys_platform_to_binary_format [as 别名]
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
示例2: d_platform_flags
# 需要导入模块: from waflib import Utils [as 别名]
# 或者: from waflib.Utils import unversioned_sys_platform_to_binary_format [as 别名]
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'