-
Notifications
You must be signed in to change notification settings - Fork 780
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
Adding top-level CPACK option #700
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a521aa6
Adding top-level CPACK option
kai4785 bcc9857
Make CPACK an RELEASE_OPTION
kai4785 c153ba2
Setting CMAKE_BUILD_TYPE should always be Cache variables
kai4785 c9a6f95
Always build deb and rpm packages where possible
kai4785 6a4f720
Searching for .ttf instead of hard-coding it's full path
kai4785 9e524a8
Merge branch 'master' into add-nix-cpack
AJenbo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[Desktop Entry] | ||
Name=devilutionX | ||
Name=devilutionx | ||
GenericName=DevilutionX | ||
Comment=Play Diablo I on Linux | ||
Comment[da]=Spil Diablo I på Linux | ||
Comment[hr]=Igrajte Diablo I na Linuxu | ||
Exec=devilutionx | ||
Icon=devilutionx.png | ||
Icon=devilutionx | ||
Terminal=false | ||
Type=Application | ||
X-DCOP-ServiceType=Multi | ||
X-KDE-StartupNotify=true | ||
Categories=Qt;Game;RolePlaying; | ||
Categories=Game;RolePlaying; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Desktop Entry] | ||
Name=devilutionx | ||
GenericName=DevilutionX | ||
Comment=Play Diablo I on Linux | ||
Comment[da]=Spil Diablo I på Linux | ||
Comment[hr]=Igrajte Diablo I na Linuxu | ||
Exec=devilutionx | ||
Icon=devilutionx | ||
Terminal=false | ||
Type=Application | ||
X-DCOP-ServiceType=Multi | ||
X-KDE-StartupNotify=true | ||
Categories=Game;RolePlaying; |
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
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
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.
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.
the game doesn't look for the font here, are you sure this will work?
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.
On our own branch for Amiga, we have added
set(TTF_FONT_PATH \"LiberationSerif-Bold.ttf\")
Shouldn't it be possible to check if target == package change font-path to /usr/share/fonts/truetype etc?
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.
I was emulating what the fedora rpm was doing. Where does the source look for it currently? Seems like a small-ish change for packaging to match the code, but seems like a more expected behavioral change for the code to look for it in a "standard" location.
Also, when does it get used? Because the game seems to work with or with out the font.
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.
ahhh, the fedora spec file has this line:
export CXXFLAGS="-DTTF_FONT_PATH=\"/usr/share/fonts/truetype/CharisSILB.ttf\""
I missed that.
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.
I pushed a small patch that splits
TTF_FONT_PATH
intoTTF_FONT_NAME
andTTF_FONT_DIR
so I could search forTTF_FONT_NAME
in 3 places:TTF_FONT_DIR
#ifdef __linux__
"/usr/share/fonts/truetype"It should preserve the current behavior while allowing the default build on Linux to search for the
TTF_FONT_NAME
in a known good location.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.
The font is used in the credits and any error message.
Your patch looks like a decent solution.