-
Notifications
You must be signed in to change notification settings - Fork 804
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
Split more things into libraries #7554
Open
glebm
wants to merge
2
commits into
diasurgical:master
Choose a base branch
from
glebm:path-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
glebm
force-pushed
the
path-test
branch
2 times, most recently
from
November 23, 2024 13:15
3d9f1b8
to
ff7c974
Compare
glebm
force-pushed
the
path-test
branch
18 times, most recently
from
November 24, 2024 22:12
eed4c8c
to
44af477
Compare
glebm
force-pushed
the
path-test
branch
3 times, most recently
from
November 26, 2024 19:18
d96faef
to
1f5d04d
Compare
AJenbo
reviewed
Nov 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting headless from engine and endian_write are the only things I found a bit odd.
Besides unit tests headless would also make sens if we implement a game server, maybe that gives some better context.
|
This was referenced Dec 29, 2024
glebm
force-pushed
the
path-test
branch
2 times, most recently
from
January 1, 2025 13:12
9ca0170
to
61c6a4a
Compare
This does not fully address the issue of most everything being a giant library but it's a start. I got here by trying to isolate `path.cpp` into its own library and quickly realized that it transitively depends on everything. This is the point where I got to with splitting things up (and gave up for now). This commit also changes the mechanism used to implement transitive dependency support for OBJECT libraries. The new mechanism is more robust but requires to define all OBJECT targets before passing them as dependencies to other targets.
Apparently required for `std::visit`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This does not fully address the issue of mostly everything being in one giant library but it's a start.
I got here by trying to isolate
path.cpp
into its own library and quickly realized that it transitivelydepends on everything.
This is the point where I got to with splitting things up (and gave up for now).
Most of the diff count is from moving SFX enums into a separate file (so that code that only needs the IDs can avoid depending on the entire sound subsystem).
Also changes the mechanism used to implement transitive dependency support for OBJECT
libraries. The new mechanism is more robust but requires that all OBJECT targets are defined before they can be passed as dependencies to other targets.