Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38289

Teach SCons about .idl files

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0, 4.4.2
    • None
    • None
    • Fully Compatible
    • v4.4
    • Dev Platform 2020-11-02

    Description

      Currently, building IDL targets requires invoking a bit of python code in the sources list to generate the c++ sources.  For example:

       

      env.Library(
          target='some_library',
          source=[
              'foo.cpp',
              env.Idlc('bar.idl')[0],
          ],
      )
      

      The env.Idlc() invocation creates the generated c++ source and header files and SCons ultimately sees:

      env.Library(
          target='some_library',
          source=[
              'foo.cpp',
              'bar_gen.cpp',
          ],
      )
      

      It would be a small, but repeated quality of life improvement to teach SCons about .idl files explicitly so that source lists could be written more simply and readably as:

      env.Library(
          target='some_library',
          source=[
              'foo.cpp',
              'bar.idl',
          ],
      )
      

      Attachments

        Activity

          People

            daniel.moody@mongodb.com Daniel Moody
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: