dbus¶
Compiles dbus files with dbus-binding-tool
Typical usage:
def options(opt):
opt.load('compiler_c dbus')
def configure(conf):
conf.load('compiler_c dbus')
def build(bld):
tg = bld.program(
includes = '.',
source = bld.path.ant_glob('*.c'),
target = 'gnome-hello')
tg.add_dbus_file('test.xml', 'test_prefix', 'glib-server')
-
waflib.Tools.dbus.
taskgen_method
(func)¶ Decorator that registers method as a task generator method. The function must accept a task generator as first parameter:
from waflib.TaskGen import taskgen_method @taskgen_method def mymethod(self): pass
- Parameters
func (function) – task generator method to add
- Return type
function
-
waflib.Tools.dbus.
before_method
(*k)[source]¶ Decorator that registera task generator method which will be executed before the functions of given name(s):
from waflib.TaskGen import feature, before @feature('myfeature') @before_method('fun2') def fun1(self): print('feature 1!') @feature('myfeature') def fun2(self): print('feature 2!') def build(bld): bld(features='myfeature')
- Parameters
k (list of string) – method names
-
waflib.Tools.dbus.
add_dbus_file
(self, filename, prefix, mode)[source]¶ Task generator method
Adds a dbus file to the list of dbus files to process. Store them in the attribute dbus_lst.
- Parameters
filename (string) – xml file to compile
prefix (string) – dbus binding tool prefix (–prefix=prefix)
mode (string) – dbus binding tool mode (–mode=mode)
-
waflib.Tools.dbus.
process_dbus
(self)[source]¶ Processes the dbus files stored in the attribute dbus_lst to create
waflib.Tools.dbus.dbus_binding_tool
instances.
-
class
waflib.Tools.dbus.
dbus_binding_tool
(*k, **kw)[source]¶ Bases:
waflib.Task.Task
Compiles a dbus file
-
color
= 'BLUE'¶
-
ext_out
= ['.h']¶
-
shell
= True¶
-
dep_nodes
¶
-
env
¶
-
generator
¶
-
hasrun
¶
-
hcode
= b'${DBUS_BINDING_TOOL} --prefix=${DBUS_BINDING_TOOL_PREFIX} --mode=${DBUS_BINDING_TOOL_MODE} --output=${TGT} ${SRC}'¶
-
inputs
¶
-
orig_run_str
= '${DBUS_BINDING_TOOL} --prefix=${DBUS_BINDING_TOOL_PREFIX} --mode=${DBUS_BINDING_TOOL_MODE} --output=${TGT} ${SRC}'¶
-
outputs
¶
-
run_after
¶
-
vars
= ['DBUS_BINDING_TOOL', 'DBUS_BINDING_TOOL_MODE', 'DBUS_BINDING_TOOL_PREFIX']¶
-