ctdb-scripts: Support storing statd-callout state in cluster filesystem
[samba4-gss.git] / third_party / waf / waflib / extras / fluid.py
blob4814a35b94d2e0c14c1d3663a46f45aa64c7785a
1 #!/usr/bin/python
2 # encoding: utf-8
3 # Grygoriy Fuchedzhy 2009
5 """
6 Compile fluid files (fltk graphic library). Use the 'fluid' feature in conjunction with the 'cxx' feature.
7 """
9 from waflib import Task
10 from waflib.TaskGen import extension
12 class fluid(Task.Task):
13 color = 'BLUE'
14 ext_out = ['.h']
15 run_str = '${FLUID} -c -o ${TGT[0].abspath()} -h ${TGT[1].abspath()} ${SRC}'
17 @extension('.fl')
18 def process_fluid(self, node):
19 """add the .fl to the source list; the cxx file generated will be compiled when possible"""
20 cpp = node.change_ext('.cpp')
21 hpp = node.change_ext('.hpp')
22 self.create_task('fluid', node, [cpp, hpp])
24 if 'cxx' in self.features:
25 self.source.append(cpp)
27 def configure(conf):
28 conf.find_program('fluid', var='FLUID')
29 conf.check_cfg(path='fltk-config', package='', args='--cxxflags --ldflags', uselib_store='FLTK', mandatory=True)