You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Janice Vann <va...@gmail.com> on 2013/11/16 06:15:58 UTC
Compiling include files?
This might be another really obvious question, if so my apologies. When I
first tried the Delphi tutorial, I was a little confused until I figured
out the the shared.thrift file had to be compiled as well as the
tutorial.thrift file. There does not appear to be a compiler option that
compiles the include files as well, unless I'm missing something?
For example we have files like:
Service.thrift
IncludeShared.thrift
IncludeCommand.thrift
IncludeQuery.thrift
and compiling them like:
thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
IncludeShared.thrift
thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
IncludeCommand.thrift
thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
IncludeQuery.thrift
thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types Service.thrift
It seems like we should build the Service.thrift and it would compile the
includes- is that possible?
Thanks!
Janice
Re: Compiling include files?
Posted by Janice Vann <va...@gmail.com>.
Thank you, that was very helpful. I thought that must be missing from the
--help listing, but went back and looked again and indeed it is there.
On Sat, Nov 16, 2013 at 12:02 AM, Byron Sorrells
<by...@gmail.com>wrote:
> Try using -r for recursive
>
Re: Compiling include files?
Posted by Byron Sorrells <by...@gmail.com>.
Try using -r for recursive
> On Nov 15, 2013, at 11:15 PM, Janice Vann <va...@gmail.com> wrote:
>
> This might be another really obvious question, if so my apologies. When I
> first tried the Delphi tutorial, I was a little confused until I figured
> out the the shared.thrift file had to be compiled as well as the
> tutorial.thrift file. There does not appear to be a compiler option that
> compiles the include files as well, unless I'm missing something?
>
> For example we have files like:
> Service.thrift
> IncludeShared.thrift
> IncludeCommand.thrift
> IncludeQuery.thrift
>
> and compiling them like:
> thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
> IncludeShared.thrift
> thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
> IncludeCommand.thrift
> thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types
> IncludeQuery.thrift
> thrift-0.9.1.exe -verbose -o .\ --gen delphi:register_types Service.thrift
>
> It seems like we should build the Service.thrift and it would compile the
> includes- is that possible?
>
> Thanks!
> Janice