parent
c15bfa85fd
commit
d958df0486
2
lib/ntk
2
lib/ntk
|
@ -1 +1 @@
|
|||
Subproject commit 71a410b2e1f79f89b453c91ead3c5d668f6a7d97
|
||||
Subproject commit dae177189b12f74ea01ac2389b76326c06d9be78
|
|
@ -0,0 +1,18 @@
|
|||
from waflib import Task
|
||||
from waflib.TaskGen import extension
|
||||
|
||||
class ntk_fluid(Task.Task):
|
||||
color = 'BLUE'
|
||||
ext_out = ['.h']
|
||||
run_str = '${NTK_FLUID} -c -o ${TGT[0].abspath()} -h ${TGT[1].abspath()} ${SRC}'
|
||||
|
||||
@extension('.fl')
|
||||
def fluid(self, node):
|
||||
"""add the .fl to the source list; the cxx file generated will be compiled when possible"""
|
||||
cpp = node.change_ext('.C')
|
||||
hpp = node.change_ext('.H')
|
||||
self.create_task('ntk_fluid', node, [cpp, hpp])
|
||||
|
||||
if 'cxx' in self.features:
|
||||
self.source.append(cpp)
|
||||
|
Loading…
Reference in New Issue