Roger James wrote:
Robert Osfield wrote:
Hi Roger,

This is some experiment VS versioning.  The path to the
PlatformSpecifics/Windows/OpenThreadsVersionInfo.rc.in is wrong in the
src/OpenThreads/CMakeLists.txt, but the file is there (I just double
checked that I check it in.)  While I made the changes, unfortuantely
I don't a VS box to test them on...
  
Hi Robert,

Looks OK now. Just kicked off a build.

Roger
Robert,

I spoke too soon. The build fails because it cannot find afxres.h. I had quick look at the resource files you were trying to include and looks like you have a load of old MS appstudio stuff in there which I don't think you need. I have attached examples of how we include version resources in our products. We only split out the stuff into environversion.h because that file gets automatically updated with a new build number every time we do a release build.

Roger




// 108
#define FILE_VERSION        1,3,2,108
#define PRODUCT_VERSION     1,3,2,108
#define FILE_VERSION_STR     "1, 3, 2, 108\n"
#define PRODUCT_VERSION_STR  "1, 3, 2, 108\n"
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
#include "environversion.h"

VS_VERSION_INFO VERSIONINFO
 FILEVERSION FILE_VERSION
 PRODUCTVERSION PRODUCT_VERSION
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x40004L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080904b0"
        BEGIN
            VALUE "Comments", "\0"
            VALUE "CompanyName", "Virtual Outlooks Ltd.\0"
            VALUE "FileDescription", "Environ Communicator\0"
            VALUE "FileVersion", FILE_VERSION_STR
            VALUE "InternalName", "Environ Communicator\0"
            VALUE "LegalCopyright", "Copyright © 2003,2004,2005,2006,2007\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "EnvironCommunicator.exe\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "Virtual Outlooks Ltd. Environ Communicator\0"
            VALUE "ProductVersion", PRODUCT_VERSION_STR
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x809, 1200
    END
END

#endif    // !_MAC
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to