(self, source_filenames, strip_dir=0, output_dir='')
return obj_names
Adds supports for rc and res files.
Adds supports for rc and res files.
Adds supports for rc and res files .
def object_filenames(self, source_filenames, strip_dir=0, output_dir=''):
        """Adds supports for rc and res files."""
        if output_dir is None:
            output_dir = ''
        obj_names = []
        for src_name in source_filenames:
            # use normcase to make sure '.rc' is really '.rc' and not '.RC'
            base, ext = os.path.splitext(os.path.normcase(src_name))
            if ext not in (self.src_extensions + ['.rc','.res']):
                raise UnknownFileError("unknown file type '%s' (from '%s')" % \
                      (ext, src_name))
            if strip_dir:
                base = os.path.basename (base)
            if ext in ('.res', '.rc'):
                # these need to be compiled to object files
                obj_names.append (os.path.join(output_dir,
                                              base + ext + self.obj_extension))
            else:
                obj_names.append (os.path.join(output_dir,
                                               base + self.obj_extension))
        return obj_names
def object_filenames ( self , source_filenames , strip_dir = 0 , output_dir = '' ) : if output_dir is None : output_dir = '' obj_names = [ ] for src_name in source_filenames : # use normcase to make sure '.rc' is really '.rc' and not '.RC' base , ext = os . path . splitext ( os . path . normcase ( src_name ) ) if ext not in ( self . src_extensions + [ '.rc' , '.res' ] ) : raise UnknownFileError ( "unknown file type '%s' (from '%s')" % ( ext , src_name ) ) if strip_dir : base = os . path . basename ( base ) if ext in ( '.res' , '.rc' ) : # these need to be compiled to object files obj_names . append ( os . path . join ( output_dir , base + ext + self . obj_extension ) ) else : obj_names . append ( os . path . join ( output_dir , base + self . obj_extension ) ) return obj_names