2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 03:39:53 +01:00
waf/waflib/extras/erlang.py
Thomas Nagy 476f89681a Smarter "reentrant" behaviour for TaskGen.declare_chain
Re-add to the list of source files the files that have an
existing mapping.
2011-10-04 20:26:22 +02:00

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