Boost logo

Boost-Build :

From: DrAnony (antamiga_at_[hidden])
Date: 2008-01-31 02:06:38


I have an executable which produces cpp files, but it can produce more than
one for a single input file. I tried to modify the Boost.build verbatim
example and can't quite get the result I need.

The process is this -

- run myConverter on file1.icd
- This produces two cpp and h files, which don't have the same name as the
input file
- Take all the cpp files and compile them into a library

This is my current setup -

icd.jam
-------------------
import type ;
import generators ;

type.register ICD : icd ;

generators.register-standard icd.inline-file : ICD : CPP ;

actions inline-file
{
    ..\exes\myConverter $(>) dict
}

Jamfile
-------------------------
import icd ;

project icdDicts : usage-requirements <include>. ;

lib icdLib : [ glob *.icd ]
         : <link>static <include>../includes ;

On the first pass, bjam will run the converter on all the icd files. I
can't figure out how to add another entry or change things so that it simply
runs the converter and then does a glob *.cpp.

Thanks,
DrA>

-- 
View this message in context: http://www.nabble.com/Noob-Help-with-Custom-Generator-tp15199256p15199256.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk