parameters: (self)
docstring: scons_rules.
  
          It outputs the scons rules according to user options.
docstring_summary: scons_rules.
docstring_tokens: scons_rules .
function: def scons_rules(self):
          """scons_rules.
  
          It outputs the scons rules according to user options.
  
          """
          self._prepare_to_generate_rule()
  
          options = self.blade.get_options()
          build_dynamic = (getattr(options, 'generate_dynamic', False) or
                           self.data.get('build_dynamic'))
  
          if self.type == 'prebuilt_cc_library':
              self._prebuilt_cc_library(build_dynamic)
          else:
              self._cc_objects_rules()
              self._cc_library()
              if build_dynamic:
                  self._dynamic_cc_library()
function_tokens: def scons_rules ( self ) : self . _prepare_to_generate_rule ( ) options = self . blade . get_options ( ) build_dynamic = ( getattr ( options , 'generate_dynamic' , False ) or self . data . get ( 'build_dynamic' ) ) if self . type == 'prebuilt_cc_library' : self . _prebuilt_cc_library ( build_dynamic ) else : self . _cc_objects_rules ( ) self . _cc_library ( ) if build_dynamic : self . _dynamic_cc_library ( )