parameters: (self)
return_statement: return (out_dir, res_index_name)
docstring: The helper method to generate scons resource rules, mainly applies builder.
docstring_summary: The helper method to generate scons resource rules, mainly applies builder.
docstring_tokens: The helper method to generate scons resource rules mainly applies builder .
function: def _resource_library_rules_helper(self):
          """The helper method to generate scons resource rules, mainly applies builder.  """
          env_name = self._env_name()
          out_dir = os.path.join(self.build_path, self.path)
          res_index_name = self._regular_variable_name(self.name)
          res_index_source = res_index_name + '.c'
          res_index_header = res_index_name + '.h'
  
          src_list = []
          for src in self.srcs:
              src_path = os.path.join(self.path, src)
              src_list.append(src_path)
  
          cmd_bld = '%s_header_cmd_bld' % res_index_name
          res_index_header_path = os.path.join(out_dir, res_index_header)
          res_index_source_path = os.path.join(out_dir, res_index_source)
          self._write_rule('%s["SOURCE_PATH"] = "%s"' % (env_name, self.path))
          self._write_rule('%s["TARGET_NAME"] = "%s"' % (env_name, res_index_name))
          self._write_rule('%s = %s.ResourceIndex(["%s", "%s"], %s)' % (
                       cmd_bld, env_name, res_index_source_path, res_index_header_path,
                       src_list))
  
          return (out_dir, res_index_name)
function_tokens: def _resource_library_rules_helper ( self ) : env_name = self . _env_name ( ) out_dir = os . path . join ( self . build_path , self . path ) res_index_name = self . _regular_variable_name ( self . name ) res_index_source = res_index_name + '.c' res_index_header = res_index_name + '.h' src_list = [ ] for src in self . srcs : src_path = os . path . join ( self . path , src ) src_list . append ( src_path ) cmd_bld = '%s_header_cmd_bld' % res_index_name res_index_header_path = os . path . join ( out_dir , res_index_header ) res_index_source_path = os . path . join ( out_dir , res_index_source ) self . _write_rule ( '%s["SOURCE_PATH"] = "%s"' % ( env_name , self . path ) ) self . _write_rule ( '%s["TARGET_NAME"] = "%s"' % ( env_name , res_index_name ) ) self . _write_rule ( '%s = %s.ResourceIndex(["%s", "%s"], %s)' % ( cmd_bld , env_name , res_index_source_path , res_index_header_path , src_list ) ) return ( out_dir , res_index_name )