midori/waf-modules/wafadmin/3rdparty/fluid.py

18 lines
612 B
Python
Raw Normal View History

2013-10-24 03:26:27 +00:00
#! /usr/bin/env python
# encoding: utf-8
import Task
from TaskGen import extension
Task.simple_task_type('fluid','${FLUID} -c -o ${TGT[0].abspath(env)} -h ${TGT[1].abspath(env)} ${SRC}','BLUE',shell=False,ext_out='.cxx')
def fluid(self,node):
cpp=node.change_ext('.cpp')
hpp=node.change_ext('.hpp')
self.create_task('fluid',node,[cpp,hpp])
if'cxx'in self.features:
self.allnodes.append(cpp)
def detect(conf):
fluid=conf.find_program('fluid',var='FLUID',mandatory=True)
conf.check_cfg(path='fltk-config',package='',args='--cxxflags --ldflags',uselib_store='FLTK',mandatory=True)
extension('.fl')(fluid)