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

Teach SCons about .idl files

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0, 4.4.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4
    • Dev Platform 2020-11-02

      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',
          ],
      )
      

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

              Created:
              Updated:
              Resolved: