# HG changeset patch # User Gustavo J. A. M. Carneiro # Date 1220373139 -3600 # Node ID 1f5d9b97a1a2a8a5cfd7fe53b8fff912aaf99315 # Parent b6804efbe16b6753de86adbebf779f92b7ceb66c Fix compilation of Python bindings when libsqlite3 is not available (and so the class SqliteDataOutput is omitted). diff -r b6804efbe16b -r 1f5d9b97a1a2 bindings/python/ns3modulegen.py --- a/bindings/python/ns3modulegen.py Tue Sep 02 11:12:42 2008 +0100 +++ b/bindings/python/ns3modulegen.py Tue Sep 02 17:32:19 2008 +0100 @@ -115,6 +115,10 @@ if 'DISABLE_GTK_CONFIG_STORE' in os.environ: root_module.classes.remove(root_module['ns3::GtkConfigStore']) + # if no sqlite, the class SqliteDataOutput is disabled + if 'SQLITE_STATS' in os.environ: + root_module.classes.remove(root_module['ns3::SqliteDataOutput']) + root_module.generate(out, '_ns3') out.close() diff -r b6804efbe16b -r 1f5d9b97a1a2 bindings/python/wscript --- a/bindings/python/wscript Tue Sep 02 11:12:42 2008 +0100 +++ b/bindings/python/wscript Tue Sep 02 17:32:19 2008 +0100 @@ -374,6 +374,8 @@ bindgen.os_env = dict(os.environ) if not env['ENABLE_GTK_CONFIG_STORE']: bindgen.os_env['DISABLE_GTK_CONFIG_STORE'] = "1" + if not env['SQLITE_STATS']: + bindgen.os_env['SQLITE_STATS'] = "1" ## we build python bindings if either we have the tools to