diff options
author | konablend <[email protected]> | 2009-03-03 07:20:19 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2009-03-03 07:20:19 +0000 |
commit | e7953e7aca0a2c5bb9b87864b812ff9df87e036c (patch) | |
tree | 740b061091fbc0fd425354e3f6ec995176357da9 /make/configure.py | |
parent | f57d755e052a91f4cd61bacc0d75998bafbab3b6 (diff) |
BuildSystem:
- minor fix for report targets; aggregates were not included after splitting to rules file
- fixed bug where non-darwin platforms caused all rules to be disabled because FEATURE.xcode was erroneously set to 1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2207 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/configure.py')
-rw-r--r-- | make/configure.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/make/configure.py b/make/configure.py index 839077a45..2f8cf6e00 100644 --- a/make/configure.py +++ b/make/configure.py @@ -298,8 +298,10 @@ else: archMode = OptionMode( 0, guessHost.machine ) if guessHost.match( '*-*-darwin*' ): + d_xcode = True d_prefix = '/Applications' else: + d_xcode = False d_prefix = '/usr/local' ## create parser @@ -315,8 +317,9 @@ group.add_option( '', '--prefix', default=d_prefix, action='store', parser.add_option_group( group ) group = OptionGroup( parser, 'Feature Options' ) -group.add_option( '', '--disable-xcode', default=False, action='store_true', - help='disable Xcode (Darwin only)' ) +if d_xcode: + group.add_option( '', '--disable-xcode', default=False, action='store_true', + help='disable Xcode (Darwin only)' ) group.add_option( '', '--disable-gtk', default=False, action='store_true', help='disable GTK GUI (Linux only)' ) parser.add_option_group( group ) @@ -678,7 +681,7 @@ config.add( 'INSTALL.prefix', options.prefix ) config.add( 'INSTALL.prefix/', '$(INSTALL.prefix)/' ) config.addBlank() -config.add( 'FEATURE.xcode', 0 if options.disable_xcode else 1 ) +config.add( 'FEATURE.xcode', 0 if not hasattr(options, 'disable_xcode') or options.disable_xcode else 1 ) config.add( 'FEATURE.gtk', 0 if options.disable_gtk else 1 ) config.addMake( '' ) |