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

Move helpdata to common #926

Merged
merged 7 commits into from
Mar 2, 2022
Merged

Conversation

lmoureaux
Copy link
Contributor

This implements a prerequisite for #915, which is to remove the dependency of freeciv21-manual on client code. This is achieved by moving helpdata.h and helpdata.cpp to common, where they can be picked up by tools. Some refactoring was required to remove hard-coded calls into the client code (with placeholder implementations in civmanual…).

The only user-visible change is that the help no longer says Qt client. But since there is only one client anyway…

The help generation code is used by civmanual, which has to link to libclient
(and provide shim implementation of some client functions) because helpdata
calls into the client code directly.

Start reducing the client dependencies in helpdata by making its header not
depend on client code.

See longturn#915.
This string was used to distinguish between different clients, but Freeciv21
has only one client.  Removes a client dependency from help_data, see longturn#915.
freeciv21-manual doesn't have any notion of a current nation set, so it doesn't
make sense to use it from there.  See longturn#915.
This way freeciv21-manual no longer needs client code.  Despite preparation in
previous commits, I had missed that helpdata.cpp was still referencing
tilespec.h, so I had to migrate this on the fly.

See longturn#915.
@lmoureaux lmoureaux added refactoring This issue requires code refactoring gui This issue requires changes to the user interface tools Issues related to mp, ruledit, etc along with CI and build tools. labels Feb 27, 2022
@jwrober jwrober merged commit ce147ac into longturn:master Mar 2, 2022
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Aug 24, 2022
This variable was set when either the client or civmanual was built, to signify
that libclient was needed. Since the help text generation was moved to
libcommon in longturn#926, civmanual no longer needs libclient. The distinction between
libclient and the client is thus moot.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Aug 24, 2022
This variable was set when either the client or civmanual was built, to signify
that libclient was needed. Since the help text generation was moved to
libcommon in longturn#926, civmanual no longer needs libclient. The distinction between
libclient and the client is thus moot.
lmoureaux added a commit that referenced this pull request Aug 25, 2022
This variable was set when either the client or civmanual was built, to signify
that libclient was needed. Since the help text generation was moved to
libcommon in #926, civmanual no longer needs libclient. The distinction between
libclient and the client is thus moot.
@lmoureaux lmoureaux deleted the refactor/common-help branch February 12, 2023 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui This issue requires changes to the user interface refactoring This issue requires code refactoring tools Issues related to mp, ruledit, etc along with CI and build tools.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants