aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/SConstruct')
-rw-r--r--linden/indra/SConstruct12
1 files changed, 9 insertions, 3 deletions
diff --git a/linden/indra/SConstruct b/linden/indra/SConstruct
index 1dfb980..9bc78c4 100644
--- a/linden/indra/SConstruct
+++ b/linden/indra/SConstruct
@@ -77,6 +77,9 @@ except:
77# COMMAND LINE OPTIONS # 77# COMMAND LINE OPTIONS #
78######################### 78#########################
79 79
80DEFAULT_CHANNEL='Release' # TODO: Make this the full channel name, i.e. "Second Life Release"
81
82
80opts = Options() 83opts = Options()
81opts.AddOptions( 84opts.AddOptions(
82 EnumOption('BUILD', 'Set build type', 'releasefordownload', 85 EnumOption('BUILD', 'Set build type', 'releasefordownload',
@@ -92,8 +95,8 @@ opts.AddOptions(
92 BoolOption('COLORGCC', 'Enabled colorgcc', True), 95 BoolOption('COLORGCC', 'Enabled colorgcc', True),
93 EnumOption('GRID', 'Client package\'s default grid', 'default', 96 EnumOption('GRID', 'Client package\'s default grid', 'default',
94 allowed_values=('default', 'aditi', 'agni', 'durga', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak', 'yami', 'mohini', 'aruna', 'mitra', 'nandi', 'radha', 'ravi')), 97 allowed_values=('default', 'aditi', 'agni', 'durga', 'ganga', 'shakti', 'siva', 'soma', 'uma', 'vaak', 'yami', 'mohini', 'aruna', 'mitra', 'nandi', 'radha', 'ravi')),
95 EnumOption('CHANNEL', 'Client package\'s default channel', 'Release', 98 ('CHANNEL', 'Client package\'s channel', DEFAULT_CHANNEL),
96 allowed_values=('Release', 'Release Candidate', 'WindLight')), 99 ('LOGINCHANNEL', 'Client package\'s channel for login only', False),
97 BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True), 100 BoolOption('ELFIO', 'Enabled enhanced backtraces with libELFIO symbol extraction support', True),
98 BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False), 101 BoolOption('STANDALONE', 'Build using system packages (implies OPENSOURCE)', False),
99 BoolOption('RUNTESTS', 'Run tests at end of compilation', True), 102 BoolOption('RUNTESTS', 'Run tests at end of compilation', True),
@@ -111,6 +114,7 @@ enable_gstreamer = optenv['GSTREAMER']
111enable_colorgcc = optenv['COLORGCC'] 114enable_colorgcc = optenv['COLORGCC']
112grid = optenv['GRID'] 115grid = optenv['GRID']
113channel = optenv['CHANNEL'] 116channel = optenv['CHANNEL']
117login_channel = optenv['LOGINCHANNEL']
114standalone = optenv['STANDALONE'] 118standalone = optenv['STANDALONE']
115runtests = optenv['RUNTESTS'] 119runtests = optenv['RUNTESTS']
116opensource = standalone or optenv['OPENSOURCE'] 120opensource = standalone or optenv['OPENSOURCE']
@@ -680,7 +684,7 @@ for build_target in targets:
680 product_name = 'SecondLife_' + arch + '_' + "_".join(version_viewer.split(".")) 684 product_name = 'SecondLife_' + arch + '_' + "_".join(version_viewer.split("."))
681 if grid not in ['default', 'agni']: 685 if grid not in ['default', 'agni']:
682 product_name += "_" + grid.upper() 686 product_name += "_" + grid.upper()
683 if channel not in ['Release']: 687 if channel != DEFAULT_CHANNEL:
684 product_name += "_" + "".join((channel.upper()).split()) 688 product_name += "_" + "".join((channel.upper()).split())
685 package_name = product_name + '.tar.bz2' 689 package_name = product_name + '.tar.bz2'
686 complete_channel = 'Second Life ' + channel 690 complete_channel = 'Second Life ' + channel
@@ -689,6 +693,8 @@ for build_target in targets:
689 'grid':grid, 693 'grid':grid,
690 'ch':complete_channel, 694 'ch':complete_channel,
691 'arch':arch} 695 'arch':arch}
696 if login_channel:
697 cmd += ' --login_channel=\'Second Life %s\'' % (login_channel)
692 env.Command('newview/' + package_name, 'newview/viewer_manifest.py', cmd) 698 env.Command('newview/' + package_name, 'newview/viewer_manifest.py', cmd)
693 Depends('newview/' + package_name, output_bin + '-stripped') 699 Depends('newview/' + package_name, output_bin + '-stripped')
694 Depends('newview/' + package_name, output_crashlogger_bin + '-stripped') 700 Depends('newview/' + package_name, output_crashlogger_bin + '-stripped')