waf/waflib/extras/erlang.py

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 = []