aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/develop.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlinden/indra/develop.py32
1 files changed, 19 insertions, 13 deletions
diff --git a/linden/indra/develop.py b/linden/indra/develop.py
index 830f74d..bd8f080 100755
--- a/linden/indra/develop.py
+++ b/linden/indra/develop.py
@@ -6,7 +6,7 @@
6# 6#
7# $LicenseInfo:firstyear=2007&license=viewergpl$ 7# $LicenseInfo:firstyear=2007&license=viewergpl$
8# 8#
9# Copyright (c) 2007-2008, Linden Research, Inc. 9# Copyright (c) 2007-2009, Linden Research, Inc.
10# 10#
11# Second Life Viewer Source Code 11# Second Life Viewer Source Code
12# The source code in this file ("Source Code") is provided by Linden Lab 12# The source code in this file ("Source Code") is provided by Linden Lab
@@ -277,7 +277,7 @@ class LinuxSetup(UnixSetup):
277 project_name=self.project_name 277 project_name=self.project_name
278 ) 278 )
279 if not self.is_internal_tree(): 279 if not self.is_internal_tree():
280 args.update({'cxx':'g++', 'server':'FALSE', 'viewer':'TRUE'}) 280 args.update({'cxx':'g++', 'server':'OFF', 'viewer':'ON'})
281 else: 281 else:
282 if self.distcc: 282 if self.distcc:
283 distcc = self.find_in_path('distcc') 283 distcc = self.find_in_path('distcc')
@@ -289,12 +289,13 @@ class LinuxSetup(UnixSetup):
289 gcc = distcc + self.find_in_path( 289 gcc = distcc + self.find_in_path(
290 self.debian_sarge and 'g++-3.3' or 'g++-4.1', 290 self.debian_sarge and 'g++-3.3' or 'g++-4.1',
291 'g++', baseonly) 291 'g++', baseonly)
292 args.update({'cxx': ' '.join(gcc), 'server': 'TRUE', 292 args.update({'cxx': ' '.join(gcc), 'server': 'ON',
293 'viewer': 'FALSE'}) 293 'viewer': 'OFF'})
294 else: 294 else:
295 gcc41 = distcc + self.find_in_path('g++-4.1', 'g++', baseonly) 295 gcc41 = distcc + self.find_in_path('g++-4.1', 'g++', baseonly)
296 args.update({'cxx': ' '.join(gcc41), 'server':'FALSE', 296 args.update({'cxx': ' '.join(gcc41),
297 'viewer':'TRUE'}) 297 'server': 'OFF',
298 'viewer': 'ON'})
298 cmd = (('cmake -DCMAKE_BUILD_TYPE:STRING=%(type)s ' 299 cmd = (('cmake -DCMAKE_BUILD_TYPE:STRING=%(type)s '
299 '-G %(generator)r -DSERVER:BOOL=%(server)s ' 300 '-G %(generator)r -DSERVER:BOOL=%(server)s '
300 '-DVIEWER:BOOL=%(viewer)s -DSTANDALONE:BOOL=%(standalone)s ' 301 '-DVIEWER:BOOL=%(viewer)s -DSTANDALONE:BOOL=%(standalone)s '
@@ -390,7 +391,7 @@ class DarwinSetup(UnixSetup):
390 return 'darwin' 391 return 'darwin'
391 392
392 def arch(self): 393 def arch(self):
393 if self.unattended == 'TRUE': 394 if self.unattended == 'ON':
394 return 'universal' 395 return 'universal'
395 else: 396 else:
396 return UnixSetup.arch(self) 397 return UnixSetup.arch(self)
@@ -406,7 +407,7 @@ class DarwinSetup(UnixSetup):
406 universal='', 407 universal='',
407 type=self.build_type.upper() 408 type=self.build_type.upper()
408 ) 409 )
409 if self.unattended == 'TRUE': 410 if self.unattended == 'ON':
410 args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\'' 411 args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\''
411 #if simple: 412 #if simple:
412 # return 'cmake %(opts)s %(dir)r' % args 413 # return 'cmake %(opts)s %(dir)r' % args
@@ -548,7 +549,7 @@ class WindowsSetup(PlatformSetup):
548 def run_cmake(self, args=[]): 549 def run_cmake(self, args=[]):
549 '''Override to add the vstool.exe call after running cmake.''' 550 '''Override to add the vstool.exe call after running cmake.'''
550 PlatformSetup.run_cmake(self, args) 551 PlatformSetup.run_cmake(self, args)
551 if self.unattended == 'FALSE': 552 if self.unattended == 'OFF':
552 self.run_vstool() 553 self.run_vstool()
553 554
554 def run_vstool(self): 555 def run_vstool(self):
@@ -558,6 +559,9 @@ class WindowsSetup(PlatformSetup):
558 prev_build = open(stamp).read().strip() 559 prev_build = open(stamp).read().strip()
559 except IOError: 560 except IOError:
560 prev_build = '' 561 prev_build = ''
562 if prev_build == self.build_type:
563 # Only run vstool if the build type has changed.
564 continue
561 vstool_cmd = (os.path.join('tools','vstool','VSTool.exe') + 565 vstool_cmd = (os.path.join('tools','vstool','VSTool.exe') +
562 ' --solution ' + 566 ' --solution ' +
563 os.path.join(build_dir,'Imprudence.sln') + 567 os.path.join(build_dir,'Imprudence.sln') +
@@ -589,7 +593,7 @@ class WindowsSetup(PlatformSetup):
589class CygwinSetup(WindowsSetup): 593class CygwinSetup(WindowsSetup):
590 def __init__(self): 594 def __init__(self):
591 super(CygwinSetup, self).__init__() 595 super(CygwinSetup, self).__init__()
592 self.generator = 'vc71' 596 self.generator = 'vc80'
593 597
594 def cmake_commandline(self, src_dir, build_dir, opts, simple): 598 def cmake_commandline(self, src_dir, build_dir, opts, simple):
595 dos_dir = commands.getoutput("cygpath -w %s" % src_dir) 599 dos_dir = commands.getoutput("cygpath -w %s" % src_dir)
@@ -638,6 +642,8 @@ Commands:
638 clean delete all build directories (does not affect sources) 642 clean delete all build directories (does not affect sources)
639 configure configure project by running cmake 643 configure configure project by running cmake
640 644
645If you do not specify a command, the default is "configure".
646
641Command-options for "configure": 647Command-options for "configure":
642 We use cmake variables to change the build configuration. 648 We use cmake variables to change the build configuration.
643 -DSERVER:BOOL=OFF Don't configure simulator/dataserver/etc 649 -DSERVER:BOOL=OFF Don't configure simulator/dataserver/etc
@@ -649,7 +655,7 @@ Examples:
649 Set up a viewer-only project for your system: 655 Set up a viewer-only project for your system:
650 develop.py configure -DSERVER:BOOL=OFF 656 develop.py configure -DSERVER:BOOL=OFF
651 657
652 Set up a Visual Studio 2005 project with "package" target: 658 Set up a Visual Studio 2005 project with package target (to build installer):
653 develop.py -G vc80 configure -DPACKAGE:BOOL=ON 659 develop.py -G vc80 configure -DPACKAGE:BOOL=ON
654''' 660'''
655 661
@@ -673,9 +679,9 @@ For example: develop.py configure -DSERVER:BOOL=OFF"""
673 print usage_msg.strip() 679 print usage_msg.strip()
674 sys.exit(0) 680 sys.exit(0)
675 elif o in ('--standalone',): 681 elif o in ('--standalone',):
676 setup.standalone = 'TRUE' 682 setup.standalone = 'ON'
677 elif o in ('--unattended',): 683 elif o in ('--unattended',):
678 setup.unattended = 'TRUE' 684 setup.unattended = 'ON'
679 elif o in ('-t', '--type'): 685 elif o in ('-t', '--type'):
680 try: 686 try:
681 setup.build_type = setup.build_types[a.lower()] 687 setup.build_type = setup.build_types[a.lower()]