Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

#-------------------------------------------------------------------------------
#   Documentation
#

=pod

=for htmltoc    FAQ::Windows::Compile Resources

=head1 NAME

How to compile in Windows Resources

=head1 SYNOPSIS

The following fragment will add a resource file to a Program or a DLL. It is
also possible to create a static library from resources.

    Src         ( '*',     "CSCEdit.rc" );
    Src         ( '*',     "res/Toolbar.bmp" );
    Src         ( '*',     "res/CSCEdit.ico" );
    Src         ( '*',     "res/CSCEdit.rc2" );
    Src         ( '*',     "res/CSCEditDoc.ico" );

    Prog        ( '*', 'MyProg', @OBJS ,  "--Resource=CSCEdit.rc,CSCEdit.ico,CSCEditDoc.ico,Toolbar.bmp,CSCEdit.rc2" );

    SharedLib   ( '*', 'MyDLL', @OBJS ,  "--Resource=CSCEdit.rc,CSCEdit.ico,CSCEditDoc.ico,Toolbar.bmp,CSCEdit.rc2" );

A Resource Only DLL can be created with: 

    SharedLib   ( '*',
                  'MyResDLL', 
                  @OBJS ,  
                  "--Resource=CSCEdit.rc,CSCEdit.ico,CSCEditDoc.ico,Toolbar.bmp,CSCEdit.rc2", "--ResourceOnly" );