Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
manifest.cpp
Go to the documentation of this file.
1 /* Copyright (c) 2011 Wildfire Games
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining
4  * a copy of this software and associated documentation files (the
5  * "Software"), to deal in the Software without restriction, including
6  * without limitation the rights to use, copy, modify, merge, publish,
7  * distribute, sublicense, and/or sell copies of the Software, and to
8  * permit persons to whom the Software is furnished to do so, subject to
9  * the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #include "precompiled.h"
24 
25 /*
26 To use XP-style themed controls, we need to use the manifest to specify the
27 desired version. (This must be set in the game's .exe in order to affect Atlas.)
28 
29 For VC7.1, we use manifest.rc to include a complete manifest file.
30 For VC8.0, which already generates its own manifest, we use the line below
31 to add the necessary parts to that generated manifest.
32 
33 ICC 10.1 IPO considers this string to be an input file, hence this
34 is currently disabled there.
35 */
36 #if MSC_VERSION >= 1400 && !ICC_VERSION && defined(LIB_STATIC_LINK)
37 # if ARCH_IA32
38 # pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df'\"")
39 # elif ARCH_AMD64
40 # pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df'\"")
41 # endif
42 
43 /*
44 The game uses some DLLs that were built with VC80. The CRT DLL wants to find itself
45 inside the executable's manifest, else it complains with R6034.
46 If we're building with VC90+, we need to explicitly include the appropriate manifest
47 entries (in addition to the VC90 CRT entries that will be added automatically).
48 (This is kind of a dirty hack.)
49 */
50 #if MSC_VERSION >= 1500 && ARCH_IA32
51 # ifdef NDEBUG
52 # pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'\"")
53 # else
54 # pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.4053' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'\"")
55 # endif
56 #endif
57 
58 /*
59 NOTE: vcbuild.exe (as used by the autobuilder) seems to ignore these linker
60 comments, so we have to duplicate these commands into premake.lua too.
61 Remember to keep them in sync with this file.
62 (Duplicate entries appear to get omitted from the .manifest file so there
63 should be no harmful effects.)
64 */
65 
66 #endif