當前位置: 首頁>>代碼示例>>Python>>正文


Python Utils.unversioned_sys_platform方法代碼示例

本文整理匯總了Python中waflib.Utils.unversioned_sys_platform方法的典型用法代碼示例。如果您正苦於以下問題:Python Utils.unversioned_sys_platform方法的具體用法?Python Utils.unversioned_sys_platform怎麽用?Python Utils.unversioned_sys_platform使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在waflib.Utils的用法示例。


在下文中一共展示了Utils.unversioned_sys_platform方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: get_test_env

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def get_test_env(self):
		try:
			fu=getattr(self.generator.bld,'all_test_paths')
		except AttributeError:
			fu=os.environ.copy()
			lst=[]
			for g in self.generator.bld.groups:
				for tg in g:
					if getattr(tg,'link_task',None):
						s=tg.link_task.outputs[0].parent.abspath()
						if s not in lst:
							lst.append(s)
			if Utils.is_win32:
				self.add_path(fu,lst,'PATH')
			elif Utils.unversioned_sys_platform()=='darwin':
				self.add_path(fu,lst,'DYLD_LIBRARY_PATH')
				self.add_path(fu,lst,'LD_LIBRARY_PATH')
			else:
				self.add_path(fu,lst,'LD_LIBRARY_PATH')
			self.generator.bld.all_test_paths=fu
		return fu 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:23,代碼來源:waf_unit_test.py

示例2: d_platform_flags

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def d_platform_flags(self):
	v=self.env
	if not v.DEST_OS:
		v.DEST_OS=Utils.unversioned_sys_platform()
	binfmt=Utils.destos_to_binfmt(self.env.DEST_OS)
	if binfmt=='pe':
		v['dprogram_PATTERN']='%s.exe'
		v['dshlib_PATTERN']='lib%s.dll'
		v['dstlib_PATTERN']='lib%s.a'
	elif binfmt=='mac-o':
		v['dprogram_PATTERN']='%s'
		v['dshlib_PATTERN']='lib%s.dylib'
		v['dstlib_PATTERN']='lib%s.a'
	else:
		v['dprogram_PATTERN']='%s'
		v['dshlib_PATTERN']='lib%s.so'
		v['dstlib_PATTERN']='lib%s.a' 
開發者ID:KTH,項目名稱:royal-chaos,代碼行數:19,代碼來源:d_config.py

示例3: boost_get_toolset

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def boost_get_toolset(self, cc):
	toolset = cc
	if not cc:
		build_platform = Utils.unversioned_sys_platform()
		if build_platform in BOOST_TOOLSETS:
			cc = build_platform
		else:
			cc = self.env.CXX_NAME
	if cc in BOOST_TOOLSETS:
		toolset = BOOST_TOOLSETS[cc]
	return isinstance(toolset, str) and toolset or toolset(self.env) 
開發者ID:ntu-dsi-dcn,項目名稱:ntu-dsi-dcn,代碼行數:13,代碼來源:boost.py

示例4: default_compilers

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def default_compilers():
	build_platform=Utils.unversioned_sys_platform()
	possible_compiler_list=d_compiler.get(build_platform,d_compiler['default'])
	return' '.join(possible_compiler_list) 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:6,代碼來源:compiler_d.py

示例5: gfortran_modifier_platform

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def gfortran_modifier_platform(conf):
	dest_os=conf.env['DEST_OS']or Utils.unversioned_sys_platform()
	gfortran_modifier_func=getattr(conf,'gfortran_modifier_'+dest_os,None)
	if gfortran_modifier_func:
		gfortran_modifier_func() 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:7,代碼來源:gfortran.py

示例6: default_compilers

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def default_compilers():
	build_platform=Utils.unversioned_sys_platform()
	possible_compiler_list=fc_compiler.get(build_platform,fc_compiler['default'])
	return' '.join(possible_compiler_list) 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:6,代碼來源:compiler_fc.py

示例7: set_bundle

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def set_bundle(self):
	if Utils.unversioned_sys_platform()=='darwin':
		self.mac_bundle=True 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:5,代碼來源:python.py

示例8: cc_load_tools

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def cc_load_tools(conf):
	if not conf.env.DEST_OS:
		conf.env.DEST_OS=Utils.unversioned_sys_platform()
	conf.load('c') 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:6,代碼來源:c_config.py

示例9: cxx_load_tools

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def cxx_load_tools(conf):
	if not conf.env.DEST_OS:
		conf.env.DEST_OS=Utils.unversioned_sys_platform()
	conf.load('cxx') 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:6,代碼來源:c_config.py

示例10: g95_modifier_platform

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def g95_modifier_platform(conf):
	dest_os=conf.env['DEST_OS']or Utils.unversioned_sys_platform()
	g95_modifier_func=getattr(conf,'g95_modifier_'+dest_os,None)
	if g95_modifier_func:
		g95_modifier_func() 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:7,代碼來源:g95.py

示例11: default_compilers

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def default_compilers():
	build_platform=Utils.unversioned_sys_platform()
	possible_compiler_list=cxx_compiler.get(build_platform,cxx_compiler['default'])
	return' '.join(possible_compiler_list) 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:6,代碼來源:compiler_cxx.py

示例12: ifort_modifier_platform

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def ifort_modifier_platform(conf):
	dest_os=conf.env['DEST_OS']or Utils.unversioned_sys_platform()
	ifort_modifier_func=getattr(conf,'ifort_modifier_'+dest_os,None)
	if ifort_modifier_func:
		ifort_modifier_func() 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:7,代碼來源:ifort.py

示例13: set_macosx_deployment_target

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def set_macosx_deployment_target(self):
	if self.env['MACOSX_DEPLOYMENT_TARGET']:
		os.environ['MACOSX_DEPLOYMENT_TARGET']=self.env['MACOSX_DEPLOYMENT_TARGET']
	elif'MACOSX_DEPLOYMENT_TARGET'not in os.environ:
		if Utils.unversioned_sys_platform()=='darwin':
			os.environ['MACOSX_DEPLOYMENT_TARGET']='.'.join(platform.mac_ver()[0].split('.')[:2]) 
開發者ID:MOSAIC-UA,項目名稱:802.11ah-ns3,代碼行數:8,代碼來源:c_osx.py

示例14: set_bundle

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def set_bundle(self):
	if Utils.unversioned_sys_platform() == 'darwin':
		self.mac_bundle = True 
開發者ID:KTH,項目名稱:royal-chaos,代碼行數:5,代碼來源:python_patched.py

示例15: default_compilers

# 需要導入模塊: from waflib import Utils [as 別名]
# 或者: from waflib.Utils import unversioned_sys_platform [as 別名]
def default_compilers():
	build_platform=Utils.unversioned_sys_platform()
	possible_compiler_list=c_compiler.get(build_platform,c_compiler['default'])
	return' '.join(possible_compiler_list) 
開發者ID:KTH,項目名稱:royal-chaos,代碼行數:6,代碼來源:compiler_c.py


注:本文中的waflib.Utils.unversioned_sys_platform方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。