A generic CORBA wrapper is going to be complicated. Here's my 2p
worth. This may be more appropriate to automake than autoconf...

Ruslan Shevchenko writes:
 > 1. different ORB use different extensions. 
 > 
 >   what mean .idl_c.hh : idl 2 c and hh ?
 >    can it be somethin like:
 >          idl_$(CORBA_CPP_EXT).$(CORBA_H_EXT) 
 >    ?
 >    If yes, then I will include $(CORBA_CXX_EXT).$(CORBA_H_EXT) in
 >   next revision of CORBA macroses.
 >

For portabality you would need at least six variables (examples for
TAO given), which you could use as you suggest.

IDL_CXX_CLIENT_HEADER_EXT = C.h
IDL_CXX_CLIENT_SOURCE_EXT = C.cpp
IDL_CXX_SERVER_HEADER_EXT = S.h
IDL_CXX_SERVER_SOURCE_EXT = S.cpp
IDL_CXX_TIE_HEADER_EXT = _T.h
IDL_CXX_TIE_SOURCE_EXT = _T.cpp

It may be a good idea to choose standard suffixes and then coerce the
idl compiler to produce them (using a wrapper script if necessary).


 > 2. different ORB generate different set of output files.
 > 
 > >     source='$<' object='$*_c.hh $*_s.hh $*_c.cpp $*_s.cpp $*C.i $*S.i' \
 > 
 >    In "generalized" my views, it looks, like:
 >      source='$<'  object='$*'$(IDL_CLN_H_SUFFIX) \
 >  '$*'$(IDL_CLN_CPP_SUFFIX)  '$*'$(IDL_SRV_H_SUFFIX) \
 >  '$*'$(IDL_SVR_CPP_SUFFIX) \
 >   [pseudocode:] $(IDL_CLN_H1_SUFFIX) if it is not "no" \
 >   ....
 > 
 > O'key, in principle is possible.
 > Can such string be generated automatically by automake ?
 
This is the same problem as above. I have recently submitted patches
to automake to give patsubst style substitution which would do the
job.

 > 
 > 2. How to determinate, what generated source needed for client 
 >  and what to server (?). Usially I needs in separate Client
 >  and Server+Client set of files, defined in Makefiles{.in,.am}
 >  In case of using idldept we need in special
 >  separate utility for this ? Can you think a little on this topic,
 >  and help me to decide: where it must be called and what it must
 >  produce.
 > 

Now thats a hard question :)

 > 3.  What means deptmode ?
 > 

Its included in CVS automake to to dependency checking.

 > 4.  different ORB use different names for compilers.  
 >  It can be $(IDL2CXX) $(IDLFLAGS) $< ?
 >

Yes, something like that.

Cheers,
Alex

Reply via email to