Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use method calls to initialize dependencies #1169

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

LeonMatthesKDAB
Copy link
Collaborator

This speeds up rebuilds, as we only need to link to upstream
dependencies initializers, not build their initializers every time.

It should also allow us to manually initialize certain libraries down
the line with something similar to Q_INIT_RESOURCE, etc.

Closes #1166

@LeonMatthesKDAB LeonMatthesKDAB force-pushed the 1166-call-initializers branch 3 times, most recently from fc2ed2a to 9b66808 Compare January 29, 2025 13:18
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1497449) to head (4f52e11).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1169   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines        12426     12426           
=========================================
  Hits         12426     12426           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LeonMatthesKDAB LeonMatthesKDAB force-pushed the 1166-call-initializers branch 11 times, most recently from d526f5e to b1d679c Compare February 5, 2025 13:54
@LeonMatthesKDAB LeonMatthesKDAB marked this pull request as ready for review February 5, 2025 14:48
@LeonMatthesKDAB LeonMatthesKDAB force-pushed the 1166-call-initializers branch 4 times, most recently from 89d86e8 to 4188ac1 Compare February 5, 2025 15:29
This speeds up rebuilds, as we only need to link to upstream
dependencies initializers, not build their initializers every time.

It should also allow us to manually initialize certain libraries down
the line with something similar to Q_INIT_RESOURCE, etc.

Closes KDAB#1166
Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :-)

@LeonMatthesKDAB LeonMatthesKDAB merged commit 2cf1b4a into KDAB:main Feb 6, 2025
16 checks passed
@LeonMatthesKDAB LeonMatthesKDAB deleted the 1166-call-initializers branch February 6, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CXX-Qt-build: Refactor initializers to just call downstream dependencies
2 participants