Changeset 1135 for trunk/scons
- Timestamp:
- 08/14/06 15:59:40 (18 years ago)
- Location:
- trunk/scons
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scons/casa.py
r1129 r1135 1 1 import os 2 2 import re 3 import sys 4 import platform 3 5 4 6 def generate(env): … … 15 17 lattices fits measures measures_f \ 16 18 tables scimath scimath_f casa wcs".split() 17 #env.Prepend( LIBS = casalibs )19 env.Prepend( LIBS = casalibs ) 18 20 casaincd = [os.path.join(env['CASAROOT'], 'code/include'), \ 19 21 os.path.join(env['CASAROOT'], 'code/casa')] … … 33 35 return True 34 36 casaarch = 'linux_gnu' 35 if sys.platform== 'darwin':37 if context.env["PLATFORM"] == 'darwin': 36 38 casaarch = 'darwin' 37 39 elif sys.platform == 'linux2' and platform.architecture()[0] == '64bit': … … 52 54 53 55 54 def AddCustomTests(conf): 55 conf.AddTests({ 56 'CheckCasa' : CheckCasa, 57 }) 56 def AddCasaTest(conf): 57 conf.AddTests({'CheckCasa': CheckCasa}) 58 58 59 env.AddCustomTests = AddCustomTests 60 61 def AddCustomPath(path=""): 62 if not len(path) or not os.path.exists(path): 63 return 64 env.PrependUnique(CPPPATH = [os.path.join(path, "include")]) 65 env.PrependUnique(LIBPATH = [os.path.join(path, "lib")]) 66 env.AddCustomPath = AddCustomPath 59 env.AddCasaTest = AddCasaTest 67 60 68 61 def exists(env):
Note:
See TracChangeset
for help on using the changeset viewer.