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

Packed resources #17339

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Packed resources #17339

wants to merge 1 commit into from

Conversation

mymedia2
Copy link
Contributor

@mymedia2 mymedia2 commented Dec 3, 2021

Dynamically load packed resources from separate file. This reduces amount of main memory required for linking stage.

@mymedia2
Copy link
Contributor Author

mymedia2 commented Dec 3, 2021

Should I open MRs to submodules as well?

@john-preston
Copy link
Member

Yes, the submodule PRs should be merged first.

install(TARGETS Telegram
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR}"
RESOURCE DESTINATION "${CMAKE_INSTALL_DATADIR}/TelegramDesktop"
Copy link
Contributor

Choose a reason for hiding this comment

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

Use lowercase directory name here: ${CMAKE_INSTALL_DATADIR}/telegram-desktop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Again, the name is not arbitrary here. It should match application name as known to Qt.

https://github.com/telegramdesktop/tdesktop/blob/v3.3.0/Telegram/SourceFiles/core/launcher.cpp#L288

Dynamically load packed resources from a separate file. This
reduces amount of main memory required for linking stage.
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.

None yet

3 participants