summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2009-05-19 23:41:59 +0000
committerMark Palange <palange@lindenlab.com>2009-05-19 23:41:59 +0000
commit8c5ca38f1d48edace2a67df00dc319381dc313af (patch)
tree5838b815167730697700483ae2f572724b18803f /indra
parentd43bd2cfdd1ef9e1e7c6d187b09eb2ef07ec4122 (diff)
Fix to develop.py to build on 64 bit windows.
Added March 2009 DirectX SDK to cmake config. Reviewed by brad
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/DirectX.cmake2
-rwxr-xr-xindra/develop.py36
2 files changed, 24 insertions, 14 deletions
diff --git a/indra/cmake/DirectX.cmake b/indra/cmake/DirectX.cmake
index d406f3785b..29724ee2fc 100644
--- a/indra/cmake/DirectX.cmake
+++ b/indra/cmake/DirectX.cmake
@@ -3,6 +3,7 @@
if (VIEWER AND WINDOWS)
find_path(DIRECTX_INCLUDE_DIR dxdiag.h
"$ENV{DXSDK_DIR}/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"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Include"
@@ -23,6 +24,7 @@ if (VIEWER AND WINDOWS)
find_path(DIRECTX_LIBRARY_DIR dxguid.lib
"$ENV{DXSDK_DIR}/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"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Lib/x86"
diff --git a/indra/develop.py b/indra/develop.py
index 90b665e8b1..f670c66639 100755
--- a/indra/develop.py
+++ b/indra/develop.py
@@ -538,27 +538,35 @@ class WindowsSetup(PlatformSetup):
'-DROOT_PROJECT_NAME:STRING=%(project_name)s '
'%(opts)s "%(dir)s"' % args)
+ def get_HKLM_registry_value(self, key_str, value_str):
+ import _winreg
+ reg = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE)
+ key = _winreg.OpenKey(reg, key_str)
+ value = _winreg.QueryValueEx(key, value_str)[0]
+ print 'Found: %s' % value
+ return value
+
def find_visual_studio(self, gen=None):
if gen is None:
gen = self._generator
gen = gen.lower()
+ value_str = (r'EnvironmentDirectory')
+ key_str = (r'SOFTWARE\Microsoft\VisualStudio\%s\Setup\VS' %
+ self.gens[gen]['ver'])
+ print ('Reading VS environment from HKEY_LOCAL_MACHINE\%s\%s' %
+ (key_str, value_str))
try:
- import _winreg
- key_str = (r'SOFTWARE\Microsoft\VisualStudio\%s\Setup\VS' %
- self.gens[gen]['ver'])
- value_str = (r'EnvironmentDirectory')
- print ('Reading VS environment from HKEY_LOCAL_MACHINE\%s\%s' %
- (key_str, value_str))
- print key_str
-
- reg = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE)
- key = _winreg.OpenKey(reg, key_str)
- value = _winreg.QueryValueEx(key, value_str)[0]
- print 'Found: %s' % value
- return value
+ return self.get_HKLM_registry_value(key_str, value_str)
except WindowsError, err:
+ key_str = (r'SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%s\Setup\VS' %
+ self.gens[gen]['ver'])
+
+ try:
+ return self.get_HKLM_registry_value(key_str, value_str)
+ except:
print >> sys.stderr, "Didn't find ", self.gens[gen]['gen']
- return ''
+
+ return ''
def get_build_cmd(self):
if self.incredibuild: