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

[cmake] Create one command for many resources in ADD_QGIS_RESOURCES #59232

Merged
merged 4 commits into from
Oct 27, 2024

Conversation

nyalldawson
Copy link
Collaborator

@nyalldawson nyalldawson commented Oct 27, 2024

Instead of creating a single command for EVERY resource, just build up a single command for ALL the resources.

This avoids thousands of lines of output when compiling, where we get one line per resource file. Eg:

[890/11818 452.2/sec] Generating ../../output/data/svg/sport/sport_snooker.svg
[891/11818 451.8/sec] Generating ../../output/data/svg/sport/sport_soccer.svg

Since we're installing thousands and thousands of resources (eg the svg symbols, cpt color ramp data, etc), this is all just noise. And it's especially annoying on github runs where the sheer length of the build log drags the whole page to a crawl!

This change reduces the total steps from ~11800 (as above), to ~5900

(maybe if we're lucky it'll speed up compilations too, as eg ninja may be able to make more intelligent decisions when pooling jobs)

Instead of creating a single command for EVERY resource, just
build up a single command for ALL the resources.

This avoids thousands of lines of output when compiling, where
we get one line per resource file. Eg:

[890/11818 452.2/sec] Generating ../../output/data/svg/sport/sport_snooker.svg
[891/11818 451.8/sec] Generating ../../output/data/svg/sport/sport_soccer.svg

Since we're installing thousands and thousands of resources
(eg the svg symbols, cpt color ramp data, etc), this is all
just noise. And it's especially annoying on github runs where the
sheer length of the build log drags the whole page to a crawl!

This change reduces the total steps from ~11800 (as above), to
~5900
@github-actions github-actions bot added this to the 3.42.0 milestone Oct 27, 2024
Copy link

github-actions bot commented Oct 27, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit bc607bf)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit bc607bf)

resources/CMakeLists.txt Outdated Show resolved Hide resolved
resources/CMakeLists.txt Outdated Show resolved Hide resolved
@nyalldawson
Copy link
Collaborator Author

Thanks @m-kuhn !

@nyalldawson nyalldawson merged commit 7bdc228 into qgis:master Oct 27, 2024
28 checks passed
@nyalldawson nyalldawson deleted the less_cmake_output branch October 27, 2024 17:42
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.

2 participants