thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Farrell <>
Subject Re: Recommended way to incorporate thrift to the build system.
Date Fri, 03 Jun 2011 19:19:03 GMT
if there is something missing from the thrift documentation then we should add it to the documentation
rather than starting a second set of documentation. Fragmenting the guides and how-to docs
will not benefit a new user who is just starting out and will only make it harder to keep
things up to date. I agree that we are lacking in rich documentation, but i think that with
a little effort we can greatly help the project as a whole. Your initial steps at adding missing
pieces is great and I would love to incorporate this into the existing thrift wiki. If the
wiki is proving to be too hard to maintain and having it checked into the repo would be better
(similar to the website) then i'm all for that as well. If you would like to discuss this
or any ideas you have on making the documentation better please email me or find me in the
#thrift irc channel


On Jun 3, 2011, at 12:54 PM, Diwaker Gupta wrote:

> Thanks Roberto, that's a good point. We use Maven for Java projects
> and GNU Make for C++ projects with Thrift at work and the integration
> has been relatively easy so far. I'm happy to add examples for CMake
> and other build systems if they're useful.
> Diwaker
> On Fri, Jun 3, 2011 at 2:09 AM, Roberto Aloi
> <> wrote:
>> This is actually a very good point. Why not to add a complete example to:
>> That would be extremely helpful for most Thrift developer and would avoid re-inventing
the wheel for many of them.
>> Regards,
>> Roberto Aloi
>> @robertoaloi
>> ----- "Jake Farrell" <> wrote:
>>> Have you tried using something like this yet? if you need an example
>>> with make let me know
>>> Jake
>>> SET( THRIFT_FILE "something.thrift" )
>>> SET(THRIFT_FLAGS "-r --gen-cpp:pure_enums -o
>>> FIND_PROGRAM(THIRFT_BIN thrift /bin /usr/bin /usr/local/bin)
>>>     MESSAGE("Generating ${THRIFT_COMMAND}")
>>>     execute_process(THRIFT_COMMAND . RESULT_VARIABLE result)
>>>     MESSAGE("Result: ${result}")
>>>     MESSAGE(SEND_ERROR "Cannot find thrift in your path.")
>>> On Jun 2, 2011, at 1:27 PM, jeeyoung kim wrote:
>>>> Hey guys.
>>>> I was wondering what is the recommended way to incorporate thrift
>>> into to
>>>> the build system. Right now, for the build system @ work, we just
>>> compile
>>>> the *.thrift file, and commit them in the source repository. This
>>> works, but
>>>> it doesn't feel very comfortable committing automatically generated
>>> files.
>>>> For other builds @ work, we're using CMake to compile the c++
>>> project. Any
>>>> solution that uses make / cmake / some other build system would be
>>>> appreciated. thanks.
>>>> -Jee

View raw message