Hi Roland,

I came across soemthing similar, you can read on how to do this here:

http://www.code-shop.com/2007/8/21/bjam-custom-generator

It starts with how to use lex/yacc, but then goes on on how the then built generator can be used in bjam by defining your own rules

Hope it helps

Regards, Dirk

Roland Schwarz wrote:
Vladimir Prus schrieb:
  
Roland Schwarz wrote:

  
    
   (<dependecy> as shown does not work)
    
      
"does not work" give me no information.
  
    
Ok, I a closer look showed me it works. I.e. the build is triggered indeed.
  
  
    
2) Tell the lib rule to add an include path to the variant
   directory where the generated.hpp has been put
    
      
Have you read the docs, where it talks about dependencies on
generated headers?
  
    
Yes I have seen this. There it talks about *.y files. But how shall I 
apply this to my
custom code generator? I am trying to put my *.psp file to the list of 
my sources
and then have a make rule like
make myfile.hpp : myfile.psp : @mycustomtoolaction ;

I get an error that says:
error: traget { myfile.psp. } has no type

Does this work only for *.y files? Or can I also use my own tools?
Would I need to write a tool similar to the y file generator?

Thank you for help.

Roland aka speedsnail

  
- Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
  
    

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

  

-- 
www.code-shop.com
+31 6 411 92 024