mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 22:46:31 +01:00
84d2966377
This way there won't be strange tools/.waf-12343 directories hanging about. All that waf needs to run is inside the tools/wafadmin directory.
19 lines
350 B
Python
19 lines
350 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
# Ali Sabil, 2007
|
|
|
|
import TaskGen
|
|
|
|
TaskGen.declare_chain(
|
|
name = 'gob2',
|
|
rule = '${GOB2} -o ${TGT[0].bld_dir(env)} ${GOB2FLAGS} ${SRC}',
|
|
ext_in = '.gob',
|
|
ext_out = '.c'
|
|
)
|
|
|
|
def detect(conf):
|
|
gob2 = conf.find_program('gob2', var='GOB2', mandatory=True)
|
|
conf.env['GOB2'] = gob2
|
|
conf.env['GOB2FLAGS'] = ''
|
|
|