VC2010 cmake alterations. Lib stuff not included.

This commit is contained in:
unknown
2010-10-05 01:34:35 -05:00
parent 2a584cb0fd
commit 227a72c421
9 changed files with 24 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ if (WINDOWS)
/Zc:forScope
/nologo
/Oy-
/Zc:wchar_t- #wchar_t is now on by default in VS2010. Force it to be disabled.
)
if(MSVC80 OR MSVC90)

View File

@@ -3,6 +3,7 @@
if (VIEWER AND WINDOWS)
find_path(DIRECTX_INCLUDE_DIR dxdiag.h
"$ENV{DXSDK_DIR}/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2010)/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2009)/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Include"
@@ -24,6 +25,7 @@ if (VIEWER AND WINDOWS)
find_path(DIRECTX_LIBRARY_DIR dxguid.lib
"$ENV{DXSDK_DIR}/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2010)/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2009)/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Lib/x86"

View File

@@ -483,11 +483,16 @@ class WindowsSetup(PlatformSetup):
'vc90' : {
'gen' : r'Visual Studio 9 2008',
'ver' : r'9.0'
},
'vc100' : {
'gen' : r'Visual Studio 10',
'ver' : r'10.0'
}
}
gens['vs2003'] = gens['vc71']
gens['vs2005'] = gens['vc80']
gens['vs2008'] = gens['vc90']
gens['vs2010'] = gens['vc100']
search_path = r'C:\windows'
exe_suffixes = ('.exe', '.bat', '.com')
@@ -499,14 +504,14 @@ class WindowsSetup(PlatformSetup):
def _get_generator(self):
if self._generator is None:
for version in 'vc80 vc90 vc71'.split():
for version in 'vc80 vc90 vc100 vc71'.split():
if self.find_visual_studio(version):
self._generator = version
print 'Building with ', self.gens[version]['gen']
break
else:
print >> sys.stderr, 'Cannot find a Visual Studio installation, testing for express editions'
for version in 'vc80 vc90 vc71'.split():
for version in 'vc80 vc90 vc100 vc71'.split():
if self.find_visual_studio_express(version):
self._generator = version
self.using_express = True
@@ -729,8 +734,8 @@ Options:
-m32 | -m64 build architecture (32-bit or 64-bit)
-N | --no-distcc disable use of distcc
-G | --generator=NAME generator name
Windows: VC71 or VS2003 (default), VC80 (VS2005) or
VC90 (VS2008)
Windows: VC71 or VS2003 (default), VC80 (VS2005)
VC90 (VS2008), or VC100 (VS2010)
Mac OS X: Xcode (default), Unix Makefiles
Linux: Unix Makefiles (default), KDevelop3
-p | --project=NAME set the root project name. (Doesn't effect makefiles)

View File

@@ -45,6 +45,7 @@
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#include "llvorbisencode.h"
#include <iterator> //VS2010
extern LLAudioEngine *gAudiop;

View File

@@ -38,6 +38,7 @@
#include "llmath.h"
#include "llmemtype.h"
#include "llstl.h"
#include <iterator> //VS2010
/**
* LLSegment

View File

@@ -37,6 +37,7 @@
#include <algorithm>
#include "llstl.h"
#include "message.h"
#include <iterator> //VS2010
///----------------------------------------------------------------------------
/// Class lldispatcher

View File

@@ -43,6 +43,7 @@
#include "llmemtype.h"
#include "llstl.h"
#include "llstat.h"
#include <iterator> //VS2010
// These should not be enabled in production, but they can be
// intensely useful during development for finding certain kinds of

Binary file not shown.

View File

@@ -550,6 +550,10 @@ namespace VSTool
case "10.00":
version = "VC90";
break;
case "11.00":
version = "VC100";
break;
default:
throw new ApplicationException("Unknown .sln version: " + format);
}
@@ -585,6 +589,10 @@ namespace VSTool
case "VC90":
progid = "VisualStudio.DTE.9.0";
break;
case "VC100":
progid = "VisualStudio.DTE.10.0";
break;
default:
throw new ApplicationException("Can't handle VS version: " + version);
}