If GtkConfigStore support is disabled, disable the python bindings for it, or else compilation fails.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-07-12 22:06:15 +01:00
parent 90e5f8cf0e
commit 1132bcbd99
2 changed files with 9 additions and 0 deletions

View File

@@ -107,6 +107,11 @@ def main():
mod = __import__(local_module)
mod.register_functions(root_module)
# if GtkConfigStore support is disabled, disable the class wrapper
if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
root_module.classes.remove(root_module['ns3::GtkConfigStore'])
root_module.generate(out, '_ns3')
out.close()