« Return to Thread: Noob Help with Custom Generator

Noob Help with Custom Generator

by DrAnony :: Rate this Message:

Reply to Author | View in Thread

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>

 « Return to Thread: Noob Help with Custom Generator