[Scons-users] adding source builder for Java builder

Petr Petrov petr.petrov75 at gmail.com
Mon Oct 1 04:47:37 EDT 2012


Hi All.

I use scons -v
SCons by Steven Knight et al.:
script: v2.0.1.r5134, 2010/08/16 23:02:40, by bdeegan on cooldog
engine: v2.0.1.r5134, 2010/08/16 23:02:40, by bdeegan on cooldog
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
The SCons Foundation


I 'm trying to add a source builder for the Java builder to compile .idl
files.

I wrote my IdlJava builder, added it as source builder
...
env['BUILDERS']['JavaFile'].add_src_builder(idlJavaBuilder) .
...
I tried to add to the Java builder, but scons reported about KeyError. I
use methods src_suffixes<http://www.scons.org/doc/2.0.0.final.0/HTML/scons-api/SCons.Builder.BuilderBase-class.html#src_suffixes>
(self, env), get_src_builders<http://www.scons.org/doc/2.0.0.final.0/HTML/scons-api/SCons.Builder.BuilderBase-class.html#get_src_builders>
(self, env)
to check right adding my builder to JavaFile builder.


But If I try to compile .dil files by this way

env.JavaFile(classDir, Glob('src/*.java') + Glob('*.idl') )

I take error

scons: *** While building `['classes']' from `file.idl': Cannot build
multiple sources with different extensions: .java, .idl

or error like "I don't know how to compile .idl"



What should I do? I need sub-builder for building right dependency list



Actually I'm writing my Java builder, it goes much better, but I have a
problem with scanning .java files. ... browsing sources...



Best Wishes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121001/03dc5655/attachment-0001.html>


More information about the Scons-users mailing list