diff options
author | James Cook <james@lindenlab.com> | 2008-08-28 16:54:47 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2008-08-28 16:54:47 +0000 |
commit | 9dfb138517eac3fb697cfce839c427a31597b5c4 (patch) | |
tree | 22fc8cce45090952c0e170c69ec0ccaaedeb0a8c /indra | |
parent | 518ff7fcfa091b88578624904c60078ddb8eb2ae (diff) |
DEV-19836 Add --package and --viewer-only options to develop.py. Ported from maint-viewer. OK by CG.
Merging revisions 95145-95146,95281-95282 of svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-viewer/maint-viewer-10 into E:\release, respecting ancestry
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/develop.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/indra/develop.py b/indra/develop.py index 2e50fb040b..fe3bfc894f 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -65,6 +65,8 @@ class PlatformSetup(object): build_type = build_types['relwithdebinfo'] standalone = 'FALSE' unattended = 'FALSE' + build_server = 'TRUE' + package = 'FALSE' distcc = True cmake_opts = [] @@ -108,6 +110,7 @@ class PlatformSetup(object): opts=quote(opts), standalone=self.standalone, unattended=self.unattended, + build_server=self.build_server, type=self.build_type.upper(), ) #if simple: @@ -115,6 +118,7 @@ class PlatformSetup(object): return ('cmake -DCMAKE_BUILD_TYPE:STRING=%(type)s ' '-DSTANDALONE:BOOL=%(standalone)s ' '-DUNATTENDED:BOOL=%(unattended)s ' + '-DSERVER:BOOL=%(build_server)s ' '-G %(generator)r %(opts)s %(dir)r' % args) def run(self, command, name=None): @@ -381,6 +385,7 @@ class DarwinSetup(UnixSetup): opts=quote(opts), standalone=self.standalone, unattended=self.unattended, + build_server=self.build_server, universal='', type=self.build_type.upper() ) @@ -392,6 +397,7 @@ class DarwinSetup(UnixSetup): '-DCMAKE_BUILD_TYPE:STRING=%(type)s ' '-DSTANDALONE:BOOL=%(standalone)s ' '-DUNATTENDED:BOOL=%(unattended)s ' + '-DSERVER:BOOL=%(build_server)s ' '%(universal)s ' '%(opts)s %(dir)r' % args) @@ -467,12 +473,16 @@ class WindowsSetup(PlatformSetup): opts=quote(opts), standalone=self.standalone, unattended=self.unattended, + build_server=self.build_server, + package=self.package, ) #if simple: # return 'cmake %(opts)s "%(dir)s"' % args return ('cmake -G "%(generator)s" ' '-DSTANDALONE:BOOL=%(standalone)s ' '-DUNATTENDED:BOOL=%(unattended)s ' + '-DSERVER:BOOL=%(build_server)s ' + '-DPACKAGE:BOOL=%(package)s ' '%(opts)s "%(dir)s"' % args) def find_visual_studio(self, gen=None): @@ -590,6 +600,10 @@ Options: --unattended build unattended, do not invoke any tools requiring a human response -t | --type=NAME build type ("Debug", "Release", or "RelWithDebInfo") + -V | --viewer-only build/configure the viewer, skipping the server, for + Windows/Mac only (Linux has auto-detect) + -P | --package config 'package' target in Windows solution that will + build an installer -N | --no-distcc disable use of distcc -G | --generator=NAME generator name Windows: VC71 or VS2003 (default), VC80 (VS2005) or VC90 (VS2008) @@ -608,8 +622,8 @@ def main(arguments): try: opts, args = getopt.getopt( arguments, - '?hNt:G:', - ['help', 'standalone', 'no-distcc', 'unattended', 'type=', 'incredibuild', 'generator=']) + '?hNVPt:G:', + ['help', 'standalone', 'no-distcc', 'viewer-only', 'package', 'unattended', 'type=', 'incredibuild', 'generator=']) except getopt.GetoptError, err: print >> sys.stderr, 'Error:', err sys.exit(1) @@ -639,6 +653,10 @@ def main(arguments): setup.distcc = False elif o in ('--incredibuild'): setup.incredibuild = True + elif o in ('-V', '--viewer-only'): + setup.build_server = 'FALSE' + elif o in ('-P', '--package'): + setup.package = 'TRUE' else: print >> sys.stderr, 'INTERNAL ERROR: unhandled option', repr(o) sys.exit(1) |