2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-29 21:41:44 +01:00
waf/waflib/extras/erlang.py

20 lines
363 B
Python
Raw Normal View History

2011-09-10 11:13:51 +02:00
#!/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 = []