mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 21:41:44 +01:00
20 lines
363 B
Python
20 lines
363 B
Python
|
#!/usr/bin/env python
|
||
|
# encoding: utf-8
|
||
|
# Thomas Nagy, 2010 (ita)
|
||
|
|
||
|
"""
|
||
|
Erlang support
|
||
|
"""
|
||
|
|
||
|
from waflib import TaskGen
|
||
|
|
||
|
TaskGen.declare_chain(name = 'erlc',
|
||
|
rule = '${ERLC} ${ERLC_FLAGS} ${SRC[0].abspath()} -o ${TGT[0].name}',
|
||
|
ext_in = '.erl',
|
||
|
ext_out = '.beam')
|
||
|
|
||
|
def configure(conf):
|
||
|
conf.find_program('erlc', var='ERLC')
|
||
|
conf.env.ERLC_FLAGS = []
|
||
|
|