forked from nasa-jpl/autoRIFT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
66 lines (52 loc) · 2.15 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright 2011, by the California Institute of Technology. ALL RIGHTS RESERVED.
# United States Government Sponsorship acknowledged. Any commercial use must be
# negotiated with the Office of Technology Transfer at the California Institute of
# Technology. This software is subject to U.S. export control laws and regulations
# and has been classified as EAR99. By accepting this software, the user agrees to
# comply with all applicable U.S. export laws and regulations. User has the
# responsibility to obtain export licenses, or other export authority as may be
# required before exporting such information to foreign countries or providing
# access to foreign persons.
#
# Author: Eric Gurrola
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import os
Import('env')
Import('envapplications')
Import('envcomponents')
envcontrib = env.Clone()
package = 'contrib'
envcontrib['PACKAGE'] = os.path.join(envcomponents['PACKAGE'],package)
envcontrib['INSTALL_COMPS'] = os.path.join(envcomponents['INSTALL_PATH'],package)
envcontrib['INSTALL_APPS'] = envapplications['INSTALL_PATH']
envcontrib['INSTALL_PATH'] = envcontrib['INSTALL_COMPS']
install = envcontrib['INSTALL_PATH']
initFile = '__init__.py'
if not os.path.exists(initFile):
fout = open(initFile,"w")
fout.write("#!/usr/bin/env python")
fout.close()
listFiles = [initFile]
envcontrib.Install(install,listFiles)
envcontrib.Alias('install',install)
Export('envcontrib')
issi = os.path.join('issi','SConscript')
SConscript(issi)
snaphu = os.path.join('Snaphu','SConscript')
SConscript(snaphu)
demUtils = os.path.join('demUtils','SConscript')
SConscript(demUtils)
frameUtils = os.path.join('frameUtils','SConscript')
SConscript(frameUtils)
unwUtils = os.path.join('UnwrapComp','SConscript')
SConscript(unwUtils)
if 'MOTIFLIBPATH' in envcontrib.Dictionary():
mdx = os.path.join('mdx','SConscript')
SConscript(mdx)
rfi = os.path.join('rfi', 'SConscript')
SConscript(rfi)
SConscript('PyCuAmpcor/SConscript')
SConscript('splitSpectrum/SConscript')
SConscript('geo_autoRIFT/SConscript')