C++ Logo

sg15

Advanced search

Re: [SG15] RFC: Requirements to consume a prebuilt library from arbitrary build systems

From: Matthew Woehlke <mwoehlke.floss_at_[hidden]>
Date: Wed, 27 Oct 2021 15:47:19 -0400
On 27/10/2021 15.24, Daniel Ruoso via SG15 wrote:
> On Wed, Oct 27, 2021, 12:06 Ben Craig <ben.craig_at_[hidden]> wrote:
>> How do I invoke your code generator (like with gRPC, Apache Thrift,
>> Microsoft RPC, QT)? How do I deal with dependencies with your code
>> generator?
>
> That's an interesting borderline topic.
>
> There's a line to be drawn between consuming libraries and describing how
> tools are used.

Indeed, and "how do I invoke your code generator" may be unsolvable,
unless by "invoke" you are only speaking of run-time environment
requirements. In other words, knowing how to provide proper inputs
(including arguments) to the tool is a domain-specific problem that we
can't reasonably expect to solve. Given appropriate inputs, however,
encoding the knowledge necessary to successfully *launch* the tool,
however, may be in scope. (As in, path to the tool, and if it needs any
tool-specific environment variables set. Ideally with some level of
abstraction such as 'set the LD_LIBRARY_PATH equivalent to the path of
this other library target'.)

-- 
Matthew

Received on 2021-10-27 14:47:15