[ scummvm-Patches-2774908 ] Improvements for MSVC9 Project Files

SourceForge.net noreply at sourceforge.net
Sun Apr 19 22:47:12 CEST 2009


Patches item #2774908, was opened at 2009-04-19 22:47
Message generated for change (Tracker Item Submitted) made by nolange
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2774908&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Norbert Lange (nolange)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improvements for MSVC9 Project Files

Initial Comment:
I improved the Files for MSVC9 (Visualstudio 2008), primary for easily adding include paths and changing other global Options. The only downside I see so far is that the script files to automatically create Projects for MSVC8,MSVC7 will need to be adapted... and I hope older Versions even are capable of using Property-Sheets. I`ll sum up what I did:

** Disabled Warnings:

Some warnings were disabled in the project-files, I moved all disabling into common/scummsys.h
No sense IMHO to do this at different places.
This unfortunatly means that all .cpp files have to include this Header at some point - I added it to mt32emu.h so that the mt32 Emulation compiles without errors.

** removed all implicitly defined Macros, like _DEBUG, NDEBUG, _CONSOLE. The IDE takes care of this.

** Use property sheets for common options.

I added a hierarchy of Property-Sheets, an undefined Setting will be inherited from the next Level, there are 3 Levels:
Project -> ScummVM_<Configuration Name> -> ScummVM_Global

ScummVM_Global
	Intended for setting solution-specific settings, like:
		Include Paths for required libraries (SDL, zlib, ogg, mad, flac, ...),
		Preprocessor-Definitions (used by multiple projects, eg. USE_ZLIB, ..)

ScummVN_<Configuration Name> (means ScummVM_Release32, ScummVM_Debug32 so far):
	Set Solution-Wide Compiler/Linker options here.

This helps for having uniform and easily changeable compiler-options, and since Project-Files (for engines atleast) are now little more than a list of source-files they could be generated automatically more easily

** changed the Output Directories.

Now there will be just 1 Folder per Configuration (Debug/Release), alot tidier IMHO. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2774908&group_id=37116




More information about the Scummvm-tracker mailing list