-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mozjpeg side-by-side installable with jpeg-turbo.
By default, mozjpeg will stay named generically libjpeg on Windows, whereas it will install with its own namespace on other OSes, i.e. libmozjpeg.so|a, mozjpeg.pc, etc. The public header files keep their name but are installed under include/mozjpeg/ (the pkg-config file will take care of providing proper build flags), this way no include gets broken. The new option WITH_MOZPREFIX allows to bypass the default behavior (so that it is still possible to name the lib mozjpeg name on Windows, or libjpeg on other OSes). A second new option WITH_LIBJPEG_PKG_CONFIG add a libjpeg.pc even when WITH_MOZPREFIX is ON (additionally to mozjpeg.pc). Pkg-config is the modern way for software to find their dependencies and correct build/link flags.
- Loading branch information
Jehan
committed
Sep 7, 2023
1 parent
61e03cc
commit b156233
Showing
3 changed files
with
115 additions
and
60 deletions.
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