Revision: 813
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=813&view=rev
Author: mithro
Date: 2008-11-23 15:37:17 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
Add a few extra 64bit build differences.
Modified Paths:
--------------
trunk/python-ogre/environment.py
Modified: trunk/python-ogre/environment.py
===================================================================
--- trunk/python-ogre/environment.py 2008-11-23 12:24:12 UTC (rev 812)
+++ trunk/python-ogre/environment.py 2008-11-23 15:37:17 UTC (rev 813)
@@ -40,6 +40,12 @@
if os.sys.platform == 'darwin':
return True
return False
+
+def is64():
+ if os.uname()[4] == 'x86_64':
+ return True
+ return False
+
##
## set this to True if you compiled Ogre with Threads enabled
@@ -53,8 +59,7 @@
PythonOgreMajorVersion = "1"
PythonOgreMinorVersion = "6"
PythonOgrePatchVersion = "0"
-
-
+
##
## these should be fine with auto create - however override them as necessary
##
@@ -334,7 +339,10 @@
pythonModule = False
active = True
if isLinux():
- base = 'Cg-2.0_May2008_x86'
+ if is64():
+ base = 'Cg-2.0_May2008_x86_64'
+ else:
+ base = 'Cg-2.0_May2008_x86'
source = [
[wget, " http://developer.download.nvidia.com/cg/Cg_2.0/2.0.0015/"+base+".tgz",downloadPath]
]
@@ -482,7 +490,10 @@
bjambuilddir = 'bin.macosxx86'
bjambuildset = 'darwin'
else:
- bjambuilddir = 'bin.linuxx86_64'
+ if is64():
+ bjambuilddir = 'bin.linuxx86_64'
+ else:
+ bjambuilddir = 'bin.linuxx86'
bjambuildset = 'gcc'
source = [
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|