[ekg2-commit] r4267 - trunk: trunk/SConstruct
SVN commit
svn w toxygen.net
Sob, 9 Sie 2008, 23:42:52 CEST
Author: peres
Date: 2008-08-09 23:42:52 +0200 (Sat, 09 Aug 2008)
New Revision: 4267
Modified:
trunk/SConstruct
Log:
Some more fancy output + install PREFIX.
Modified: trunk/SConstruct
===================================================================
--- trunk/SConstruct 2008-08-09 21:41:47 UTC (rev 4266)
+++ trunk/SConstruct 2008-08-09 21:42:52 UTC (rev 4267)
@@ -10,10 +10,11 @@
'SHARED_LIBS': True
}
dirs = {
+ 'PREFIX': '/usr',
'SYSCONFDIR': '/etc',
- 'LOCALEDIR': '/usr/share/locale',
- 'DATADIR': '/usr/share',
- 'PLUGINDIR': '/usr/lib/ekg2/plugins'
+ 'LOCALEDIR': '$PREFIX/share/locale',
+ 'DATADIR': '$PREFIX/share',
+ 'PLUGINDIR': '$PREFIX/lib/ekg2/plugins'
}
mapped = {
'UNICODE': 'USE_UNICODE'
@@ -88,6 +89,9 @@
defines = {}
for var in dirs.keys():
+ if var == 'PREFIX':
+ continue
+ env[var] = env.subst(env[var])
defines[var] = env[var]
for var,val in consts.items():
defines[var] = val
@@ -176,12 +180,26 @@
pl[type].append('%s%s%s' % (plugin_symbols[plugin_states.index(info['state'])], plugin, optdeps))
+# some fancy output
+
print
if pl:
print 'Enabled plugins:'
for type, plugs in pl.items():
print '- %s: %s' % (type, ', '.join(plugs))
+ print
+print 'Options:'
+print '- unicode: %s' % (env['UNICODE'])
+print
+print 'Paths:'
+for k in dirs.keys():
+ print '- %s: %s' % (k, env[k])
+print
+print 'Build environment:'
+for k in ['CC', 'CCFLAGS', 'LINK', 'LINKFLAGS']:
+ print '- %s: %s' % (k, env[k])
+
conf.Finish()
writedefines()
Więcej informacji o liście dyskusyjnej ekg2-commit