parameters: (self)
docstring: Create a :py:class:`waflib.Tools.c_osx.macplist` instance.
docstring_summary: Create a :py:class:`waflib.Tools.c_osx.macplist` instance.
docstring_tokens: Create a : py : class : waflib . Tools . c_osx . macplist instance .
function: def create_task_macplist(self):
  	"""
  	Create a :py:class:`waflib.Tools.c_osx.macplist` instance.
  	"""
  
  	# don't excute this if the current platform is not darwin
  	curr_platform, curr_configuration = self.bld.get_platform_and_configuration()
  	if curr_platform.startswith("darwin_") is False:
  		return
  	
  	if  self.env['MACAPP'] or getattr(self, 'mac_app', False):
  		out = self.link_task.outputs[0]
  		name = bundle_name_for_output(out)
  
  		current_platform = self.bld.env['PLATFORM']
  		current_configuration = self.bld.env['CONFIGURATION']
  
  		for target_node in self.bld.get_output_folders(current_platform, current_configuration, self):
  
  			n1 = target_node.make_node([name, 'Contents', 'Info.plist'])
  
  			self.plisttask = plisttask = self.create_task('macplist', [], n1)
  
  			node = getattr(self, 'mac_plist', None)
  			if node:
  				if isinstance(node,str):
  					plisttask.code = self.mac_plist
  				else:
  					plisttask.inputs.extend(node)
  			else:
  				plisttask.code = app_info % self.link_task.outputs[0].name
  
  			inst_to = getattr(self, 'install_path', '/Applications') + '/%s/Contents/' % name
  			self.bld.install_files(inst_to, n1)
function_tokens: def create_task_macplist ( self ) : # don't excute this if the current platform is not darwin curr_platform , curr_configuration = self . bld . get_platform_and_configuration ( ) if curr_platform . startswith ( "darwin_" ) is False : return if self . env [ 'MACAPP' ] or getattr ( self , 'mac_app' , False ) : out = self . link_task . outputs [ 0 ] name = bundle_name_for_output ( out ) current_platform = self . bld . env [ 'PLATFORM' ] current_configuration = self . bld . env [ 'CONFIGURATION' ] for target_node in self . bld . get_output_folders ( current_platform , current_configuration , self ) : n1 = target_node . make_node ( [ name , 'Contents' , 'Info.plist' ] ) self . plisttask = plisttask = self . create_task ( 'macplist' , [ ] , n1 ) node = getattr ( self , 'mac_plist' , None ) if node : if isinstance ( node , str ) : plisttask . code = self . mac_plist else : plisttask . inputs . extend ( node ) else : plisttask . code = app_info % self . link_task . outputs [ 0 ] . name inst_to = getattr ( self , 'install_path' , '/Applications' ) + '/%s/Contents/' % name self . bld . install_files ( inst_to , n1 )