diff options
Diffstat (limited to 'linden/indra/SConstruct')
-rw-r--r-- | linden/indra/SConstruct | 12 |
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 | ||
80 | DEFAULT_CHANNEL='Release' # TODO: Make this the full channel name, i.e. "Second Life Release" | ||
81 | |||
82 | |||
80 | opts = Options() | 83 | opts = Options() |
81 | opts.AddOptions( | 84 | opts.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'] | |||
111 | enable_colorgcc = optenv['COLORGCC'] | 114 | enable_colorgcc = optenv['COLORGCC'] |
112 | grid = optenv['GRID'] | 115 | grid = optenv['GRID'] |
113 | channel = optenv['CHANNEL'] | 116 | channel = optenv['CHANNEL'] |
117 | login_channel = optenv['LOGINCHANNEL'] | ||
114 | standalone = optenv['STANDALONE'] | 118 | standalone = optenv['STANDALONE'] |
115 | runtests = optenv['RUNTESTS'] | 119 | runtests = optenv['RUNTESTS'] |
116 | opensource = standalone or optenv['OPENSOURCE'] | 120 | opensource = 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') |