Improvements for MSVC9 Project Files
|Reported by:||SF/nolange||Owned by:|
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.
Ticket imported from: #2774908. Ticket imported from: patches/1116.