Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-514

Add option to configure compiler output directory

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1
    • Component/s: Compiler (General)
    • Labels:
      None
    • Environment:

      Thrift SVN revision 752489 from trunk.

      Description

      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

        Attachments

        1. thrift_514_gendir.diff
          8 kB
          Mike Heffner
        2. thrift_514_noclobber_init.diff
          1 kB
          Mike Heffner

          Activity

            People

            • Assignee:
              jfarrell Jake Farrell
              Reporter:
              mike.heffner Mike Heffner
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: