diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-04-20 22:30:59 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-04-20 22:30:59 +0000 |
| commit | 3e14fc3b2cc59d1937c0f7e8cebb452436f6afa0 (patch) | |
| tree | db06398d1b756ba24433f1d930666720fbcd4e0f | |
| parent | 6ecc2efaecdf70ed6a754bc089c7e0e4606df398 (diff) | |
| download | zcatch-3e14fc3b2cc59d1937c0f7e8cebb452436f6afa0.tar.gz zcatch-3e14fc3b2cc59d1937c0f7e8cebb452436f6afa0.zip | |
updated the bam file for the new bam
| -rw-r--r-- | default.bam | 54 |
1 files changed, 39 insertions, 15 deletions
diff --git a/default.bam b/default.bam index acafb108..7774b141 100644 --- a/default.bam +++ b/default.bam @@ -35,42 +35,66 @@ function cmd5(output, inputs) return os.execute(cmd) end +function cmd5(output, inputs) + cmd = cmd5_tool .. " " + for i,v in inputs do + cmd = cmd .. v .. " " + end + cmd = cmd .. " > " .. output + return {"cmd5 " .. PathFilename(output), cmd} +end + function dat2c(output, data, name) - print("dat2c " .. PathFilename(output) .. " = " .. PathFilename(data)) - return os.execute(dat2c_compiler .. " " .. data .. " " .. name .. " > " .. output) + return { + "dat2c " .. PathFilename(output) .. " = " .. PathFilename(data), + dat2c_compiler .. " " .. data .. " " .. name .. " > " .. output, + } end function dc_header(output, data, script) - print("dc_header " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script)) - return os.execute(dc_compiler .. " " .. data .. " " .. script .. " -h " .. output) + return { + "dc_header " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script), + dc_compiler .. " " .. data .. " " .. script .. " -h " .. output + } end function dc_source(output, data, script, headerfile) - print("dc_source " .. PathFilename(output) .. "+" .. PathFilename(headerfile) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script)) cmd = dc_compiler .. " " .. data .. " " .. script .. " -s " .. output .. " " .. headerfile - return os.execute(cmd) + return { + "dc_source " .. PathFilename(output) .. "+" .. PathFilename(headerfile) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script), + cmd + } end function dc_data(output, data, script) - print("dc_data " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script)) - return os.execute(dc_compiler .. " " .. data .. " " .. script .. " -d " .. output) + return { + "dc_data " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script), + dc_compiler .. " " .. data .. " " .. script .. " -d " .. output + } end function dc_cdata(output, data, script) - print("dc_cdata " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script)) - return os.execute(dc_compiler .. " " .. data .. " " .. script .. " -c " .. output) + return { + "dc_cdata " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script), + dc_compiler .. " " .. data .. " " .. script .. " -c " .. output + } end function netobj_source(output, proto) - print("netobj source " .. PathFilename(output) .. " = " .. PathFilename(proto)) - return os.execute(netobj_compiler .. " source " .. proto .. " " .. output) + return { + "netobj source " .. PathFilename(output) .. " = " .. PathFilename(proto), + netobj_compiler .. " source " .. proto .. " " .. output + } end function netobj_header(output, proto) - print("netobj header " .. PathFilename(output) .. " = " .. PathFilename(proto)) - return os.execute(netobj_compiler .. " header " .. proto .. " " .. output) + return { + "netobj header " .. PathFilename(output) .. " = " .. PathFilename(proto), + netobj_compiler .. " header " .. proto .. " " .. output + } end + function CHash(output, ...) local inputs = {} local ih = collect_input(arg) @@ -113,7 +137,7 @@ function NetObjCompile(protofile, sourcefile, headerfile) bam_add_job("netobj_header", headerfile, protofile) bam_add_dependency(sourcefile, protofile) bam_add_dependency(headerfile, protofile) - bam_dependency_cpp(protofile, {}) + bam_dependency_cpp(sourcefile, {"src"}) return {source = sourcefile, header=headerfile} end |