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

Teach SCons about .idl files

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.2
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4
    • Sprint:
      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

            Assignee:
            daniel.moody Daniel Moody
            Reporter:
            sara.golemon Sara Golemon
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: