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()
  
          dep_files_map = {}
          dep_files_map = self._swig_library_rules_py()
          if (getattr(self.options, 'generate_java', False) or
              self.data.get('generate_java')):
              self._swig_library_rules_java(dep_files_map)
          if getattr(self.options, 'generate_php', False):
              if not self.php_inc_list:
                  console.error_exit('failed to build //%s:%s, please install php modules' % (
                             self.path, self.name))
              else:
                  self._swig_library_rules_php(dep_files_map)
function_tokens: def scons_rules ( self ) : self . _prepare_to_generate_rule ( ) dep_files_map = { } dep_files_map = self . _swig_library_rules_py ( ) if ( getattr ( self . options , 'generate_java' , False ) or self . data . get ( 'generate_java' ) ) : self . _swig_library_rules_java ( dep_files_map ) if getattr ( self . options , 'generate_php' , False ) : if not self . php_inc_list : console . error_exit ( 'failed to build //%s:%s, please install php modules' % ( self . path , self . name ) ) else : self . _swig_library_rules_php ( dep_files_map )