C++ Logo

sg15

Advanced search

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

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Thu, 28 Oct 2021 14:21:29 +0000
Agreed.

-- Gaby

________________________________
From: SG15 <sg15-bounces_at_[hidden]> on behalf of Gamblin, Todd via SG15 <sg15_at_[hidden]>
Sent: Wednesday, October 27, 2021 1:31:43 PM
To: Michael Spencer via SG15 <sg15_at_[hidden]>
Cc: Gamblin, Todd <gamblin2_at_[hidden]>
Subject: Re: [SG15] RFC: Requirements to consume a prebuilt library from arbitrary build systems

I don’t think this is a borderline topic if you really want people to use packages that are prebuilt and, say, installed on a system. People don’t consume “libraries” — they consume *packages* as installed by the packages’ maintainers. In many cases that may include programs that need to be exec’d either by the client code or by the package, at build or runtime. Similarly there are libraries out there that aren’t usable without associated data.

One example of such a library would be SWIG (https://github.com/swig/swig<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fswig%2Fswig&data=04%7C01%7Cgdr%40microsoft.com%7Cd69b79e84e0d442503c408d9998072b1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637709599245509726%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lpDaoc2v1GhTgwlVAVR9L0o1As8qwhz92jSdRhT9MKY%3D&reserved=0>). It generates C and C++ bindings for higher level languages. There are lots of code generators like this.

-Todd


On Oct 27, 2021, at 12:24 PM, Daniel Ruoso via SG15 <sg15_at_[hidden]<mailto:sg15_at_[hidden]>> wrote:

On Wed, Oct 27, 2021, 12:06 Ben Craig <ben.craig_at_[hidden]<mailto: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.

I'd be interested to learn more about the scenario where this comes in the context of a prebuilt library dependency.
_______________________________________________
SG15 mailing list
SG15_at_[hidden]<mailto:SG15_at_[hidden]>
https://urldefense.us/v3/__https://lists.isocpp.org/mailman/listinfo.cgi/sg15__;!!G2kpM7uM-TzIFchu!gU5mpBDujul3qtXXFtvkg5HMK3BX7z4PrcJ50Kx_jNFDGJSj6a9UhhsFz0IvbXKp$


Received on 2021-10-28 09:21:34