Internalize patches from downstream packagers (CDRIVER-4649)

[CDRIVER-4705] Better control over static/dynamic compilation/linking Created: 15/Aug/23  Updated: 07/Dec/23  Resolved: 24/Oct/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.25.0

Type: Sub-task Priority: Unknown
Reporter: Colby Pike Assignee: Colby Pike
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes CDRIVER-4743 Fix Windows tasks linking to libmongo... Closed
Related
related to CDRIVER-4784 Disable shared libmongoc targets if `... Closed
is related to MONGOCRYPT-583 Allow shared-only system libbson Backlog

 Comments   
Comment by Githook User [ 24/Aug/23 ]

Author:

{'name': 'vector-of-bool', 'email': 'vectorofbool@gmail.com', 'username': 'vector-of-bool'}

Message: CDRIVER-4705 Enable selective installation of libbson static/shared libraries (#1386)

  • Delete unused CMake module for legacy packaging
  • Use qualified paths for libbson #includes
  • Add an additional indirection for common name mangling
  • More compact config checks
  • Lift common platform requirements to top-level config checks
  • Define options to toggle build/install of dynamic/shared
  • Add a mongo_target_requirements() convenience function
  • Conditional build of libbson static/shared
  • Install shared/static separately:

Each type can be disabled individually, and even packaged individually.
Installs two export sets that are lazily included based on their presence
at import-time.

  • Remove usage of CMake export()

It is unlikely that this was used by any users, as we did not provide any
mechanism to import these, and the feature itself is somewhat obscure. It
complicated certain build arrangements due to its interactions with
BUILD_INTERFACE. It can be restored in the future if necessary.

Comment by Githook User [ 17/Aug/23 ]

Author:

{'name': 'vector-of-bool', 'email': 'vectorofbool@gmail.com', 'username': 'vector-of-bool'}

Message: Merge branch 'master' into CDRIVER-4705-static-dynamic-cleanup
Branch: simplify-legacy-pkgs
https://github.com/mongodb/mongo-c-driver/commit/669140e85296b3c0af9d6125b1b6f1affd65ac6d

Generated at Wed Feb 07 21:21:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.