File: fluid.py

package info (click to toggle)
xiphos 4.0.4%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,288 kB
  • ctags: 4,500
  • sloc: ansic: 29,213; cpp: 13,069; python: 12,734; xml: 3,170; sh: 39; makefile: 36
file content (17 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /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)