summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-03-03 07:20:19 +0000
committerkonablend <[email protected]>2009-03-03 07:20:19 +0000
commite7953e7aca0a2c5bb9b87864b812ff9df87e036c (patch)
tree740b061091fbc0fd425354e3f6ec995176357da9 /make
parentf57d755e052a91f4cd61bacc0d75998bafbab3b6 (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')
-rw-r--r--make/configure.py9
-rw-r--r--make/include/main.rules2
2 files changed, 8 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( '' )
diff --git a/make/include/main.rules b/make/include/main.rules
index 1f996cdc5..e7511a263 100644
--- a/make/include/main.rules
+++ b/make/include/main.rules
@@ -29,6 +29,8 @@ mrproper: xclean
###############################################################################
+include $(PROJECT/)make/include/base.rules
+
include $(MODULES:%=$(PROJECT/)%/module.rules)
-include $(PROJECT/)make/variant/$(HOST.system).rules
-include $(PROJECT/)make/variant/$(HOST.system).$(BUILD.machine).rules