Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 42620103d8ee8a2d972d3103bad0ab73 > files > 248

waf-1.5.19-1.fc14.noarch.rpm

#! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008 (ita)

VERSION='0.0.1'
APPNAME='simple_tool'
top = '.'
out = 'build'

import os
import TaskGen
TaskGen.declare_chain(
	name = 'dang',
	action = '${COPY} ${SRC} ${TGT}',
	ext_in = '.coin',
	ext_out = '.cpp',
	reentrant = 0
)

def configure(conf):
	cmd = os.getcwd() + os.sep + "cp.py"
	conf.env.COPY = cmd

	env2 = conf.env.copy()
	conf.set_env_name('debug', env2)
	conf.setenv('debug')

	conf.env.COPY = "echo 'the command to execute is ' %s && %s" % (cmd, cmd)

def build(bld):
	foo = TaskGen.task_gen()
	foo.source = "uh.coin"
	#foo.env = bld.env_of_name("default")
	foo.env = bld.env_of_name("debug")