You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mike Heffner (JIRA)" <ji...@apache.org> on 2009/06/18 00:35:07 UTC
[jira] Updated: (THRIFT-514) Add option to configure compiler
output directory
[ https://issues.apache.org/jira/browse/THRIFT-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Heffner updated THRIFT-514:
--------------------------------
Attachment: thrift_514_gendir.diff
The attached diff adds the ability to specify a "gendir" option with each generator. For example, for Ruby:
--gen rb:gendir=foobar
will use the Ruby generator and dump to the directory "foobar" (located under the -o <dir> if specified).
The directory can be specified per-generator allowing a different directory to be specified for each. If you specify the directory as ".", it will dump to CWD or the -o directory.
The patch also pushes the directory setting code to the t_generator class.
It will error if the gendir contains a "/". Not sure if that is useful for not.
Documentation has not been updated yet, will do if others find this approach useful.
> Add option to configure compiler output directory
> -------------------------------------------------
>
> Key: THRIFT-514
> URL: https://issues.apache.org/jira/browse/THRIFT-514
> Project: Thrift
> Issue Type: New Feature
> Components: Compiler (General)
> Environment: Thrift SVN revision 752489 from trunk.
> Reporter: Mike Heffner
> Priority: Minor
> Attachments: thrift_514_gendir.diff
>
>
> I would like to change the output directory the compiler uses. For example, compiling to Python uses "gen-py" as the output directory and there is currently no option to change that. Suggest adding an option to specify the output directory. This can alleviate some issues when integrating auto-generation into Makefile build infrastructures.
> Suggestions from Michael Greene on thrift-dev@:
> Mike, If you're feeling adventurous, you can change it in your own
> copy--each of the generators supplies its own output directory name.
> For example, see the assignment out_dir_base_ = "gen-py"; in the
> constructor of
> http://svn.apache.org/repos/asf/incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.