If GtkConfigStore support is disabled, disable the python bindings for it, or else compilation fails.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 12 Jul 2008 22:06:15 +0100
changeset 3420390db659644b
parent 3419 8d3f5c0f55fa
child 3421 b9424c43753d
If GtkConfigStore support is disabled, disable the python bindings for it, or else compilation fails.
bindings/python/ns3modulegen.py
bindings/python/wscript
     1.1 --- a/bindings/python/ns3modulegen.py	Sat Jul 12 19:33:29 2008 +0100
     1.2 +++ b/bindings/python/ns3modulegen.py	Sat Jul 12 22:06:15 2008 +0100
     1.3 @@ -107,6 +107,11 @@
     1.4          mod = __import__(local_module)
     1.5          mod.register_functions(root_module)
     1.6  
     1.7 +
     1.8 +    # if GtkConfigStore support is disabled, disable the class wrapper
     1.9 +    if 'DISABLE_GTK_CONFIG_STORE' in os.environ:
    1.10 +        root_module.classes.remove(root_module['ns3::GtkConfigStore'])
    1.11 +
    1.12      root_module.generate(out, '_ns3')
    1.13  
    1.14      out.close()
     2.1 --- a/bindings/python/wscript	Sat Jul 12 19:33:29 2008 +0100
     2.2 +++ b/bindings/python/wscript	Sat Jul 12 22:06:15 2008 +0100
     2.3 @@ -334,6 +334,10 @@
     2.4              bindgen.hidden_outputs.append("ns3_module_%s.cc" % module.replace('-', '_'))
     2.5          bindgen.prio = 50
     2.6  
     2.7 +        bindgen.os_env = dict(os.environ)
     2.8 +        if not env['ENABLE_GTK_CONFIG_STORE']:
     2.9 +            bindgen.os_env['DISABLE_GTK_CONFIG_STORE'] = "1"
    2.10 +
    2.11  
    2.12      ## we build python bindings if either we have the tools to
    2.13      ## generate them or if the pregenerated source file is already