Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
8c5ca38f
Commit
8c5ca38f
authored
16 years ago
by
Mark Palange
Browse files
Options
Downloads
Patches
Plain Diff
Fix to develop.py to build on 64 bit windows.
Added March 2009 DirectX SDK to cmake config. Reviewed by brad
parent
d43bd2cf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/cmake/DirectX.cmake
+2
-0
2 additions, 0 deletions
indra/cmake/DirectX.cmake
indra/develop.py
+22
-14
22 additions, 14 deletions
indra/develop.py
with
24 additions
and
14 deletions
indra/cmake/DirectX.cmake
+
2
−
0
View file @
8c5ca38f
...
@@ -3,6 +3,7 @@
...
@@ -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 (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"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Include"
...
@@ -23,6 +24,7 @@ if (VIEWER AND WINDOWS)
...
@@ -23,6 +24,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 (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"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK (March 2008)/Lib/x86"
...
...
This diff is collapsed.
Click to expand it.
indra/develop.py
+
22
−
14
View file @
8c5ca38f
...
@@ -538,26 +538,34 @@ def cmake_commandline(self, src_dir, build_dir, opts, simple):
...
@@ -538,26 +538,34 @@ def cmake_commandline(self, src_dir, build_dir, opts, simple):
'
-DROOT_PROJECT_NAME:STRING=%(project_name)s
'
'
-DROOT_PROJECT_NAME:STRING=%(project_name)s
'
'
%(opts)s
"
%(dir)s
"'
%
args
)
'
%(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
):
def
find_visual_studio
(
self
,
gen
=
None
):
if
gen
is
None
:
if
gen
is
None
:
gen
=
self
.
_generator
gen
=
self
.
_generator
gen
=
gen
.
lower
()
gen
=
gen
.
lower
()
try
:
value_str
=
(
r
'
EnvironmentDirectory
'
)
import
_winreg
key_str
=
(
r
'
SOFTWARE\Microsoft\VisualStudio\%s\Setup\VS
'
%
key_str
=
(
r
'
SOFTWARE\Microsoft\VisualStudio\%s\Setup\VS
'
%
self
.
gens
[
gen
][
'
ver
'
])
self
.
gens
[
gen
][
'
ver
'
])
value_str
=
(
r
'
EnvironmentDirectory
'
)
print
(
'
Reading VS environment from HKEY_LOCAL_MACHINE\%s\%s
'
%
print
(
'
Reading VS environment from HKEY_LOCAL_MACHINE\%s\%s
'
%
(
key_str
,
value_str
))
(
key_str
,
value_str
))
print
key_str
try
:
return
self
.
get_HKLM_registry_value
(
key_str
,
value_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
except
WindowsError
,
err
:
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
'
]
print
>>
sys
.
stderr
,
"
Didn
'
t find
"
,
self
.
gens
[
gen
][
'
gen
'
]
return
''
return
''
def
get_build_cmd
(
self
):
def
get_build_cmd
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment