parameters: (self)
docstring: To make a bundled shared library (a ``.bundle``), set the *mac_bundle* attribute::
  
  		def build(bld):
  			bld.shlib(source='a.c', target='foo', mac_bundle = True)
  
  	To force *all* executables to be transformed into bundles::
  
  		def build(bld):
  			bld.env.MACBUNDLE = True
  			bld.shlib(source='a.c', target='foo')
docstring_summary: To make a bundled shared library (a ``.bundle``), set the *mac_bundle* attribute::
docstring_tokens: To make a bundled shared library ( a . bundle ) set the * mac_bundle * attribute ::
function: def apply_bundle(self):
  	"""
  	To make a bundled shared library (a ``.bundle``), set the *mac_bundle* attribute::
  
  		def build(bld):
  			bld.shlib(source='a.c', target='foo', mac_bundle = True)
  
  	To force *all* executables to be transformed into bundles::
  
  		def build(bld):
  			bld.env.MACBUNDLE = True
  			bld.shlib(source='a.c', target='foo')
  	"""
  	if self.env.MACBUNDLE or getattr(self, 'mac_bundle', False):
  		self.env.LINKFLAGS_cshlib = self.env.LINKFLAGS_cxxshlib = [] # disable the '-dynamiclib' flag
  		self.env.cshlib_PATTERN = self.env.cxxshlib_PATTERN = self.env.macbundle_PATTERN
  		use = self.use = self.to_list(getattr(self, 'use', []))
  		if not 'MACBUNDLE' in use:
  			use.append('MACBUNDLE')
function_tokens: def apply_bundle ( self ) : if self . env . MACBUNDLE or getattr ( self , 'mac_bundle' , False ) : self . env . LINKFLAGS_cshlib = self . env . LINKFLAGS_cxxshlib = [ ] # disable the '-dynamiclib' flag self . env . cshlib_PATTERN = self . env . cxxshlib_PATTERN = self . env . macbundle_PATTERN use = self . use = self . to_list ( getattr ( self , 'use' , [ ] ) ) if not 'MACBUNDLE' in use : use . append ( 'MACBUNDLE' )