diff options
Diffstat (limited to 'linden/indra/develop.py')
-rwxr-xr-x | linden/indra/develop.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/linden/indra/develop.py b/linden/indra/develop.py index 9f7c4f2..b72f1d3 100755 --- a/linden/indra/develop.py +++ b/linden/indra/develop.py | |||
@@ -70,7 +70,7 @@ def quote(opts): | |||
70 | class PlatformSetup(object): | 70 | class PlatformSetup(object): |
71 | generator = None | 71 | generator = None |
72 | build_types = {} | 72 | build_types = {} |
73 | for t in ('Debug', 'Release', 'RelWithDebInfo'): | 73 | for t in ('Debug', 'Release', 'ReleaseSSE2', 'RelWithDebInfo'): |
74 | build_types[t.lower()] = t | 74 | build_types[t.lower()] = t |
75 | 75 | ||
76 | build_type = build_types['relwithdebinfo'] | 76 | build_type = build_types['relwithdebinfo'] |
@@ -80,6 +80,7 @@ class PlatformSetup(object): | |||
80 | project_name = 'meta-impy' | 80 | project_name = 'meta-impy' |
81 | distcc = True | 81 | distcc = True |
82 | cmake_opts = [] | 82 | cmake_opts = [] |
83 | using_express = False | ||
83 | 84 | ||
84 | def __init__(self): | 85 | def __init__(self): |
85 | self.script_dir = os.path.realpath( | 86 | self.script_dir = os.path.realpath( |
@@ -502,6 +503,7 @@ class WindowsSetup(PlatformSetup): | |||
502 | for version in 'vc80 vc90 vc100 vc71'.split(): | 503 | for version in 'vc80 vc90 vc100 vc71'.split(): |
503 | if self.find_visual_studio_express(version): | 504 | if self.find_visual_studio_express(version): |
504 | self._generator = version | 505 | self._generator = version |
506 | self.using_express = True | ||
505 | print 'Building with ', self.gens[version]['gen'] , "Express edition" | 507 | print 'Building with ', self.gens[version]['gen'] , "Express edition" |
506 | break | 508 | break |
507 | else: | 509 | else: |
@@ -578,6 +580,7 @@ class WindowsSetup(PlatformSetup): | |||
578 | key = _winreg.OpenKey(reg, key_str) | 580 | key = _winreg.OpenKey(reg, key_str) |
579 | value = _winreg.QueryValueEx(key, value_str)[0]+"IDE" | 581 | value = _winreg.QueryValueEx(key, value_str)[0]+"IDE" |
580 | print 'Found: %s' % value | 582 | print 'Found: %s' % value |
583 | self.using_express = True | ||
581 | return value | 584 | return value |
582 | except WindowsError, err: | 585 | except WindowsError, err: |
583 | print >> sys.stderr, "Didn't find ", self.gens[gen]['gen'] | 586 | print >> sys.stderr, "Didn't find ", self.gens[gen]['gen'] |
@@ -586,7 +589,7 @@ class WindowsSetup(PlatformSetup): | |||
586 | def get_build_cmd(self): | 589 | def get_build_cmd(self): |
587 | if self.incredibuild: | 590 | if self.incredibuild: |
588 | config = self.build_type | 591 | config = self.build_type |
589 | if self.gens[self.generator]['ver'] in [ r'8.0', r'9.0' ]: | 592 | if self.gens[self.generator]['ver'] in [ r'8.0', r'9.0', r'10.0', r'7.1' ]: |
590 | config = '\"%s|Win32\"' % config | 593 | config = '\"%s|Win32\"' % config |
591 | 594 | ||
592 | return "buildconsole %s.sln /build %s" % (self.project_name, config) | 595 | return "buildconsole %s.sln /build %s" % (self.project_name, config) |
@@ -626,7 +629,8 @@ class WindowsSetup(PlatformSetup): | |||
626 | '''Override to add the vstool.exe call after running cmake.''' | 629 | '''Override to add the vstool.exe call after running cmake.''' |
627 | PlatformSetup.run_cmake(self, args) | 630 | PlatformSetup.run_cmake(self, args) |
628 | if self.unattended == 'OFF': | 631 | if self.unattended == 'OFF': |
629 | self.run_vstool() | 632 | if self.using_express == False: |
633 | self.run_vstool() | ||
630 | 634 | ||
631 | def run_vstool(self): | 635 | def run_vstool(self): |
632 | for build_dir in self.build_dirs(): | 636 | for build_dir in self.build_dirs(): |
@@ -706,11 +710,12 @@ Options: | |||
706 | --unattended build unattended, do not invoke any tools requiring | 710 | --unattended build unattended, do not invoke any tools requiring |
707 | a human response | 711 | a human response |
708 | --universal build a universal binary on Mac OS X (unsupported) | 712 | --universal build a universal binary on Mac OS X (unsupported) |
709 | -t | --type=NAME build type ("Debug", "Release", or "RelWithDebInfo") | 713 | -t | --type=NAME build type ("Debug", "Release", "ReleaseSSE2", or "RelWithDebInfo") |
714 | -m32 | -m64 build architecture (32-bit or 64-bit) | ||
710 | -N | --no-distcc disable use of distcc | 715 | -N | --no-distcc disable use of distcc |
711 | -G | --generator=NAME generator name | 716 | -G | --generator=NAME generator name |
712 | Windows: VC71 or VS2003 (default), VC80 (VS2005) or | 717 | Windows: VC80 (VS2005--default), VC71 (VS2003), |
713 | VC90 (VS2008) | 718 | VC90 (VS2008), or VC100 (VS2010) |
714 | Mac OS X: Xcode (default), Unix Makefiles | 719 | Mac OS X: Xcode (default), Unix Makefiles |
715 | Linux: Unix Makefiles (default), KDevelop3 | 720 | Linux: Unix Makefiles (default), KDevelop3 |
716 | -p | --project=NAME set the root project name. (Doesn't effect makefiles) | 721 | -p | --project=NAME set the root project name. (Doesn't effect makefiles) |