diff options
-rw-r--r-- | ChangeLog.txt | 4 | ||||
-rw-r--r-- | linden/indra/SConstruct | 20 |
2 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index a9b9ec6..31bfe4a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,6 +1,10 @@ | |||
1 | 2008-09-19 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2008-09-19 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * linden/indra/SConstruct: | 3 | * linden/indra/SConstruct: |
4 | New optional SConstruct flag to specify an exact path to build | ||
5 | directory: BUILD_DIR. For convenience until we switch to CMake. | ||
6 | |||
7 | * linden/indra/SConstruct: | ||
4 | VWR-2865: New SConstruct flag to (not) make tarball after compiling. | 8 | VWR-2865: New SConstruct flag to (not) make tarball after compiling. |
5 | For convenience until we switch to CMake. | 9 | For convenience until we switch to CMake. |
6 | * linden/indra/newview/viewer_manifest.py: | 10 | * linden/indra/newview/viewer_manifest.py: |
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct index 5ca22e6..0f9f237 100644 --- a/linden/indra/SConstruct +++ b/linden/indra/SConstruct | |||
@@ -101,6 +101,7 @@ opts.AddOptions( | |||
101 | BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), | 101 | BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), |
102 | BoolOption('RUNTESTS', 'Run tests at end of compilation', True), | 102 | BoolOption('RUNTESTS', 'Run tests at end of compilation', True), |
103 | BoolOption('MAKE_PACKAGE', 'Create a package (tarball) after compiling "releasefordownload".', True), | 103 | BoolOption('MAKE_PACKAGE', 'Create a package (tarball) after compiling "releasefordownload".', True), |
104 | PathOption('BUILD_DIR', 'Specify full path to build directory. If omitted, use default build directory.', '', PathOption.PathAccept), | ||
104 | BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line | 105 | BoolOption('OPENSOURCE', 'Build using only non-proprietary dependencies', True) # OPENSOURCE: do not edit this line |
105 | ) | 106 | ) |
106 | optenv = Environment(options = opts) | 107 | optenv = Environment(options = opts) |
@@ -207,12 +208,19 @@ for build_target in targets: | |||
207 | system_lib_dir += '/lib_release' | 208 | system_lib_dir += '/lib_release' |
208 | lib_dir = './lib_release_' + build_target + '/' + system_str | 209 | lib_dir = './lib_release_' + build_target + '/' + system_str |
209 | 210 | ||
210 | try: | 211 | |
211 | build_dir_prefix = os.environ['TEMP_BUILD_DIR'] | 212 | build_dir = optenv['BUILD_DIR'] |
212 | except: | 213 | if build_dir != '': |
213 | build_dir_prefix = '/tmp/' + os.environ['USER'] | 214 | # Validate directory, and create if needed. |
214 | 215 | # This is a hack to get around SCons' inflexibility. | |
215 | build_dir = build_dir_prefix + os.getcwd() + '/' + system_str + '-' + build_target + '-' + buildtype | 216 | PathOption.PathIsDirCreate("BUILD_DIR", build_dir, optenv) |
217 | else: | ||
218 | try: | ||
219 | build_dir_prefix = os.environ['TEMP_BUILD_DIR'] | ||
220 | except: | ||
221 | build_dir_prefix = '/tmp/' + os.environ['USER'] + os.getcwd() + '/' | ||
222 | |||
223 | build_dir = build_dir_prefix + system_str + '-' + build_target + '-' + buildtype | ||
216 | 224 | ||
217 | ### Base include directories ### | 225 | ### Base include directories ### |
218 | 226 | ||