VC2010 cmake alterations. Lib stuff not included.
This commit is contained in:
@@ -53,6 +53,7 @@ if (WINDOWS)
|
|||||||
/Zc:forScope
|
/Zc:forScope
|
||||||
/nologo
|
/nologo
|
||||||
/Oy-
|
/Oy-
|
||||||
|
/Zc:wchar_t- #wchar_t is now on by default in VS2010. Force it to be disabled.
|
||||||
)
|
)
|
||||||
|
|
||||||
if(MSVC80 OR MSVC90)
|
if(MSVC80 OR MSVC90)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
if (VIEWER AND WINDOWS)
|
if (VIEWER AND WINDOWS)
|
||||||
find_path(DIRECTX_INCLUDE_DIR dxdiag.h
|
find_path(DIRECTX_INCLUDE_DIR dxdiag.h
|
||||||
"$ENV{DXSDK_DIR}/Include"
|
"$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 (March 2009)/Include"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include"
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Include"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 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
|
find_path(DIRECTX_LIBRARY_DIR dxguid.lib
|
||||||
"$ENV{DXSDK_DIR}/Lib/x86"
|
"$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 (March 2009)/Lib/x86"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86"
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (August 2008)/Lib/x86"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Lib/x86"
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (June 2008)/Lib/x86"
|
||||||
|
|||||||
@@ -483,11 +483,16 @@ class WindowsSetup(PlatformSetup):
|
|||||||
'vc90' : {
|
'vc90' : {
|
||||||
'gen' : r'Visual Studio 9 2008',
|
'gen' : r'Visual Studio 9 2008',
|
||||||
'ver' : r'9.0'
|
'ver' : r'9.0'
|
||||||
|
},
|
||||||
|
'vc100' : {
|
||||||
|
'gen' : r'Visual Studio 10',
|
||||||
|
'ver' : r'10.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gens['vs2003'] = gens['vc71']
|
gens['vs2003'] = gens['vc71']
|
||||||
gens['vs2005'] = gens['vc80']
|
gens['vs2005'] = gens['vc80']
|
||||||
gens['vs2008'] = gens['vc90']
|
gens['vs2008'] = gens['vc90']
|
||||||
|
gens['vs2010'] = gens['vc100']
|
||||||
|
|
||||||
search_path = r'C:\windows'
|
search_path = r'C:\windows'
|
||||||
exe_suffixes = ('.exe', '.bat', '.com')
|
exe_suffixes = ('.exe', '.bat', '.com')
|
||||||
@@ -499,14 +504,14 @@ class WindowsSetup(PlatformSetup):
|
|||||||
|
|
||||||
def _get_generator(self):
|
def _get_generator(self):
|
||||||
if self._generator is None:
|
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):
|
if self.find_visual_studio(version):
|
||||||
self._generator = version
|
self._generator = version
|
||||||
print 'Building with ', self.gens[version]['gen']
|
print 'Building with ', self.gens[version]['gen']
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print >> sys.stderr, 'Cannot find a Visual Studio installation, testing for express editions'
|
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):
|
if self.find_visual_studio_express(version):
|
||||||
self._generator = version
|
self._generator = version
|
||||||
self.using_express = True
|
self.using_express = True
|
||||||
@@ -729,8 +734,8 @@ Options:
|
|||||||
-m32 | -m64 build architecture (32-bit or 64-bit)
|
-m32 | -m64 build architecture (32-bit or 64-bit)
|
||||||
-N | --no-distcc disable use of distcc
|
-N | --no-distcc disable use of distcc
|
||||||
-G | --generator=NAME generator name
|
-G | --generator=NAME generator name
|
||||||
Windows: VC71 or VS2003 (default), VC80 (VS2005) or
|
Windows: VC71 or VS2003 (default), VC80 (VS2005)
|
||||||
VC90 (VS2008)
|
VC90 (VS2008), or VC100 (VS2010)
|
||||||
Mac OS X: Xcode (default), Unix Makefiles
|
Mac OS X: Xcode (default), Unix Makefiles
|
||||||
Linux: Unix Makefiles (default), KDevelop3
|
Linux: Unix Makefiles (default), KDevelop3
|
||||||
-p | --project=NAME set the root project name. (Doesn't effect makefiles)
|
-p | --project=NAME set the root project name. (Doesn't effect makefiles)
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include "vorbis/codec.h"
|
#include "vorbis/codec.h"
|
||||||
#include "vorbis/vorbisfile.h"
|
#include "vorbis/vorbisfile.h"
|
||||||
#include "llvorbisencode.h"
|
#include "llvorbisencode.h"
|
||||||
|
#include <iterator> //VS2010
|
||||||
|
|
||||||
extern LLAudioEngine *gAudiop;
|
extern LLAudioEngine *gAudiop;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include "llmath.h"
|
#include "llmath.h"
|
||||||
#include "llmemtype.h"
|
#include "llmemtype.h"
|
||||||
#include "llstl.h"
|
#include "llstl.h"
|
||||||
|
#include <iterator> //VS2010
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LLSegment
|
* LLSegment
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "llstl.h"
|
#include "llstl.h"
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
#include <iterator> //VS2010
|
||||||
|
|
||||||
///----------------------------------------------------------------------------
|
///----------------------------------------------------------------------------
|
||||||
/// Class lldispatcher
|
/// Class lldispatcher
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
#include "llmemtype.h"
|
#include "llmemtype.h"
|
||||||
#include "llstl.h"
|
#include "llstl.h"
|
||||||
#include "llstat.h"
|
#include "llstat.h"
|
||||||
|
#include <iterator> //VS2010
|
||||||
|
|
||||||
// These should not be enabled in production, but they can be
|
// These should not be enabled in production, but they can be
|
||||||
// intensely useful during development for finding certain kinds of
|
// intensely useful during development for finding certain kinds of
|
||||||
|
|||||||
Binary file not shown.
@@ -550,6 +550,10 @@ namespace VSTool
|
|||||||
case "10.00":
|
case "10.00":
|
||||||
version = "VC90";
|
version = "VC90";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "11.00":
|
||||||
|
version = "VC100";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ApplicationException("Unknown .sln version: " + format);
|
throw new ApplicationException("Unknown .sln version: " + format);
|
||||||
}
|
}
|
||||||
@@ -585,6 +589,10 @@ namespace VSTool
|
|||||||
case "VC90":
|
case "VC90":
|
||||||
progid = "VisualStudio.DTE.9.0";
|
progid = "VisualStudio.DTE.9.0";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "VC100":
|
||||||
|
progid = "VisualStudio.DTE.10.0";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ApplicationException("Can't handle VS version: " + version);
|
throw new ApplicationException("Can't handle VS version: " + version);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user